Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
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 ejb;
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!
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Accessing Remote EJB 3: Best Practice
Running EJB 3.0 Session Bean in JBoss
Ed Roman - Mastering EJB's
Explination needed ..what's happening behind the IDE.
Accessing a Remote EJB in Glassfish from Tomcat
Call secured Remote EJB from WebClient
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014