Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing schedule arguments dyanmically

 
mahesh adepu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create instances of the scheduler MBean dynamically and change their configurations through the MBeanServer.
 
mahesh adepu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic