cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling a Session bean's web service

Amey-Mogare
Contributor
0 Kudos

Hello all,

I'm having web service created for a session bean. And I want to schedule it on some date and time of the month. This webservice returns an array of DTO. I want to dump the contents of this DTO in some log file.

How do I go about it?

Please help me.

regards,

Amey

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Amey,

TimedObject is defined in ejb 2.1, and 3.0 should have a richer API. So you should have no problem implementing this kind of solution.

As I was saying, if you cannot rely on this infrastructure you should look for an external scheduler or a custom solution: i.e. a simple java program that invoke the web service, scheduled with the window standard scheduler.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amey,

if you have WebAS version j2ee 1.4 compliant, you can use the TimedObject interface.

If not, you have to use an external scheduler (like Quartz) or develop a custom solution.

Bests

Amey-Mogare
Contributor
0 Kudos

Thanks alot of the reply Marco.

But that was EJB 2.0 compliant. Though I am currently using EJB 2.1, we will be migrating to EJB 3.0 soon.

So this solution wont work for me. Can you suggest any other approach?

regards,

Amey