Actually the singleton method does work. I just had an issue with my code.
Type: Posts; User: ghosh007; Keyword(s):
Actually the singleton method does work. I just had an issue with my code.
What I meant was, create a static ref. to the application context in your ejb layer something like this:
public class ContextGenerator {
private static ApplicationContext ctx;
static {...
Why don't you load the context in a static object(once) and give it out to MDBs and EJBs as required?
Finally I got my MDB & Spring to play together. However, I am getting a strange ClassCastException. This is the error:
<MessageDrivenBean threw an Exception in onMessage(). The exception was:
...
I have got it working, well almost. Need a little more help.
I have setup a web project (where the spring beans are) and an EJB project where the MDB resides. I created the applicationContext.xml...
Hi,
I have a rather large collection of spring beans in my application and I would like to use a MDB in such a way that only ONE instance of the applicationContext is loaded because memory is at a...