diff -r -N orig/src/main/java/org/jboss/resource/adapter/quartz/inflow/QuartzResourceAdapter.java patched/src/main/java/org/jboss/resource/adapter/quartz/inflow/QuartzResourceAdapter.java
97c97
<       // allocate instance of endpoint to figure out its endpoint interface
---
>       // figure out endpoint interface through activationspec (WAS denies endpoint creation on main thread)
99,101c99
<       MessageEndpoint tmpMe = endpointFactory.createEndpoint(null);
<       if (tmpMe instanceof StatefulJob) clazz = StatefulQuartzJob.class;
<       tmpMe.release();
---
>       if (spec instanceof QuartzStatefulActivationSpec) clazz = StatefulQuartzJob.class;
diff -r -N orig/src/main/java/org/jboss/resource/adapter/quartz/inflow/QuartzStatefulActivationSpec.java patched/src/main/java/org/jboss/resource/adapter/quartz/inflow/QuartzStatefulActivationSpec.java
0a1,32
> /*
>  * JBoss, Home of Professional Open Source.
>  * Copyright 2006, Red Hat Middleware LLC, and individual contributors
>  * as indicated by the @author tags. See the copyright.txt file in the
>  * distribution for a full listing of individual contributors.
>  *
>  * This is free software; you can redistribute it and/or modify it
>  * under the terms of the GNU Lesser General Public License as
>  * published by the Free Software Foundation; either version 2.1 of
>  * the License, or (at your option) any later version.
>  *
>  * This software is distributed in the hope that it will be useful,
>  * but WITHOUT ANY WARRANTY; without even the implied warranty of
>  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>  * Lesser General Public License for more details.
>  *
>  * You should have received a copy of the GNU Lesser General Public
>  * License along with this software; if not, write to the Free
>  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
>  */
> package org.jboss.resource.adapter.quartz.inflow;
> 
> /**
>  * Markup ActivationSpec for Stateful Jobs
>  *
>  * @author <a href="mailto:rafaelri@gmail.com">Rafael Ribeiro</a>
>  * @version $Revision: $
>  */
> public class QuartzStatefulActivationSpec extends QuartzActivationSpec {
> 
> }
diff -r -N orig/src/main/java/org/jboss/resource/adapter/quartz/inflow/QuartzStatelessActivationSpec.java patched/src/main/java/org/jboss/resource/adapter/quartz/inflow/QuartzStatelessActivationSpec.java
0a1,32
> /*
>  * JBoss, Home of Professional Open Source.
>  * Copyright 2006, Red Hat Middleware LLC, and individual contributors
>  * as indicated by the @author tags. See the copyright.txt file in the
>  * distribution for a full listing of individual contributors.
>  *
>  * This is free software; you can redistribute it and/or modify it
>  * under the terms of the GNU Lesser General Public License as
>  * published by the Free Software Foundation; either version 2.1 of
>  * the License, or (at your option) any later version.
>  *
>  * This software is distributed in the hope that it will be useful,
>  * but WITHOUT ANY WARRANTY; without even the implied warranty of
>  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>  * Lesser General Public License for more details.
>  *
>  * You should have received a copy of the GNU Lesser General Public
>  * License along with this software; if not, write to the Free
>  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
>  */
> package org.jboss.resource.adapter.quartz.inflow;
> 
> /**
>  * Markup ActivationSpec for Stateless Jobs
>  *
>  * @author <a href="mailto:rafaelri@gmail.com">Rafael Ribeiro</a>
>  * @version $Revision: $
>  */
> public class QuartzStateLessActivationSpec extends QuartzActivationSpec {
> 
> }
diff -r -N orig/src/resources/quartz-rar/META-INF/ra.xml patched/src/resources/quartz-rar/META-INF/ra.xml
51c51
<                   <activationspec-class>org.jboss.resource.adapter.quartz.inflow.QuartzActivationSpec</activationspec-class>
---
>                   <activationspec-class>org.jboss.resource.adapter.quartz.inflow.QuartzStatelessActivationSpec</activationspec-class>
60c60
<                   <activationspec-class>org.jboss.resource.adapter.quartz.inflow.QuartzActivationSpec</activationspec-class>
---
>                   <activationspec-class>org.jboss.resource.adapter.quartz.inflow.QuartzStatefulActivationSpec</activationspec-class>
