You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Forster <mp...@muckworld.com> on 2004/04/07 13:28:10 UTC
Problem with configuing Tomcat
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.)
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Problem with configuing Tomcat
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org