[Management, JMX/JBoss] - NO Scheduler - POJO Service registered
by kmarsha
My pojo is annotated as a service. It registers fine. I find it in the jmx-console, and I am able to execute the method made avialable.
However, my sheduler xml-service is not activiating the service as expected:
| <server>
| <mbean code="org.jboss.varia.scheduler.Scheduler" name="com.insight:service=AppDataRefreshServiceScheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableMBean">jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</attribute>
| <attribute name="SchedulableMBeanMethod">resetApplicationDataStore</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">10000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| <depends>jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</depends>
| </mbean>
| </server>
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035822#4035822
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035822
19 years
[EJB 3.0] - Service Registered - POJO - Schedule not working
by kanthonym
I am new to the use of MBEAN services. I have a pojo that is annotated as a service. Upon deployment it registers itself fine. I coded the create and start methods to do a system out on startup. That all works fine.
however, i am trying to get it to run as a timer type service. That part never kicks in. Here is my xml service file.
| <server>
| <mbean code="org.jboss.varia.scheduler.Scheduler" name="com.insight:service=AppDataRefreshServiceScheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableMBean">jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</attribute>
| <attribute name="SchedulableMBeanMethod">resetApplicationDataStore</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">10000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| <depends>jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</depends>
| </mbean>
| </server>
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035820#4035820
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035820
19 years
[JBossCache] - Re: PojoCacheListener: modify
by jason.greene@jboss.com
"supi" wrote : Hey everybody,
|
| I'm experimenting with Habanero b2, and with POJO listener notification in particular. I have a couple of questions:
|
| - I am getting "attach" and "detach" notifications, but no "modify" calls. Do I have to configure something to make this work?
|
In order to see modify calls the subject interceptor must be added to any code that modifies fields. Typically this is the pojo itself. Can you verify that you have set jboss.aop.path to pojocache-aop.xml?
Also, there is a known design flaw, where notifications are only dispatched locally.
http://jira.jboss.com/jira/browse/JBCACHE-774
anonymous wrote :
| - Will there be an API to query the cache for a Pojo's Fqns or Ids? I understand that this can be an expensive operation but I think it should be available on demand if not provided with the notification.
|
Is PojoCache.findAll(String id) what you are looking for?
anonymous wrote :
| - What is getPojoID() supposed to return? If it is what I think it is, shouldn't it return the complete list of cycle-free paths instead of a single string? Or is ID something else?
|
I believe the intention is to return the id passed to attach. In some cases though this could be an internal identifier.
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035818#4035818
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035818
19 years