File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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!
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
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-2014