How should I go about creating new EJB's that depend on legacy services such as sockets and corba servers. From what I can tell through various J2EE books, one solution can be achieved through JMS. I would have to write a JMS client on the legacy service side to make a connection between legacy service and JMS. I have 2 questions about this approach:
1. Are their any other alternatives ?
2. If I went for this approach, how would my EJB capture serious problems at the server end such as someone executing killit on the corba server for example ?
-
EJB's that depend on lagacy services (5 messages)
- Posted by: Robert Law
- Posted on: November 30 2001 08:55 EST
Threaded Messages (5)
- EJB's that depend on lagacy services by Satish Babu on November 30 2001 10:02 EST
- EJB's that depend on lagacy services by steve woodcock on November 30 2001 10:16 EST
-
EJB's that depend on lagacy services by Satish Babu on November 30 2001 10:48 EST
-
EJB's that depend on lagacy services by Robert Law on November 30 2001 01:19 EST
- EJB's that depend on lagacy services by Srini gams on December 02 2001 11:55 EST
-
EJB's that depend on lagacy services by Robert Law on November 30 2001 01:19 EST
-
EJB's that depend on lagacy services by Satish Babu on November 30 2001 10:48 EST
- EJB's that depend on lagacy services by steve woodcock on November 30 2001 10:16 EST
-
EJB's that depend on lagacy services[ Go to top ]
- Posted by: Satish Babu
- Posted on: November 30 2001 10:02 EST
- in response to Robert Law
EJB's should not open sockets or listen to sockets. This has been clearly mentioned in EJB specs.
This is just an additional information for you.
Satish -
EJB's that depend on lagacy services[ Go to top ]
- Posted by: steve woodcock
- Posted on: November 30 2001 10:16 EST
- in response to Satish Babu
Hi Satish,
that is not exactly correct - the EJB spec says that you may not act as a socket listener - it does not say that you cannot open a socket.
-
EJB's that depend on lagacy services[ Go to top ]
- Posted by: Satish Babu
- Posted on: November 30 2001 10:48 EST
- in response to steve woodcock
You are right Steve. It can open a socket. But it can not listen to a socket. -
EJB's that depend on lagacy services[ Go to top ]
- Posted by: Robert Law
- Posted on: November 30 2001 13:19 EST
- in response to Satish Babu
Thanks, I did know that, which is why I was refering to a JMS solution. Can EJB's call remote methods on Corba servers ? -
EJB's that depend on lagacy services[ Go to top ]
- Posted by: Srini gams
- Posted on: December 02 2001 11:55 EST
- in response to Robert Law
Yes you can call CORBA servers from EJB's. EJB specification says don't use scokets because these will run in a seperate thread so it interefere with EJB container threading mechanisim. By doing this, you may not predict results correctly.
Hope this will help you.
/Srinivas Gamini