开发者

Eclipse and cronTriggered jobs debugging

I have a webapp developped in Jav开发者_如何学编程a, using GWT, Spring and Hibernate.

This app has a cronTriggered job (which extends QuartzJobBean), set in a application-context.xml file.

How do I debug that job (which is triggered to run every minute) ?

I have tried to set breakpoints in the method executeInternal() of the job class (I am using Eclipse Java EE Helios), but they don't seem to be reached.


Change how the app is started to include the remote debugging agent. That way, you can attach to it from Eclipse. Once attached, it should respond to breakpoints set within Eclipse and from there you are in a typical debugging session. Be aware if the app uses timeouts, they can trigger while you are stopped at a breakpoint which can make it difficult to continue execution afterwards.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜