MDB Process calls @PostConstruct method at wrong time.
Hy all, I have an simple situation here :
- JOnAS server (5.2.4) with Joram as JMS provider (5.9) ;
- A MDB that listen to a queue for JMS Message ;
- This MDB calls a MessageBean Process that has 2 main methods : init() (@PostConstruct) and onMessage().
Then at first message send the process calls the init() method several times (6 or 7 times) and after that, it never calls the onMessage() methode -> First issue.
For all the other messages, the onMethod() is called as expected, but before the init() method ! My problem is I initialise some object in that init() method.
So, I'd like to know if anybody have an idea on how I can get this system works fine. By that I mean : When my MDB is deployed, the init() method is called post construct the on every messsage, the onMessage() method is called.
I have a simple MDB with deployement descriptor.
Thanks in advance, Thomas.