Hi all,
Does anyone know how to access EJBs from CORBA clients? Say, all I have is an enterprise bean and I want to access it from C++ or Delphi. Is there a way to generate IDL for an enterprise bean?
Writing CORBA clients in Java gives me headaches as well: since I don't have the IDL file, I can't create client stub classes.
In the "Mastering Enterprise JavaBeans" book, there is an example of a CORBA client talking to EJB components, but it does not explain how *Helper class for a home interface is generated.
Any thoughts would be appreciated.
Branko Milosavljevic
-
Accessing EJBs from CORBA clients (3 messages)
- Posted by: Branko Milosavljevic
- Posted on: September 27 2001 08:03 EDT
Threaded Messages (3)
- Accessing EJBs from CORBA clients by David Greco on September 28 2001 10:49 EDT
- Accessing EJBs from CORBA clients by Branko Milosavljevic on September 29 2001 13:08 EDT
- Accessing EJBs from CORBA clients by Dino Chiesa on October 11 2001 03:52 EDT
- Accessing EJBs from CORBA clients by Branko Milosavljevic on September 29 2001 13:08 EDT
-
Accessing EJBs from CORBA clients[ Go to top ]
- Posted by: David Greco
- Posted on: September 28 2001 10:49 EDT
- in response to Branko Milosavljevic
You can give a look to the IONA iPAS application server.
Since it's based on CORBA, accessing an ejb from
a CORBA client is quite straightforward. You can
douwnload it and in the distribution there are a couple
of examples showing the CORBA/EJB integration.
In general you shoud use the rmic compiler to generate
from a remote interface a corresponding IDL file.
This is the command:
rmic -idl -noValueMethods <home interface> <interface>
Once you get the client stub the problem is getting the
CORBA reference for the EJB contained in the app server,
this step depends on which kind of app server you are using.
Look at the documentation for your app server to know how to do it. -
Accessing EJBs from CORBA clients[ Go to top ]
- Posted by: Branko Milosavljevic
- Posted on: September 29 2001 13:08 EDT
- in response to David Greco
Thanks!
In the meantime, I tried an idea of writing a CORBA-to-EJB proxy in Java. So far it doesn't look very complicated.
-
Accessing EJBs from CORBA clients[ Go to top ]
- Posted by: Dino Chiesa
- Posted on: October 11 2001 15:52 EDT
- in response to Branko Milosavljevic
Web Services!
Have you not been paying attention?
Web Services for loose coupling !