-
1. Re: Need help for Work Manager implementation with Ironjacamar api’s to achieve that multi threading nature to resolve the latency issues.
jesper.pedersen May 22, 2014 8:04 AM (in response to raj.kamal)1 of 1 people found this helpfulYou should use our code generator - http://www.ironjacamar.org/doc/userguide/1.2/en-US/html/ch08.html - or Eclipse plugin - http://www.ironjacamar.org/doc/userguide/1.2/en-US/html/ch09.html to get started.
You can look at the HelloWorld example - http://www.ironjacamar.org/doc/userguide/1.2/en-US/html/apb.html#sample_helloworld - The BootStrapContext in ResourceAdapter.start() has the reference to the WorkManager.
There is a WorkManager resource adapter in the test suite - https://github.com/ironjacamar/ironjacamar/tree/1.2/core/src/test/java/org/jboss/jca/core/workmanager/rars/dwm - however, that is not the way to do it. A resource adapter should have a well defined business interface that hides the fact that a resource adapter is used.
HTH
-
2. Re: Need help for Work Manager implementation with Ironjacamar api’s to achieve that multi threading nature to resolve the latency issues.
raj.kamal May 22, 2014 11:01 AM (in response to jesper.pedersen)Hi,
Thanks a lot for quick reply.
As you suggested I created a standalone Ironjacamar application. And was able to fetch the WorkManager from BootStrapContext in my ResourceAdapter Class, start() method.
To test WorkManager I created a 'Work' and was successfully able to schedule it from the start() method of my ResouceAdapter.
public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException {
this.workManager = ctx.getWorkManager();
HelloWorldWork l = new HelloWorldWork(); // Extends Work with just a out statement in run()
try {
workManager.scheduleWork(l);
} catch (WorkException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Now, I am stuck on how can I use this WorkManager in my existing application or integrate this application with my existing application. And make use of WorkManager from existing application.
Do I need to perform some JNDI lookup? If yes, then how.
Please suggest
Thanks
Raj Kamal
-
3. Re: Need help for Work Manager implementation with Ironjacamar api’s to achieve that multi threading nature to resolve the latency issues.
raj.kamal May 27, 2014 9:24 AM (in response to raj.kamal)Hi,
Any one has update please advice.