-
1. Re: Making Scheduler MBean Depend on EAR
mallsub Apr 9, 2003 6:28 PM (in response to chanomie)I have same problem. Did you solve the problem?
please help. -
2. Re: Making Scheduler MBean Depend on EAR
mcervantes Apr 10, 2003 2:58 AM (in response to chanomie)Something to consider is packaging the scheduler mbean *within* the ear as a sar. (Coincidentally, I just did this 5 minutes ago.)
All you have to do is:
Build a .sar file that includes the schedulable class and a jboss-service.xml file in the META-INF directory. This file can look exactly like scheduler-service.xml.
Include a jboss-app.xml file in the META-INF of the ear. The format of the file is:
<jboss-app>
whatever.sar
</jboss-app>
On my system with this setup, Jboss deploys the EJBs before the scheduler service and everything works great. -
3. Re: Making Scheduler MBean Depend on EAR
mlange Apr 10, 2003 3:46 AM (in response to chanomie)That worked for me too. But there is one disadvantage: you cannot change the scheduler config at runtime.
-
4. Re: Making Scheduler MBean Depend on EAR
mallsub Apr 10, 2003 7:33 AM (in response to chanomie)I created sar file. But still i have problem. I am attaching my jboss
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!-- classpath codebase="lib" archives="*" -->
<depends optional-attribute-name="EJBDEployer">jboss.ejb:service=EJBDeployer -
5. Re: Making Scheduler MBean Depend on EAR
chanomie Apr 11, 2003 12:05 AM (in response to chanomie)All right, I packaged the Scheduler service inside as a .SAR and it works great. The scheduable class is actually still in the main application JAR, but it looks like SAR format is honoring the Class-Path: in the manifest.
-jdr