aspose file tools*
The moose likes JBoss/WildFly and the fly likes Doubt with invoking a class when jboss starts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Doubt with invoking a class when jboss starts" Watch "Doubt with invoking a class when jboss starts" New topic
Author

Doubt with invoking a class when jboss starts

Hari Dhanakoti
Ranch Hand

Joined: Jan 07, 2008
Posts: 74
Hi all,

I have a task of executing some piece of code to retrieve data from the database for specified time interval. I need to execute this process when jboss is started. I had already framed the piece of code to retrieve data from the database using quartz for time scheduling.

Additionally, I would be deploying the total project as a jar file. So the class functionality has to executed when it is a class.

Some one said me that can be achieved through the MBean's.

Can any one give me suggestions for me how to proceed....


Regards,
Hari
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165


I need to execute this process when jboss is started

Use JBoss specific @Service

[My Blog] [JavaRanch Journal]
Hari Dhanakoti
Ranch Hand

Joined: Jan 07, 2008
Posts: 74
Thanks Jaikiran,

But I try to implement using a plain java codes to access the database. So I cant work out with EJB 3.0

Any other possible solutions ?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

This might help then. There's also a example linked to that wiki.
Hari Dhanakoti
Ranch Hand

Joined: Jan 07, 2008
Posts: 74
Jaikiran Pai wrote:This might help then. There's also a example linked to that wiki.


Yes Jaikiran. Thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt with invoking a class when jboss starts