0 Replies Latest reply on Jul 20, 2006 2:59 AM by Mehul Vyas

    Adding new attribute to JBoss-Service.xml

    Mehul Vyas Newbie

      Hello,

      I am having JBoss-service.xml as follows:

      <mbean code="uk.co.fresca.utils.schedules.GenericOrdersExport"
       name=":name=OrderPlacer">
       </mbean>
       <mbean code="org.jboss.varia.scheduler.Scheduler"
       name=":service=Scheduler,name=OrderPlacer">
       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableMBean">:name=OrderPlacer</attribute>
       <attribute name="SchedulableMBeanMethod">perform( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME )</attribute>
       <attribute name="InitialStartDate">NOW</attribute>
       <attribute name="SchedulePeriod">300000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>
       <attribute name="DateFormat">dd/MM/yyyy HH:mm</attribute>
       <atribute name="EXPORT_TYPE">TLOG_EXPORT</atribute>
       </mbean>


      I want to use this new attribute EXPORT_TYPE and its value in my implementation class. Can anyone suggest me how to go about it ? I already have a getter and setter in my MBean.

      Thanks