Forum Stats

  • 3,769,466 Users
  • 2,252,967 Discussions
  • 7,875,038 Comments

Discussions

MQ adapter in BPEL shows Error while deploying

Jithu
Jithu Member Posts: 151
edited Oct 14, 2008 4:27AM in SOA Suite Discusssions
Hi,

I am using SOA Suite 10.1.3.1.0 and Jdeveloper 10.1.3.1.0.

I am creating a simple BPEL process to dequeue the message from IBM MQ and to enqueue it in another queue in same queue manager.

I have created a bpel process, and I have added the tag for imported shared library: <import-shared-library name="oracle.mqseries"/>
I have copied com.ibm.mq.jar file in C:\mqjar and added in the server.xml file as below:

<shared-library name="oracle.mqseries" version="10.1.3">
<code-source path="C:\mqjar\com.ibm.mq.jar"/>
</shared-library>

and modified the oc4j-ra.xml as below:
<connector-factory location="eis/MQ/MQSeriesAdapterTest"
connector-name="MQSeriesAdapter">
<config-property name="hostName" value="localhost"/>
<config-property name="portNumber" value="1415"/>
<config-property name="queueManagerName" value="QM"/>
<config-property name="channelName" value="MYCHANNEL"/>
<config-property name="userID" value=""/>
<config-property name="password" value=""/>
<config-property name="clientEncoding" value=""/>
<config-property name="hostOSType" value=""/>
<connection-pooling use="private">
<property name="waitTimeout" value="300" />
<property name="scheme" value="fixed_wait" />
<property name="maxConnections" value="50" />
<property name="minConnections" value="0" />
</connection-pooling>
<security-config use="none">
</security-config>
</connector-factory>


But when I am trying to deploy my BPEL process it is giving me error:

Could not initialize activation agent.
An error occured while initializing an activation agent for process "Simple_Dequeue_Enqueue", revision "1.0".
Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: java.lang.reflect.InvocationTargetException
at com.collaxa.cube.engine.core.BaseCubeProcess.startAllActivationAgents(BaseCubeProcess.java:354)


Can anybody let me know if I am missing anything while using MQ adapter.

Thanks in advance.
Regards,
Sreejit
Tagged:

Answers

  • The error is saying it cannot connect to the queue.

    Not sure if the channel you provide in this is the actual channel name you are using but you should use the default channel SYSTEM.DEF.SVRCONN.

    Also make sure you bounce the App server after you add the shared libraries in the server.xml

    cheers
    James
  • Jithu
    Jithu Member Posts: 151
    Hi everyone / James,

    Yes I am using the same channel you said, I have created new one using that.

    Have anyone tried using MQ adapter, is it working.

    Regards,
    Sreejit
This discussion has been closed.