Hi!

Tim Yates wrote:
> > Tim Yates wrote:
> > > I then have a JSP page in tomcat/webapps/ROOT/index.jsp which calls a
> > > javabean (in tomcat/webapps/ROOT/WEB-INF/classes), and this JavaBean
> > > contains the following code :
> > >
> > >   private CalendarEJBHome home = null ;
> 
> > > <snip>
> 
> > You need to include a jndi.properties file in your JSP codebase, or set
> > the system properties in your Tomcat JVM to those in jndi.properties
> > (see /conf/default/jndi.properties for details)
> 
> > /Rickard
> 
> Ok, so I have edited jndi.properties (all of them I could find!) so that
> they read:
> 
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=localhost
> java.naming.factory.url.pkgs=org.jboss.naming

Do NOT add a provider URL to the jndi.properties in /conf/default. Only
edit jndi.properties for your clients, in this case the Tomcat JVM.
Because you're not running the embedded Tomcat with JBoss, right?

> Is this right?  And am I right with:
> 
>         home = (CalendarEJBHome)ctx.lookup( "CalendarEJB" );
> 
> As that seems to be the name that the EJB is registered with from the look
> of the log files:
> 
> ...
> [Container factory] Bound CalendarEntity to CalendarEntity
> ...
> 
> But (knowing me) I am probably completely wrong...  (hee hee)

That seems right.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to