• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

passing schedule arguments dyanmically

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic