-
1. Re: Deploying an EJB3 MDB as stopped?
fpa1974 Oct 25, 2006 2:42 PM (in response to fpa1974)I temporarily solved the issue by writing an EJB3 MDB interceptor that blocks the execution until the server up signal is available. While not ideal it works very well.
It would be nice to have the same feature that is already available for EJB2.x MDBs to the new EJB3 ones though.
Thanks,
Florian -
2. Re: Deploying an EJB3 MDB as stopped?
sappenin Dec 9, 2006 10:01 PM (in response to fpa1974)Would you mind posting your code? I could use what you wrote.
Thanks!
David -
3. Re: Deploying an EJB3 MDB as stopped?
pbaker01 Dec 18, 2008 9:49 AM (in response to fpa1974)Hi,
I would also like to deploy our MDBs with 'DeliveryActive' (or something equivalent) set to false. But deliveryActive does not seem to work with EJB3.
How can I deloy an MDB so that the MDB does not start consuming messages at start up?
Using: JBoss 4.2.3 or JBoss 5.0 -
4. Re: Deploying an EJB3 MDB as stopped?
pbaker01 Dec 19, 2008 9:46 AM (in response to fpa1974)Hi again, I have continued to research this problem but still have not found a solution.
JBoss 5.0.0 GA
JBoss Messaging
I'll state my problem a different way.
I have a message producer that can generate upward to 50K messages. I would like to be able to control when the MDBs consume the messages. I would like this control to be performed using JMX or programatically.
1) There are no operations on the MDB via jmx to stopDelivery().
So, how do I prevent the MDB from consuming the messages?
2) Is there a code example of how to stop the MDB (using invoker??) ?
During this testing cycle I am deploying the application via Eclipse as an exploded archive.
In jmx the following entries are displayed for: jboss.j2eeear=WAB_EJB.jar,jar=WAB_EJB.jar,service=EJB3
jar=WAB_EJB.jar,name=AirlineEjbBean,service=EJB3
jar=WAB_EJB.jar,name=SSMListener,service=EJB3
jar=WAB_EJB.jar,name=SsimEjbBean,service=EJB3
jar=WAB_EJB.jar,name=SubscriberEjbBean,service=EJB3
service=EARClassLoaderDeployer
service=EARDeployer
When I select the SSMListener (the MDB), there is only one operation: getTimerService.
How do I expose stopDelivery()?
Any help will be GREATLY appreocated.
Paul - ATL -
5. Re: Deploying an EJB3 MDB as stopped?
chtimi2 Mar 30, 2009 6:02 AM (in response to fpa1974)Any idea? I have the exact same problem.
-
6. Re: Deploying an EJB3 MDB as stopped?
chtimi2 Mar 30, 2009 6:14 AM (in response to fpa1974)I mean using the standard start/stop methods on the MDB works, but the DeliveryActive attribute doesn't.
-
7. Re: Deploying an EJB3 MDB as stopped?
jaikiran Mar 31, 2009 9:22 AM (in response to fpa1974)"chtimi2" wrote:
I mean using the standard start/stop methods on the MDB works, but the DeliveryActive attribute doesn't.
I answered this in your other post http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222339#4222339, a few minutes back.