Many organizations are heavily dependent on JMS for the exchange of messages/communication between the systems with the organization as well as with the external partners.There are various JMS providers,and also the different J2EE containers like Weblogic/Websphere/Jboss provide their own JMS support as well. Depending on the organizational needs,it's possible that you need to integrate JMS from any provider say Weblogic with MDB's deployed on another application server Jboss 5.1 in this case. Sun JMS adapter can be used for integrating the JMS providers with components deployed in another container.JMSJCA is an implementation of the Java Connector Architecture 1.5 that is used to integrate JMS providers within J2EE application servers. The following section demonstrates the integration of one JMS provider(Weblogic 8.1) with a component(an MDB) deployed in another J2EE container(Jboss5.1) Step 1)Change the jms-ds.xml file in Jboss: <?xml version="1.0" encoding="UTF-8"?> <connection-factories>
The communcation can be established to a Queue or a Topic as per the need.Please change to queue or topic as per your need...above...: Step 2: Change the jboss.xml file for the MDB deployed in Jboss as follows : <?xml version="1.0"?> <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd"> <jboss> <enterprise-beans> <message-driven> <ejb-name>MktMessageProcessorMDB</ejb-name> <destination-jndi-name>java:/CFX/ExternalConnectionFactory</destination-jndi-name> <local-jndi-name>local/NameOfMDB</local-jndi-name> <resource-adapter-name>sun-jms-adapter.rar</resource-adapter-name> <configuration-name>JMSJCA Message Driven Bean</configuration-name> </message-driven> <invoker-proxy-bindings> <invoker-proxy-binding> <name>jmsjca-message-driven-bean</name> <invoker-mbean>default</invoker-mbean> <proxy-factory>org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory</proxy-factory> <proxy-factory-config> <activation-config> <activation-config-property> <activation-config-property-name>providerAdapterJNDI</activation-config-property-name> <activation-config-property-value>java:/DefaultJMSProvider</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>ConnectionURL</activation-config-property-name> <activation-config-property-value>t3://weblogichostname:7001</activation-config-property-value> </activation-config-property> </activation-config> <endpoint-interceptors> <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor</interceptor> <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor> </endpoint-interceptors> </proxy-factory-config> </invoker-proxy-binding> </invoker-proxy-bindings> <container-configurations> <container-configuration> <container-name>JMSJCA Message Driven Bean</container-name> <call-logging>false</call-logging> <invoker-proxy-binding-name>jmsjca-message-driven-bean</invoker-proxy-binding-name> <container-interceptors> <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor>