Hello,

I'm going to replace the ActiveMQ topics with websphere MQ in our ESB(servicemix), and first I use the basic example to test,but I met lots of troubles when doing the configuration in servicemix.xml. The main problem is how to definded the destination of activationSpec.

I want to ask if the servicemix supporting such replacing or not ?
Or maybe my configuration is wrong.
The most miserable thing is to search the jar file for "com.ibm.ws.sib.api.jmsra.impl.JmsJcaResourceAdapterImpl",
the Resource Adapter for jca. :((

what I want is to use one JmsSenderComponent send message to queue "testrequest", and use JmsInUsingJCABinding to receive and print, make it simple as possible.
For now, it doesn't work.

Anybody has done this before? Thanks for any help!!!!

Here is my servicemix.xml (use basic example): ....
  <!--JmsSender by JmsSenderComponent-->
  <sm:activationSpec componentName="inputSender" service="my:inputSender">
   <sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"; class="org.apache.servicemix.components.jms.JmsSenderComponent">
     <property name="template">
      <ref local="jmsTemplate"/>
     </property>
    </bean>
   </sm:component>
  </sm:activationSpec>

  <!-- get the message by JmsInUsingJCABinding-->
<sm:activationSpec componentName="jmsTrace" service="my:jmsTrace" destinationService="my:trace">
   <sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"; class="org.apache.servicemix.components.jms.JmsInUsingJCABinding">
     <property name="jcaContainer" ref="jencks"/>
     <property name="activationSpec">
<bean class="com.ibm.ws.sib.api.jmsra.impl.JmsJcaActivationSpecImpl">
       <property name="destinationType" value="javax.jms.Queue"/>
       <!--
       <property name="destination">
         <bean id="testrequest" class="com.ibm.mq.MQQueue">
             <property name="name" value="testrequest"/>
         </bean>
       </property>
       -->
      </bean>
     </property>
    </bean>
   </sm:component>
  </sm:activationSpec>
.....

<!-- JMS Template -->
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
 <property name="connectionFactory">
  <ref local="jmsFactory"/>
 </property>
 <property name="defaultDestinationName" value="testrequest"/>
 <property name="pubSubDomain" value="true"/>
</bean>
<!--JmsFactory-->
<bean id="jmsFactory" class="com.ibm.mq.jms.MQTopicConnectionFactory">
 <property name="queueManager">
  <value>QM_d1</value>
 </property>
 <property name="hostName">
  <value>localhost</value>
 </property>
 <property name="port">
  <value>1414</value>
 </property>
 <property name="transportType">
  <value>1</value>
 </property>
 <property name="CCSID">
  <value>1381</value>
 </property>
 <!--
 <property name="channel">
  <value>S_d1</value>
 </property>
 -->
</bean>
<!-- the JCA container -->
<!-- the JCA 1.5 compliant SIB JMS Resource Adapter that ships with Websphere 6.0 --> <bean id="SIBJMSResourceAdapter" class="com.ibm.ws.sib.api.jmsra.impl.JmsJcaResourceAdapterImpl"/>

<bean id="BootstrapContext" class="org.jencks.factory.BootstrapContextFactoryBean">
 <property name="threadPoolSize" value="25"/>
</bean>

<bean id="jencks" class="org.jencks.JCAContainer">
 <property name="bootstrapContext">
  <ref local="BootstrapContext"/>
 </property>
 <property name="resourceAdapter">
  <ref local="SIBJMSResourceAdapter"/>
 </property>
</bean>

......

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn

Reply via email to