[Management, JMX/JBoss] - Register Schedulable events to the ScheduleManager Mbean thr
by thehunt
Hi all,
I am relatively new to Jboss and I am making a huge effort the last month to get to now everything for a university project. I would like your help regarding the problem below :
I want to use the Jboss Scheduler as Singleton to register events in a clustered setup. These events will place messages in a Queue which is going to feed the whole cluster. So the basic concept is 1 Scheduling Service - 1 queue - Many schedule executing instances.
My first problem is that I want to register new Schedules dynamically when an RMI client for example calls a Session Bean. This means I have to control the SchedulerManager Mbean programatically but every doc I have read shows how i can xml describe the SchedulerProvider so that the schedules are registered on jboss startup.
I guess there is an Mbean controlling API. Could you link me with some info plz?
thx in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961846#3961846
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961846
19 years, 5 months
[JBoss AOP] - Re: ConstructorInvocation and ConstructionInvocation?
by kabir.khan@jboss.com
Yes, the difference is in the weaving
| excecution(org.blah.Blah->new(int))
|
becomes a ConstructorInvocation
| excecution(org.blah.Blah->new(boolean))
|
becomes a ConstructionInvocation
Once we weave
| class Blah{
| Blah(int i){
| //Normal code
| }
|
| Blah(boolean b){
| //Normal code
| }
| }
|
| class Blah{
|
| static Blah_new(int i){
| //Hooks for AOP creating a ConstructorInvocation, eventually calling new Blah(i)
| }
|
| Blah(int i){
| //Normal code
| }
|
| Blah(boolean b){
| //Normal code
|
| //Hooks for AOP with a ConstructionInvocation
| }
| }
|
For ConstructorInvocation to work we need to make sure that everyone who calls new Blah(int), calls Blah.Blah_new(int) instead. So ConstructionInvocation can be more efficient, but is triggered at a slightly different time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961839#3961839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961839
19 years, 5 months