-
Servlet and EJB sharing a Singleton (4 messages)
- Posted by: Nicky Terblanche
- Posted on: August 21 2003 11:37 EDT
I have a servlet and stateless session bean deployed in the same WebLogic server. The servlet is in a war and session bean in a jar. I want them to be able to access the same singleton and since the're in the same WebLogic server I assumed this would be possible, but they each have a different singleton. How can I get them to access the same singleton?Threaded Messages (4)
- Servlet and EJB sharing a Singleton by Yogesh Prajapati on August 21 2003 13:09 EDT
- Servlet and EJB sharing a Singleton by Brian Chan on August 21 2003 13:11 EDT
- Servlet and EJB sharing a Singleton by Nicky Terblanche on August 22 2003 03:33 EDT
- Servlet and EJB sharing a Singleton by Kapil Israni on August 27 2003 10:54 EDT
- Servlet and EJB sharing a Singleton by Nicky Terblanche on August 22 2003 03:33 EDT
-
Servlet and EJB sharing a Singleton[ Go to top ]
- Posted by: Yogesh Prajapati
- Posted on: August 21 2003 13:09 EDT
- in response to Nicky Terblanche
need more info:
where is your singleton class residing, with War or Jar ? -
Servlet and EJB sharing a Singleton[ Go to top ]
- Posted by: Brian Chan
- Posted on: August 21 2003 13:11 EDT
- in response to Nicky Terblanche
Put the jar and war in an EAR file. You need to create application.xml to define the relationship. Consult Weblogic doc -
Servlet and EJB sharing a Singleton[ Go to top ]
- Posted by: Nicky Terblanche
- Posted on: August 22 2003 03:33 EDT
- in response to Brian Chan
Thanks! Putting it in an EAR solved the problem. -
Servlet and EJB sharing a Singleton[ Go to top ]
- Posted by: Kapil Israni
- Posted on: August 27 2003 10:54 EDT
- in response to Nicky Terblanche
I think it has got a lot to do with the way your class-loader policy is set up for you.
Kapil