aspose file tools*
The moose likes JBoss/WildFly and the fly likes passing schedule arguments dyanmically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "passing schedule arguments dyanmically" Watch "passing schedule arguments dyanmically" New topic
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: 367
You can create instances of the scheduler MBean dynamically and change their configurations through the MBeanServer.
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: 367
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing schedule arguments dyanmically