Problem with configuing Tomcat

2004-04-07 Thread Michael Forster
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
   namefactory/name
valueorg.openejb.client.TomcatEjbFactory/value
/parameter
parameter
nameopenejb.naming.factory.initial/name
valueorg.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.)

Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.643 / Virus Database: 411 - Release Date: 25/03/2004


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



Re: Problem with configuing Tomcat

2004-04-07 Thread Adam Hardy
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
   namefactory/name
valueorg.openejb.client.TomcatEjbFactory/value
/parameter
parameter
nameopenejb.naming.factory.initial/name
valueorg.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]