| Author |
passing schedule arguments dyanmically
|
mahesh adepu
Greenhorn
Joined: Jul 21, 2004
Posts: 6
|
|
Hi all. I want to generate reports automatically.For that i am using jboss AS scheduling (JMX timer) Service.But i want to pass schedule arguments dynamically rather than placing it in xml.can any one guide me how to pass those arguments from ui to xml. Mahesh Adepu, IIC Technologies
|
 |
norman richards
Author
Ranch Hand
Joined: Jul 21, 2003
Posts: 364
|
|
|
You can create instances of the scheduler MBean dynamically and change their configurations through the MBeanServer.
|
[<a href="http://members.capmac.org/~orb/blog.cgi" target="_blank" rel="nofollow">blog</a>] [<a href="http://www.amazon.com/exec/obidos/ASIN/0596100078/orb-20" target="_blank" rel="nofollow">JBoss: A Developer's Notebook</a>] [<a href="http://www.amazon.com/exec/obidos/ASIN/1932394052/orb-20" target="_blank" rel="nofollow">XDoclet in Action</a>]
|
 |
mahesh adepu
Greenhorn
Joined: Jul 21, 2004
Posts: 6
|
|
Thanx for ur prompt reply. But can u send any online link or resource for how to create MBean server programtically and dynamically changing the values in mbean. Regards, Mahesh Adepu
|
 |
norman richards
Author
Ranch Hand
Joined: Jul 21, 2003
Posts: 364
|
|
|
Look in the jboss app server guide under scheduler to learn about the scheduler mbean. MBeans can be created by getting a reference to the MBean server (from jndi) and calling the registerMBean method. I don't have a complete example to point you to, but a couple minutes in the jboss guide will show you everything.
|
 |
mahesh adepu
Greenhorn
Joined: Jul 21, 2004
Posts: 6
|
|
Now There is problem in accessing file. I deployed like this. Myear.ear |------------------mysar.sar--scheduleclass |------------------mywar.war Now my schedule class has to access class in the jar file of web-inf/lib of mywar.war. Thats y when i am deploying its throwing class not found exception. so how to load all necessary class that r required for scheduling before schedule class
|
 |
 |
|
|
subject: passing schedule arguments dyanmically
|
|
|