type this link in your address bar

http://localhost:8082

it shall give you the list of the JNDI names available if your ejb is
deployed correctly. If your name is there then you rest assured that your
bean is deployed successfully, else it is not

Regards,
Vikramjit Singh,
GTL Ltd.
Ph. 7612929-1059



> -----Original Message-----
> From: Shahata, Ash [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 3:44 AM
> To: [EMAIL PROTECTED]
> Subject: deploying EJBs on jboss
>
>
> 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
>

===========================================================================
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