Hi,

I´ve been struggling for one entire week trying to figure out how to make 
the quartz resource adapter to work with jobstoreCMT and XA datasources. 
Finally I assume I ended seting all the thing up in the correct way cause I can 
see the jobs related data in the quartz DB and also because the calls made from 
quartz are being correctly delivered to the 
org.jboss.resource.adapter.quartz.inflow.QuartzJob class. 

The problem arises when the following code executes on this class:


  | ...
  | MessageEndpointFactory endpointFactory = 
(MessageEndpointFactory)jobExecutionContext.getJobDetail().getJobDataMap().get("endpointFactory");
  |          endpoint = endpointFactory.createEndpoint(null);
  | ...
  | 

Here I am getting a NPE when createEndpoint(null) is called over the endpoint 
object, as this object is null.  (Line: 53)

The endpoint is being putted in the jobDataMap by the 
QuartzResourceAdapter.java class when the endpoint is activated.

Clue: The import javax.resource.spi.endpoint.MessageEndpointFactory is not 
Serializable itself, but maybe the underlying class that implements this 
interface, also implements the serializable one so that´s is why Im not 
getting an exception for being not serializable...

Am I doing something wrong or this resource adapter does not work with 
JobStoreCMT and XA datasources obtained from the Application server?

Thanks.






View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149540#4149540

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149540

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to