-
1. Re: MDB newInstance() call in JBoss
stephanenicoll Oct 8, 2003 11:44 AM (in response to cmcromwell)AFAIK, it's not possible. But it's maybe a stupid design contraint. Why do you need to create your MDB before a message is posted.
The JBoss container handles the cache and the pool. You cannot act on it (meaning it may instantiate further MDBs if load is too high for instance)
Regards,
Stephane -
2. Re: MDB newInstance() call in JBoss
cmcromwell Oct 8, 2003 1:31 PM (in response to cmcromwell)Well. I was trying to do some threading to an Oracle db that would get the message I wanted stored in the queue, that was put into the database by another program and then start the JMS queue and add the message into the queue that 'this' MDB was listening on.
But because of this constraint I will just make the Thread class that I was using to do this work a service MBean and at configuration time have the program be kick off by a person using the console.
Thanks for your help :)
Chad -
3. Re: MDB newInstance() call in JBoss
stephanenicoll Oct 9, 2003 1:45 AM (in response to cmcromwell)Looks like you didn't understood MDBs are *stateless*. There is not 'this' notion in MDB.
Regards,
Stephane -
4. Re: MDB newInstance() call in JBoss
cmcromwell Oct 9, 2003 7:57 AM (in response to cmcromwell)Yes I know that MDB are stateless I was using the 'this' to explain that I wanted to use ejbCreate as a way to send the message to the queue that the same MDB was listening on. not in the java keyword sense.
Chad