Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-09-2008
karachae karachae is offline
Registered User
 
Name: Hannah Chae
Organization: JHUAPL
Project: Modeling & Simulation
 
Join Date: Apr 2008
Posts: 3
Question Using Ice with Corba

Hello,
I am writing my first post here, though I have been reading a lot of them...

The project I am working now is that:
1. A (c; as server) connects to B (java; as client) with Ace/Corba
2. Also, A (c; as client) connects to C (c; as server) with Ace/Corba

What I want to do is that:
- Develop another D (c#; as server) and connect to A (c; as client) using ICE

A is already working as server and client with Ace/Corba.
Is it possible that A works as Ice-client at the same time?

Thanks.

--

Last edited by karachae : 04-09-2008 at 10:25 AM. Reason: mis-comment
Reply With Quote
  #2 (permalink)  
Old 04-09-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,542
Hi,

The Ice protocol is not compatible with the CORBA protocol so your Ice client won't be able to talk to your CORBA server out-of-the box.

If you want your server A to also accept connections from Ice clients, you'll need to modify it to add Ice server functionality (similar to CORBA's). Although we never tried it, you should in theory be able to use Ice and ACE/TAO side by side in the same process. Each runtime (Ice or CORBA) will listen for client connections on its own TCP/IP port.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 04-09-2008
karachae karachae is offline
Registered User
 
Name: Hannah Chae
Organization: JHUAPL
Project: Modeling & Simulation
 
Join Date: Apr 2008
Posts: 3
Unhappy Thanks...

--------------
If you want your server A to also accept connections from Ice clients, you'll need to modify it to add Ice server functionality (similar to CORBA's). Although we never tried it, you should in theory be able to use Ice and ACE/TAO side by side in the same process. Each runtime (Ice or CORBA) will listen for client connections on its own TCP/IP port.
--------------

That was exactly what I wanted to do!!!
Thanks.

Pardon me for this "naive" question.
Could you explain more on 'side by side in the same process'?
Do you mean using threads?
What I was trying to do is to initialize each connections in one main function...
Reply With Quote
  #4 (permalink)  
Old 04-09-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,542
Ice is inherently multi-threaded. Connections requests and invocations from clients are processed by the Ice server thread pool (see 28.9 The Ice Threading Model in the Ice manual for more information).

The main thread of your server can just create the Ice communicator and object adapter and then activate the object adapter. Once activated, the Ice object adapter will start accepting connections and dispatch invocations from clients with threads from the Ice server thread pool. Your main thread can then do something else, such running the CORBA event loop if needed.

Cheers,
Benoit.
Reply With Quote
  #5 (permalink)  
Old 04-09-2008
karachae karachae is offline
Registered User
 
Name: Hannah Chae
Organization: JHUAPL
Project: Modeling & Simulation
 
Join Date: Apr 2008
Posts: 3
Cool Thanks again

Thanks a lot~

Actually I want A as an ICE-client.
So my A would be CORBA server, CORBA client and ICE client..

Now I am working on the ICE part...

Thanks again.

- Hannah
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
oneway invocation Ice vs CORBA rdaneel Help Center 2 02-27-2008 04:57 AM
Differences between CORBA and ICE albertods Help Center 3 02-26-2007 08:36 PM
server CORBA and ICE in a same file vydge Help Center 7 06-08-2005 08:39 AM
can ice cooperate with Corba? eaglecn Help Center 1 01-11-2005 08:26 AM
Bridging CORBA and Ice? rodrigc Help Center 2 03-18-2003 11:32 PM


All times are GMT -4. The time now is 10:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.