• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic