Hiya Rickard, me again :-)

> Hey

> 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

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)

Thanks again for trying to help me, sorry for the hassle!!

Tim





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

Reply via email to