Found the soluation myself here: 
http://www.onjava.com/pub/a/onjava/2004/10/13/XMLMessaging.html?page=4

I needed this MBean:

        <mbean code="org.jboss.jms.jndi.JMSProviderLoader" 
name="jboss.mq:service=JMSProviderLoader, name=WSMQProvider">
  |             <attribute name="ProviderName">WSMQProvider</attribute>
  |             <attribute 
name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
  |             <attribute name="QueueFactoryRef">jms/qcf</attribute>
  |             <attribute name="TopicFactoryRef">jms/tcf</attribute>
  |             <attribute name="Properties">
  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.provider.url=jnp://127.0.0.1:1099
  |   </attribute>
  |     </mbean>

and some changes to ejb-jar.xml:

<?xml version="1.0"?>
  | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd";>
  | <jboss>
  |     <enterprise-beans>
  | 
  |         <session>
  |             <ejb-name>MQSenderEJB</ejb-name>
  |             <jndi-name>MQSenderEJB</jndi-name>
  |         </session>
  | 
  |         <message-driven>
  |             <ejb-name>XMLParserEJB</ejb-name>
  |             <destination-jndi-name>jms/incomingQ</destination-jndi-name>
  |             <configuration-name>WSMQ Message Driven 
Bean</configuration-name>
  | 
  |             <invoker-bindings>
  |                 <invoker>
  |                     
<invoker-proxy-binding-name>wsmq-message-driven-bean</invoker-proxy-binding-name>
  |                     <!--                    
<jndi-name>jms/incomingQ</jndi-name>-->
  |                 </invoker>
  |             </invoker-bindings>
  |         </message-driven>
  |     </enterprise-beans>
  | 
  |     <invoker-proxy-bindings>
  |         <invoker-proxy-binding>
  |             <name>wsmq-message-driven-bean</name>
  |             <invoker-mbean>whatever</invoker-mbean>
  |             
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
  |             <proxy-factory-config>
  |                 
<JMSProviderAdapterJNDI>WSMQProvider</JMSProviderAdapterJNDI>
  |                 
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
  |                 <MaximumSize>15</MaximumSize>
  |                 <MaxMessages>1</MaxMessages>
  |                 <MDBConfig>
  |                     <ReconnectIntervalSec>10</ReconnectIntervalSec>
  |                     <DLQConfig>
  |                         <DestinationQueue>jms/incomingQ</DestinationQueue>
  |                         <MaxTimesRedelivered>10</MaxTimesRedelivered>
  |                         <TimeToLive>0</TimeToLive>
  |                     </DLQConfig>
  |                 </MDBConfig>
  |             </proxy-factory-config>
  |         </invoker-proxy-binding>
  |     </invoker-proxy-bindings>
  | 
  |     <container-configurations>
  |         <container-configuration>
  |             <container-name>WSMQ Message Driven Bean</container-name>
  |             <call-logging>false</call-logging>
  |             
<invoker-proxy-binding-name>wsmq-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>
  |                 <!-- CMT -->
  |               <interceptor 
transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
  |                 <interceptor 
transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
  |                 <interceptor transaction="Container" 
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
  |                 <interceptor 
transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
  |                 <!-- BMT -->
  |               <interceptor 
transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
  |                 <interceptor 
transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</interceptor>
  |                 <interceptor 
transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
  |                 <interceptor transaction="Bean" 
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
  |                 
<interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
  |             </container-interceptors>
  |             
<instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
  |             <instance-cache></instance-cache>
  |             <persistence-manager></persistence-manager>
  |             <container-pool-conf>
  |                 <MaximumSize>100</MaximumSize>
  |             </container-pool-conf>
  |         </container-configuration>
  |     </container-configurations>
  | </jboss>
  | 

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

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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to