[JBoss-dev] [Design of the JBoss EJB Container] - Re: CORBA callback and EJB
I don't know if you are still working on that topic, but anyhow.. It is NOT true, that interworking is not possible implementing a externally defined CORBA interface. I am interworking with a CORBA system using plain EJBs. You just need a small CORBA wrapper called (typically) TIE implementation. I did it like the following: EJBs implement the CORBA-Interface (simple) ejbCreate() { // pass the EJBObject to CORBAServer to not overrule the containers invocation stack registerEJBObjectinCORBAServer( new MyEJBObjectsTIE(context.getEJBObject()) ); ejbRemove(){ deRegisterEJBObjectfromCORBAServer(); } Then you just need a means to transport the generated CORBA Object to any remote client, so that it may be invoked. Have fun with JBoss!! If you have any questions about that, post it on this topic 8-) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863063#3863063 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863063 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of the JBoss EJB Container] - Re: CORBA callback and EJB
can you tell me how you register the bean in JBOSS ORB. Can you tell me the the implementation of registerEJBObjectinCORBAServer method. registerEJBObjectinCORBAServer(context.getEJBObject()); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867060#3867060 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867060 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of the JBoss EJB Container] - Re: CORBA callback and EJB
Write a ServiceLocator doing something like: public synchronized static ORB getORB() { // Create and initialize the ORB try { if (centralOrb == null) { log.info("Initializing ORB."); centralOrb = (org.omg.CORBA.ORB)new InitialContext().lookup("java:JBossCorbaORB"); } } } catch (NamingException ne) { log.fatal("getORB: "+ne.getMessage()); } return centralOrb; } public synchronized static POA getRootPOA() { try { if (centralRootPOA == null) { log.info("Initializing Root POA."); centralRootPOA = POAHelper.narrow(getORB().resolve_initial_references("RootPOA")); } } catch (Exception e) { log.fatal("getRootPOA: "+e.getMessage()); } return centralRootPOA; } and register doing something like (this is really more CORBA than J2EE - tedious and less fun ;-): ObjectPOATie srv = new ObjectPOATie((ObjectOperations)this.sessionContext.getEJBLocalObject()); // objectID is used for a POA with IdAssignmentPolicyValue.USER_ID, // which is not normally needed, but helps a lot when watching the events with a sniffer :-) String objectID = "MPCCM_"+thisId+"_"+System.currentTimeMillis(); thisCorbaID = getRootPOA().activate_object(servant); The ObjectPOATie, ObjectOperations should be provided. The EJBObject has to implement the ObjectOperations of course. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867063#3867063 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867063 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development