Hi Mike, I'm not familiar with openejb but I assume that you are talking about fetching the initial context for JBoss?

Try this in your code:

Hashtable env = new java.util.Hashtable();
env.put("java.naming.factory.initial",
        "org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming;");
env.put("java.naming.provider.url", "jnp://localhost:1099");
InitialContext ic = new InitialContext(env);
Object ref = ic.lookup("ejb/HelloWorld");


Adam


On 04/07/2004 01:28 PM Michael Forster wrote:
I am trying to get Tomcat talking to JBoss through JNDI

How do I do this?

I have looked at the server config and the web.xml files

all to no luck,

In the old config (openejb) there is a definition configured on the Tomcat
for a factory
declaring

<parameter>
   <name>factory</name>
    <value>org.openejb.client.TomcatEjbFactory</value>
</parameter>
<parameter>
    <name>openejb.naming.factory.initial</name>
    <value>org.jnp.interfaces.RemoteInitialContextFactory</value>
</parameter>

is there a similar one for JBoss?

What else do I need to change to get it working with JBOss?

(I have to use Tomcat 5 rather than the emnbedded tomcat with JBoss as the
embedded version doesnt support SSL properly and crashes.)



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to