Hi all, I'm trying to access my deployed ejb on jboss from tomcat 4.. I'm
running a jsp client to link to my ejb ...I know that the jndi.jar should be
kept at the WEB-INF\lib dir, however I couldn't find it under jboss\client!
Is this normal? This is my first time to use jboss, am I missing something?
My client jsp properties update code looks like this:

<%@ page import="javax.naming.InitialContext,
                 javax.naming.Context,
                 java.util.Properties,
                 com.stardeveloper.ejb.session.First,
                 com.stardeveloper.ejb.session.FirstHome"%>
<%
    long t1 = System.currentTimeMillis();
    Properties props = new Properties();
        props.put(Context.INITIAL_CONTEXT_FACTORY,
            "org.jnp.interfaces.NamingContextFactory");
        props.put(Context.PROVIDER_URL, "localhost:1099");

    Context ctx = new InitialContext(props);
    FirstHome home = (FirstHome)ctx.lookup("ejb/First");
    First bean = home.create();
    String time = bean.getTime();
    bean.remove();
    ctx.close();
    long t2 = System.currentTimeMillis();
%>

Thanks

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to