I can find no help in the JRun 3.1 docs for establishing the initial context
in a servlet accessing an EJB entity bean. The code compiles:
public static Context getInitialContext() throws
javax.naming.NamingException {
Properties p = new Properties();
p.setProperty( Context.INITIAL_CONTEXT_FACTORY, "ContextFactory");
p.setProperty( Context.PROVIDER_URL, "ejipt://CC615520-C:8101");
return new InitialContext( p);
}
but I get the old ClassNotFound exception for the
allaire.ejipt.ContextFactory at runtime. This is confounding me as I'd get
a "can't resolve symbol" error at compile time if the compiler was not
finding the package import, no?
For reference, I'm working my way thorugh Monson-Haefel's "Enterprise
JavaBeans, 3d Ed." and I'm stuck on pp. 102-103.
Thanks,
Mark
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html