tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Pita" <cp...@tycdigital.com>
Subject Re: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?
Date Wed, 14 Feb 2001 10:02:16 GMT
Hi!

    I think you are talking about different kind of contexts. I've entered
the online administration for the first time after reading your emails and
the only contexts I could find there were servlet ones. Another point is
that /admin doesn't seem exist in Tomcat 4.0 (use /manager instead) but only
in Tomcat 3.2.
  I'm not sure the <EJB-link> tag (or any member of its family) is
implemented by Tomcat. The servlet 2.2 spec only requires the implementation
of these tags to servlet containers that are part of a J2EE compliant
implementation.
    One solution to the JNDI stuff could be using the JNDI taglib (from the
jakarta taglibs project). Another one could be writing a tag similar to
useBean but providing 1) an id, a remote type, a JNDI name and optionally
JNDI environment stuff or 2) an id, a home type, a remote type, a JNDI home
name, an array of parameters for some create method, and optionally JNDI
environment stuff. The second alternative would be useful when the bean
should be obtained from its home.

Carlos

----- Original Message -----
From: "Nael Mohammad" <nmohammad@neomar.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, February 13, 2001 9:30 PM
Subject: RE: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?


> Simple,
>
> using the tomcat admin feature, you can specify the context to be whatever
> you like. To access the admin feature, you need to set it first using the
> tomcat-user.xml file located in your conf directory. An example that I
have
> below works just fine for me. After that then you should be able to add
the
> context you like anywhere so long as tomcat knows where it's going.
>
> In Linux: /tomcat/conf/tomcat-user.xml
>
> <tomcat-users>
>
> <user name="admin" password="xxxx" roles="admin" />
> <user name="tomcat" password="tomcat" roles="tomcat" />
>   <user name="role1"  password="tomcat" roles="role1"  />
>   <user name="both"   password="tomcat" roles="tomcat,role1" />
> </tomcat-users>
>
> After that got http://localhost:8080/admin and bam... you should now be
able
> to access the admin feature.
>
> After you login, just follow the examples that are already in place and
you
> should figure how to add the context. If worse comes to worse, result to
the
> manual.
>
> Nael
>
> -----Original Message-----
> From: Tye, Timothy [mailto:TIMOTHY.TYE@ca.com]
> Sent: Tuesday, February 13, 2001 2:37 PM
> To: tomcat-user@jakarta.apache.org
> Subject: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?
>
>
> I am trying to run Tomcat 4.0 and JBoss on separate virtual machines.
> How do I get the JNDI context in Tomcat to look in JBoss JNDI context for
> the <EJB-link> Remote object </EJB-link>?
>
> Tim Tye
> Computer Associates
> Senior Software Developer
> tel: +1 972 801-6436
> fax: none
> pager: none
> mobile: +1 214 924-6396
> timothy.tye@ca.com <mailto:timothy.tye@ca.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>
>



Mime
View raw message