I've heared something about doing it through JAAS.

On Thu, 10 Oct 2002, Raj Saini wrote:

> Hi,
> 
> You need to follow the below steps:-
> 
> Copy the clients file from te JBOSS_HOME/client direcotry to the 
> TOMCAT_HOME/shared/lib. You dont need all, but you can copy to be sure 
> you copied all the libs.
> 
> In your application where you lookup the JNDI context, create a 
> Properties object and set the:
> 
> Properties prop =  new Properties();
> 
> prop.setProperty("java.naming.factory.initial", 
> "org.jnp.interfaces.NamingContectFactory");
> 
> //Replace the yourhost:port with your host ip and port. Default port is 1099
> prop.setProperty("java.naming.factory.url", "yourhost:port");
> prop.setProperty("ava.naming.factory.url.pakgs", "org.jboss.naming: 
> org.jnp.interfaces");
> 
> InitialContext ctx = new InitialContext(prop);
> 
> Now you can use the ctx object to lookup your EJBs.
> 
> Raj Saini
> 
> 
> Mitchell, Edmund wrote:
> > Hello all,
> > 
> > I've got my Apache box talking happily to my Tomcat box, thanks to John
> > Turner and Pascal Forget's great webpages, but I can't seem to get the
> > Tomcat box to talk to the JBoss box.
> > 
> > Does anyone have any "how-to" type info on how to get this connection to
> > happen?  I've tried everything in both the JBoss and ejb docs I've read, to
> > no avail.
> >   
> > In the post below, Anthony Geoghegan suggests that turning off the Tomcat
> > JNDI server will work, but I've been up and down the Tomcat JNDI docs, and
> > seen nothing that looks like an off switch.   Can anyone shed some light on
> > that?
> > 
> > Thanks for any help
> > 
> > Edmund
> > 
> > .
> > 
> > 
> >>-----Original Message-----
> >>From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, October 08, 2002 1:20 PM
> >>To: Tomcat Users List; [EMAIL PROTECTED]
> >>Subject: Re: Apache 2, Tomcat, & JBoss configuration
> >>You have to use remote interfaces and turn off the TOMCAT 
> >>JNDI server to use
> >>the JBOSS JNDI server, otherwise it's fine.
> > 
> > 
> >>----- Original Message -----
> >>From: "Jim Haggerty" <[EMAIL PROTECTED]>
> >>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>Sent: Tuesday, October 08, 2002 5:31 PM
> >>Subject: Apache 2, Tomcat, & JBoss configuration
> > 
> > 
> >>>Current versions:
> >>>FreeBSD 4.6.2-RELEASE
> >>>Apache 2.0.42 (although FreeBSD port now has 2.0.43)
> >>>Tomcat 4.0.5
> >>>JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat)
> >>
> > 
> >>>Apache and Tomcat are getting along fine and I can access 
> >>
> >>deployed webapps
> >>
> >>>through the warp connection (Is JK2 preferred over warp?) 
> >>
> >>on both port 80
> >>
> >>>and 8080.
> >>>
> >>>JBoss is alive and well on port 8082.
> >>>
> >>>However, virtually ALL the documentation I have found 
> >>
> >>regarding connecting
> >>
> >>>the three refers to the JBoss+Tomcat package (modify the 
> >>
> >>server.xml in
> >>
> >>>${JBOSS_HOME}/catalina).  Does anyone have an example of connecting
> >>
> >>Apache -
> >>
> >>>Tomcat - JBoss WITHOUT JBoss+Tomcat?
> >>
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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

Reply via email to