A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
EJB and other Java EE Technologies
Accessing Remote EJB 3: Best Practice
Joined: Apr 01, 2007
Mar 18, 2009 02:01:32
I would like to refactor the code snippet below in accessing a remote
Properties props = new Properties(); props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory"); props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming"); props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"); // optional. Defaults to localhost. Only needed if web server is running // on a different host than the appserver props.setProperty("org.omg.CORBA.ORBInitialHost", "<ip_address>"); InitialContext ctx = new InitialContext(props); SimpleBean bean = (SimpleBean) ctx.lookup("ejb/SimpleBeanJNDI");
I’d read this link
, I would like to kindly get your personal opinion/experience in doing these.
Are there are some
best way/best practices
in doing this?
Thanks very much, appreciate your response!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Accessing Remote EJB 3: Best Practice
Running EJB 3.0 Session Bean in JBoss
Explination needed ..what's happening behind the IDE.
Call secured Remote EJB from WebClient
Accessing a Remote EJB in Glassfish from Tomcat
Ed Roman - Mastering EJB's
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015