[jboss-user] [Beginners Corner] - Re: Migrate J2EE Project EJB 2 from Websphere to JBoss

garfield168 do-not-reply at jboss.com
Fri Dec 26 12:52:39 EST 2008


Yes, we try JBoss AS 5 at the moment and we migrate from WebSphere 6.1. 

We use a WorkManager in WebSphere to do background work.

WorkManager: javax.resource.spi.work.WorkManager;

In ejb-jar.xml:

  | <resource-ref>
  | <res-ref-name>wm/MainWorkManager</res-ref-name>	<res-type>javax.resource.spi.work.WorkManager</res-type>
  | <res-auth>Container</res-auth>
  | <res-sharing-scope>Shareable</res-sharing-scope>
  | </resource-ref>
  | 

We can access the WorkManager in the JAVA code via a JNDI lookup. But with JBoss this seems to be not possible. Anyway, we need a way to
implement background working in JBoss. I found this:
http://batrapankaj.wordpress.com/2007/04/27/using-workmanager-in-jboss/
but I think it is only for JBoss AS 4.

Error Message when I try to deploy a project with a WorkManager:


  | 00:33:46,265 WARN  [StatelessSessionContainer] No resource manager found for wm/MainWorkManager
  | 00:33:46,265 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jndiName=seaw/ScEntry,service=EJB state=Create mode=Manual requiredState=Installed
  | java.lang.NullPointerException
  | 	at org.jboss.ejb.Container.setupEnvironment(Container.java:1325)
  | 	at org.jboss.ejb.Container.startService(Container.java:901)
  | 	at org.jboss.ejb.SessionContainer.startService(SessionContainer.java:396)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
  | 	at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | 	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
  | 	at $Proxy36.start(Unknown Source)

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

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



More information about the jboss-user mailing list