|
The work required, if you are willing to use the standalone EJB container, is fairly minimal:
- Write a main program.
- Run the container (new Container().run(args)) from within the main program, setting a system property
EJBNoSleep, causing the EJB container to not block the current thread.
- Obtain the EJB container's ORB via the following call:
orb = (org.omg.CORBA.ORB) context.lookup("java:comp/ORB");
- Instantiate your CORBA servers, putting them into JNDI (or use CosNaming, if you prefer).
- Access the CORBA objects from within your EJBs using JNDI.
|