Hello
Some days ago I posted a question. Johannes Lang was able to finde the
answer for himself and we would
like to share it with you.
With the following configuration of the JRun-Environment, Servlets
can find and use EJB's that are running in Borland AppServer:
Classpath:
{jrun.rootdir}/servers/lib
{jrun.server.rootdir}/lib
{BorlandAppServerInstalldir}/lib
JVM-Parameters:
-Dvbroker.agent.enableLocator=false
-DORBInitRef=NameService=corbaloc::<host:port>/NameService
Initialization of the NamingContext:
Properties prop = new Properties();
prop.setProperty(Context.CONTEXT_INITIAL_FACTORY,
"com.inprise.j2ee.jndi.CtxFactory");
prop.setProperty(Context.URL_PKG_PREFIXES, "com.inprise.j2ee.jndi");
Context ctx = new InitialContext(prop);
Best regards
Matthias G�nter
------
Swiss Federal Institute of Intellectual Property
Electronic Publication and Communication
Dr. phil. nat. Matthias G�nter
Einsteinstr. 2; 3003 Bern; Switzerland
P: +41 31 322 49 17 F: +41 31 350 06 03
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists