Tuesday, July 14, 2009

Scheduling BPEL jobs

last month, we worked on an interesting assignment where we used two 3rd party libraries in bpel, one was itext for creating pdf files using java and the other one was quartz for scheduling bpel jobs.

creating pdf files using itext libraries was very straight forward and using java embedding it worked fine, though formatting the pdf was some challenge.

Using quartz to schedule bpel jobs, there is a sample here and here

We deployed a web-app, where in the web.xml the triggering pattern was specified for the scheduler servlet. The servlet creates a singleton scheduler and adds all the jobs, which are nothing but java classes. We had a job class where we used BPEL client API to call a BPEL.

There were couple of challenges in deploying the web-app to weblogic from Jdev10.1.3.4, which got resolved by making sure the property files are under web-inf/classes, sandeep has blogged this here

While deploying this web-app to a cluster, we deployed it to admin server and used load-balanced url to call the bpels.