Hi, 

I am trying to create  a object of local interface from a servlet but not getting 
results. 

I am deploying servlet in a WAR file and beans in JAR file, packaging them in a EAR 
file. For packaging, I am using Deploytool of SUN's J2EESDK 1.3.   

Any helps  ? 

Suraj

--------------------------------------------------------------------------------------

public class UserStampServVar extends HttpServlet
{
     //         Variable to store the bean instances
     EJB.TimeStamp.EJB.UserBMLocalHome homeUserBM;
     EJB.TimeStamp.EJB.UserBMLocal theUser;

     public void init(ServletConfig config) throws ServletException
     {
          ServletContext sctx = config.getServletContext();
          
          try
         {
        InitialContext initialContext = new InitialContext();

               homeUserBM = 
(EJB.TimeStamp.EJB.UserBMLocalHome)initialContext.lookup("java:comp/env/ejb/UserBMBean");
         }
         catch (Exception)
        {
               .........
        }
}

-----------------------------------------------------------------------------------

Error is 
" ejb not bound"

-----------------------------------------------------------------------------------

UserBMBean.java contains the implementation 
UserBMLocalHome is local home interface
UserBMLocal is local interface




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840294#3840294

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840294


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to