"[EMAIL PROTECTED]" wrote : 
  |      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");
  |          }  
  | 

It looks like you are trying to lookup a local reference from a remote object 
(servlet).  I don't know if this is possible because I haven't ever tried before. I've 
always defined a Home and a Remote interface for the EJB, then use the 
javax.rmi.PortableRemoteObject.narrow() method on the reference context.lookup returns.


All this depends on the type of EJB you are trying to reference.  If you are trying to 
reference entity EJBs, they should only have Local and LocalHome interfaces.  If at 
all possible, create a Session EJB with a Home and Remote interface through which you 
can access the entity EJBs.




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

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


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