> How can I do to start the session bean
> initialization just after the deployment of my
> ear?
Create a .sar file containing a simple class that implements
org.jboss.varia.scheduler.Schedulable and calls your session bean from its
perform method. Create a jboss-service.xml file containing the following in
the .sar's META-INF directory:
<?xml version="1.0"?>
<server>
<classpath
codebase="lib"
archives="scheduler-plugin.jar, scheduler-plugin-example.jar"
/>
<mbean
code="org.jboss.varia.scheduler.Scheduler"
name=":service=ProviderScheduler"
>
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">MyScheduler</attribute>
<attribute name="SchedulableArguments"></attribute>
<attribute name="SchedulableArgumentTypes"></attribute>
<attribute name="InitialStartDate">0</attribute>
<attribute name="SchedulePeriod">60000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
<depends>jboss.j2ee:service=EJB,jndiName=SomeBeanEJB</depends>
</mbean>
</server>
Finally, add the .sar to the .ear.
--
Eric Jain
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user