The support for Websphere AppServer

View: New views
2 Messages — Rating Filter:   Alert me  

The support for Websphere AppServer

by Eagle2009 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
 
Does anybody know how to integrate Active MQ with IBM Websphere AppServer?
Currently I'm integrating Active MQ 5.2 with IBM Websphere AppServer 7.0 so that the message-driven bean can be supported. What should I do with the JNDI properties?
It will be much appreciated if any suggestions or experiences.
 
Best regards,
Zhuran Li


Question for Websphere AppServer 7 Integration.

by Eagle2009 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Does anybody know how to integrate Active MQ with IBM Websphere AppServer?
Currently I'm integrating Active MQ 5.2 with IBM Websphere AppServer 7.0 so that the message-driven bean can be supported. I've configured JCA related things like Resource Adapter, J2C Connection Factory, J2C Activation Spec and J2C AdminObjects. Unlockly the following error messages given while I tried to restart the ApplicationServer:
[09-7-1 14:37:20:359 CST] 00000018 J2CUtilityCla E   J2CA0047E: 类 org.apache.activemq.ra.ActiveMQActivationSpec 的属性 BackOffMultiplier 的类型 short 无效。
[09-7-1 14:37:20:390 CST] 00000018 J2CUtilityCla W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setBackOffMultiplier。处理继续进行。
[09-7-1 14:37:20:421 CST] 00000018 J2CUtilityCla W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setCloneSupport。处理继续进行。
[09-7-1 14:37:20:562 CST] 00000018 J2CUtilityCla W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setPort。处理继续进行。
[09-7-1 14:37:20:609 CST] 00000018 J2CUtilityCla W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setChannel。处理继续进行。
[09-7-1 14:37:20:640 CST] 00000018 J2CUtilityCla W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setTransportType。处理继续进行。
[09-7-1 14:37:20:655 CST] 00000018 J2CUtilityCla W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setArbitraryProperties。处理继续进行。
[09-7-1 14:37:20:734 CST] 00000018 ActivationSpe W   J2CA0008W: 资源 cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 使用的类 org.apache.activemq.ra.ActiveMQActivationSpec 未包含方法 setDestination。处理继续进行。
[09-7-1 14:37:20:968 CST] 00000018 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: 已在 C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_33c933c9_09.07.01_14.37.20.7492042009993130841423.txt com.ibm.ejs.j2c.ActivationSpecWrapperImpl.createAndInitializeActivationSpecInstance 805 发出 FFDC 事件。
[09-7-1 14:37:20:968 CST] 00000018 ActivationSpe E   J2CA0137E: ActivationSpec 的 validate() 方法由于 InvalidPropertyException 而失败。该 ActivationSpec 是 jms/AMQ/AS (org.apache.activemq.ra.ActiveMQActivationSpec),它属于已安装的 ResourceAdapter cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 并且与 MDB 应用程序 MyEJBEAR#MyEJB.jar#MyMDB 相关联。请参阅下表,以便了解失败的属性以及它们的值:
    subscriptionDurability  Nondurable
。异常为:javax.resource.spi.InvalidPropertyException: Invalid settings: subscriptionDurability must be set to: NonDurable or Durable.
 at org.apache.activemq.ra.ActiveMQActivationSpec.validate(ActiveMQActivationSpec.java:136)
 at com.ibm.ejs.j2c.ActivationSpecWrapperImpl.createAndInitializeActivationSpecInstance(ActivationSpecWrapperImpl.java:1239)
 at com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateEndpoint(ActivationSpecWrapperImpl.java:282)
 at com.ibm.ejs.j2c.RAWrapperImpl.activateEndpoint(RAWrapperImpl.java:1076)
 at com.ibm.ejs.j2c.RALifeCycleManagerImpl.activateEndpoint(RALifeCycleManagerImpl.java:1670)
 at com.ibm.ejs.container.MessageEndpointFactoryImpl.activateEndpoint(MessageEndpointFactoryImpl.java:279)
 at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2859)
 at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3825)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1144)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
 at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2068)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
 at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:108)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:935)
 at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[09-7-1 14:37:21:015 CST] 00000018 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: 已在 C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_33c933c9_09.07.01_14.37.20.9844124099713611452160.txt com.ibm.ejs.j2c.RAWrapperImpl.activateEndpoint 771 发出 FFDC 事件。
[09-7-1 14:37:21:030 CST] 00000018 RAWrapperImpl E   J2CA0089E: 对 ResourceAdapter JavaBean cells/ZhuranLiCell01/resources.xml#J2CResourceAdapter_1245913169970 执行的方法 activateEndpoint 失败,并且发生以下异常:javax.resource.spi.InvalidPropertyException: Invalid settings: subscriptionDurability must be set to: NonDurable or Durable.
 at org.apache.activemq.ra.ActiveMQActivationSpec.validate(ActiveMQActivationSpec.java:136)
 at com.ibm.ejs.j2c.ActivationSpecWrapperImpl.createAndInitializeActivationSpecInstance(ActivationSpecWrapperImpl.java:1239)
 at com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateEndpoint(ActivationSpecWrapperImpl.java:282)
 at com.ibm.ejs.j2c.RAWrapperImpl.activateEndpoint(RAWrapperImpl.java:1076)
 at com.ibm.ejs.j2c.RALifeCycleManagerImpl.activateEndpoint(RALifeCycleManagerImpl.java:1670)
 at com.ibm.ejs.container.MessageEndpointFactoryImpl.activateEndpoint(MessageEndpointFactoryImpl.java:279)
 at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2859)
 at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3825)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1144)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
 at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2068)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
 at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:108)
 at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:935)
 at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)


It will be much appreciated if any suggestions or experiences. It would be better if you can give me a step by step examples:)

Best, best regards,
Zhuran Li