hi,
   i am facing typical problem ,actually i have a session bean(statefull) and i am 
calling create method from jsp only once but the bug is that on application 
server(jboss) it creates two instances i.e two times ejb create is called and when i 
call any method on bean by passing argument,it calls the method twice once with the 
actuall value and second time with null value ,so any body can help me the code is 
below

try {

 String title="";
    Properties prop = System.getProperties();
      Context initialContext = null;
      initialContext = new InitialContext(prop);
      Object ref = initialContext.lookup("ProjectData");

     ProjectDataHome home =  
(ProjectDataHome)PortableRemoteObject.narrow(ref,ProjectDataHome.class);
     ProjectData proj=(ProjectData)home.create();
     proj.setTitle(title);

     session.setAttribute("proj1",proj);


   }
   catch(Exception e)
   {

   }
My webserver is tomcat: a
application server is jboss

Imp: when i excute the client code from the prompt it calls only once

cheers
mukul

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to