[jboss-user] [EJB 3.0] - Service Registered - POJO - Schedule not working

kanthonym do-not-reply at jboss.com
Mon Apr 9 17:40:42 EDT 2007


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



More information about the jboss-user mailing list