[JBoss jBPM] - Re: Overdue actions, timers.
by jjrs
Hi,
There was a change in the requirements so instead of having to interrupt the execution I had to generate an alert (send an email notifying an operator of the delay in the execution).
I associated a timer to the execution of the actions, and injected the implementation of the alert/notification. I used java.util.Timer and the Timer.schedule method.
Right now I am sending an email notifying the delay in the execution, but I guess that if the requirements change once again I could create a new implementation and inject it instead of the email alert.
Ronald, I think my solution is similar to what you were suggesting with the exception that my timer is associated to the task but in your case it seems to me it would be independent. Is that correct ?
If so... how would you link the timer with the execution of the action ?
Regards.
Jose.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220974#4220974
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220974
17 years
[Management, JMX/JBoss] - How to access class of EJB Session Bean from listener MBean
by vit.jonas
I'm using JBoss 4.2.2GA
I've implemented MBean that listen on EAR deployment. I can access enumeration of started mbeans via notification.getUserData(). Example:
| mbeans:
| persistence.units:ear=cobeco-next-server-gateway-.ear,jar=cobeco-next-server-gateway-services.jar,unitName=cobeco-next-gateway state: Started
| jboss.j2ee:ear=cobeco-next-server-gateway-.ear,jar=cobeco-next-server-gateway-services.jar,name=ServiceGateway,service=EJB3 state: Started
|
May be I'm completly dumb but I can't find way how to get to class of EJB (ServiceGateway in the example) in the listener MBean. Given MBean for jboss.j2ee:ear=cobeco-next-server-gateway-.ear,jar=cobeco-next-server-gateway-services.jar,name=ServiceGateway,service=EJB3 is type of StatelessDelegateWrapper and I'm not able to dig any information how to get to class of underlying EJB.
Could somebody give me some clue?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220971#4220971
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220971
17 years