Re: Question about GenericJmsRa

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

Parent Message unknown Re: Question about GenericJmsRa

by Binod :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Keith,

> Hello, <<ra.xml>> <<weblogic-ra.xml>> <<ejb-jar.xml>>
> <<weblogic-ejb-jar.xml>>
>
> First off I think the genericjmsra is great.
>
Thank you for your kind words.

> I’m trying to get this installed in WLS 9.2.
>
> Everything seems to be ok except when I start an MDB I get the
> following exception:
>
> javax.jms.JMSException: Conncetion.setExceptionListener() cannot be
> called on non-ACC clients.
>
Hmm.... Can you give full stacktrace if any? I am a bit surprised
by this error message!

> It does actually create sessions on the TIBCO EMS server but no
> receiver is registered.
>
> What configuration needs to happen for this to work?
>
Where exactly is the activation spec configuration for MDB is done
in weblogic?

> I’ve included my ra and weblogic-ra.xml files (also the descriptor for
> my ejb)
>
> Please help me or let me know who I could talk with.
>
Cc'd dev and users alias... I am sure someone will chime in.

thanks,
Binod.

> Thanks,
>
> Keith Taylor
> Enterprise Application Architecture
>
> Office: 678 893-1397
> Cell: 678 232-7634
> BlackBerry Device: _jt3998@...
> <mailto:jt3998@...>
>
> Visit:
>
> http://architecture.cingularnext.net:8030/sites/eaa/default.aspx
>
> How am I doing? Go to _Enterprise Application Architecture Customer
> Satisfaction Survey_
> <http://architecture.cingularnext.net:8030/sites/aacs/Lists/Enterprise%20Architecture%20Customer%20Satisfaction%20Surv/overview.aspx>
>
> <<Taylor, Keith.vcf>>
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="UTF-8"?>
>
><!--
> * Copyright 2004-2005 Sun Microsystems, Inc.
> *
> *  Licensed under the Apache License, Version 2.0 (the "License");
> *  you may not use this file except in compliance with the License.
> *  You may obtain a copy of the License at
> *
> *      http://www.apache.org/licenses/LICENSE-2.0
> *
> *  Unless required by applicable law or agreed to in writing, software
> *  distributed under the License is distributed on an "AS IS" BASIS,
> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> *  implied.
> *  See the License for the specific language governing permissions and
> *  limitations under the License.
>-->
>
>
><connector xmlns="http://java.sun.com/xml/ns/j2ee"
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>           http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
>           version="1.5">
>          
>    <description>Generic JMS Resource Adapter</description>
>    <display-name>Generic J2EE Resource Adapter for JMS</display-name>
>    <icon></icon>
>    <vendor-name>Sun Microsystems, Inc.</vendor-name>
>    <eis-type>Java Message Service v 1.1</eis-type>
>    <resourceadapter-version>1.0</resourceadapter-version>
>
>    <resourceadapter>
>        <resourceadapter-class>
>            com.sun.genericra.GenericJMSRA
>        </resourceadapter-class>
>        <!-- @todo: define all RA properties here -->
><config-property>                        
><config-property-name>ConnectionFactoryClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>
>                        
><config-property>                        
><config-property-name>QueueConnectionFactoryClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>TopicConnectionFactoryClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>XAConnectionFactoryClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>XAQueueConnectionFactoryClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>XATopicConnectionFactoryClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>QueueClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                                              
>
><config-property>                        
><config-property-name>TopicClassName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>ConnectionFactoryProperties</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>UserName</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>Password</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>
>
><config-property>                        
><config-property-name>SupportsXA</config-property-name>
><config-property-type>java.lang.Boolean</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>ProviderIntegrationMode</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>JndiProperties</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>                        
>
><config-property>                        
><config-property-name>LogLevel</config-property-name>
><config-property-type>java.lang.String</config-property-type>
><config-property-value></config-property-value>
></config-property>
>                      
>        
>        <!-- @todo: check if all MCF props are listed correctly -->
>        <outbound-resourceadapter>
>            <connection-definition>
>                <managedconnectionfactory-class>
>                    com.sun.genericra.outbound.ManagedQueueConnectionFactory
>                </managedconnectionfactory-class>
>                <config-property>
> <config-property-name>ConnectionFactoryJndiName</config-property-name>
>                    <config-property-type>java.lang.String</config-property-type>
>                </config-property>                
>                <config-property>
>                    <config-property-name>ClientId</config-property-name>
>                    <config-property-type>java.lang.String</config-property-type>
>                </config-property>                
>                <config-property>
>                    <config-property-name>ConnectionValidationEnabled</config-property-name>
>                    <config-property-type>java.lang.Boolean</config-property-type>
>                </config-property>  
>                              
>                
>                <connectionfactory-interface>
>                    javax.jms.QueueConnectionFactory
>                </connectionfactory-interface>
>                <connectionfactory-impl-class>
>                    com.sun.genericra.outbound.ConnectionFactory
>                </connectionfactory-impl-class>
>                <connection-interface>
>                    javax.jms.QueueConnection
>                </connection-interface>
>                <connection-impl-class>
>                    com.sun.genericra.outbound.ConnectionHandle
>                </connection-impl-class>
>            </connection-definition>
>
>            <connection-definition>
>                <managedconnectionfactory-class>
>                    com.sun.genericra.outbound.ManagedTopicConnectionFactory
>                </managedconnectionfactory-class>
>                <config-property>
>    <config-property-name>ConnectionFactoryJndiName</config-property-name>
>                    <config-property-type>java.lang.String</config-property-type>
>                </config-property>                
>                <config-property>
>                    <config-property-name>ClientId</config-property-name>
>                    <config-property-type>java.lang.String</config-property-type>
>                </config-property>                
>                <config-property>
>                    <config-property-name>ConnectionValidationEnabled</config-property-name>
>                    <config-property-type>java.lang.Boolean</config-property-type>
>                </config-property>
>                
>                <connectionfactory-interface>
>                    javax.jms.TopicConnectionFactory
>                </connectionfactory-interface>
>                <connectionfactory-impl-class>
>                    com.sun.genericra.outbound.ConnectionFactory
>                </connectionfactory-impl-class>
>                <connection-interface>
>                    javax.jms.TopicConnection
>                </connection-interface>
>                <connection-impl-class>
>                    com.sun.genericra.outbound.ConnectionHandle
>                </connection-impl-class>
>            </connection-definition>
>
>            <connection-definition>
>                <managedconnectionfactory-class>
>                    com.sun.genericra.outbound.ManagedJMSConnectionFactory
>                </managedconnectionfactory-class>
>                <config-property>
>    <config-property-name>ConnectionFactoryJndiName</config-property-name>
>                    <config-property-type>java.lang.String</config-property-type>
>                </config-property>                
>                <config-property>
>                    <config-property-name>ClientId</config-property-name>
>                    <config-property-type>java.lang.String</config-property-type>
>                </config-property>                
>                <config-property>
>                    <config-property-name>ConnectionValidationEnabled</config-property-name>
>                    <config-property-type>java.lang.Boolean</config-property-type>
>                </config-property>                
>                
>                <connectionfactory-interface>
>                    javax.jms.ConnectionFactory
>                </connectionfactory-interface>
>                <connectionfactory-impl-class>
>                    com.sun.genericra.outbound.ConnectionFactory
>                </connectionfactory-impl-class>
>                <connection-interface>
>                    javax.jms.Connection
>                </connection-interface>
>                <connection-impl-class>
>                    com.sun.genericra.outbound.ConnectionHandle
>                </connection-impl-class>
>            </connection-definition>
>            
>            <transaction-support>
>                XATransaction
>            </transaction-support>
>            <authentication-mechanism>
>                <authentication-mechanism-type>
>                    BasicPassword
>                </authentication-mechanism-type>
>                <credential-interface>
>                    javax.resource.spi.security.PasswordCredential
>                </credential-interface>
>            </authentication-mechanism>
>            <reauthentication-support>
>                false
>            </reauthentication-support>
>        </outbound-resourceadapter>
>        
>        <inbound-resourceadapter>
>            <messageadapter>          
>                <messagelistener>
>                    <messagelistener-type>
>                        javax.jms.MessageListener
>                    </messagelistener-type>
>                    <activationspec>
>                        <activationspec-class>
>                            com.sun.genericra.inbound.ActivationSpec
>                        </activationspec-class>
>                    </activationspec>
>                </messagelistener>
>            </messageadapter>          
>        </inbound-resourceadapter>
>        
>        <adminobject>
>            <adminobject-interface>javax.jms.Queue
>            </adminobject-interface>
>            <adminobject-class>
>            com.sun.genericra.outbound.QueueProxy
>            </adminobject-class>
>            <config-property>
>                <config-property-name>
>                DestinationJndiName
>                </config-property-name>
>                <config-property-type>
>                java.lang.String
>                </config-property-type>
>                <config-property-value>
>                </config-property-value>
>            </config-property>
>            <config-property>
>                <config-property-name>
>                DestinationProperties
>                </config-property-name>
>                <config-property-type>
>                java.lang.String
>                </config-property-type>
>                <config-property-value></config-property-value>
>            </config-property>
>        </adminobject>
>    </resourceadapter>
></connector>
>
>  
>
>------------------------------------------------------------------------
>
><?xml version="1.0" ?>
><weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90">
>   <jndi-name>GenericRAJMS</jndi-name>  
>   <enable-access-outside-app>true</enable-access-outside-app>
>   <properties>
>      <property>                        
>      <name>ConnectionFactoryClassName</name>                        
>      <value>com.tibco.tibjms.TibjmsConnectionFactory</value>                      
>      </property>
>      
>      <property>                        
>      <name>QueueConnectionFactoryClassName</name>                        
>      <value>com.tibco.tibjms.TibjmsQueueConnectionFactory</value>                      
>      </property>
>      
>      <property>                        
>      <name>TopicConnectionFactoryClassName</name>                        
>      <value>com.tibco.tibjms.TibjmsTopicConnectionFactory</value>                      
>      </property>
>      
>      
>      <property>                        
>      <name>XAConnectionFactoryClassName</name>                        
>      <value>com.tibco.tibjms.TibjmsXAConnectionFactory</value>                      
>      </property>
>      
>      <property>                        
>      <name>XAQueueConnectionFactoryClassName</name>                        
>      <value>com.tibco.tibjms.TibjmsXAQueueConnectionFactory</value>                      
>      </property>
>      
>      <property>                        
>      <name>XATopicConnectionFactoryClassName</name>                        
>      <value>com.tibco.tibjms.TibjmsXATopicConnectionFactory</value>                      
>      </property>      
>      <property>                        
>      <name>SupportsXA</name>                        
>      <value>true</value>                      
>      </property>
>      <property>                        
>      <name>ProviderIntegrationMode</name>                        
>      <value>jndi</value>                      
>      </property>
>      <property>                        
>      <name>JndiProperties</name>                        
>      <value>java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory,java.naming.provider.url=tcp://localhost:7222</value>
>      </property>                            
>      <property>                        
>      <name>LogLevel</name>                        
>      <value>finest</value>                      
>      </property>
>      
>      <property>                        
>      <name>UserName</name>                        
>      <value>weblogic</value>
>      </property>                            
>
>      <property>                        
>      <name>Password</name>                        
>      <value>weblogic</value>                      
>      </property>
>
>   </properties>
><admin-objects>        
>       <admin-object-group>
>         <admin-object-interface>javax.jms.Queue</admin-object-interface>                        
>               <default-properties>        
>                   <property>                
>                      <name>DestinationJndiName</name>
>                      <value>MyQueue</value>
>                   </property>
>                   <property>
>                   <name>DestinationProperties</name>
>                  <value>"Physical"</value>
>                        </property>
>                  
>      </default-properties>
>         <admin-object-instance>
>                     <jndi-name>Queue1</jndi-name>
>                     <properties>
>                        <property>
>                           <name>DestinationJndiName</name>
>                           <value>route2jesb1</value>
>                        </property>
>                        <property>
>                           <name>DestinationProperties</name>
>                           <value>"Physical"</value>
>                        </property>
>                     </properties>
>         </admin-object-instance>
>          <admin-object-instance>
>                      <jndi-name>Queue2</jndi-name>
>                      <properties>
>                         <property>
>                            <name>DestinationJndiName</name>
>                            <value>route2jesb2</value>
>                         </property>
>                         <property>
>                            <name>DestinationProperties</name>
>                            <value>"Physical"</value>
>                         </property>
>                      </properties>
>         </admin-object-instance>
>      </admin-object-group>
>   </admin-objects>        
>   <outbound-resource-adapter>            
>       <connection-definition-group>
>    
>          <connection-factory-interface>javax.jms.QueueConnectionFactory
>          </connection-factory-interface>      
>          <default-connection-properties>
>             <properties>                      
>               <property>                        
>               <name>ConnectionFactoryJndiName</name>                        
>               <value>XAQueueConnectionFactory</value>
>               </property>                
>            </properties>                  
>          </default-connection-properties>            
>          <connection-instance>              
>             <jndi-name>OutBoundConnection1</jndi-name>              
>             <connection-properties>                  
>                <pool-params>                      
>                   <initial-capacity>2</initial-capacity>                      
>                   <max-capacity>2</max-capacity>                      
>                   <capacity-increment>1</capacity-increment>                    
>                   <shrinking-enabled>true</shrinking-enabled>                    
>                   <shrink-frequency-seconds>60</shrink-frequency-seconds>                  
>                </pool-params>                              
>              </connection-properties>
>           </connection-instance>      
>        </connection-definition-group>
>          
>      
>   </outbound-resource-adapter>
>  
>    
></weblogic-connector>
>  
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="UTF-8"?>
>
><!--
>  ** This file was automatically generated by EJBGen 9.0
>  ** Build: 20040513-1205
>-->
><ejb-jar
>  xmlns="http://java.sun.com/xml/ns/j2ee"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
>  version="2.1">
>  <enterprise-beans>
>    <message-driven>
>      <ejb-name>messageDriven</ejb-name>
>      <ejb-class>examples.ejb20.message.MessageTraderBean</ejb-class>
>      <transaction-type>Container</transaction-type>
>      <message-destination-type>javax.jms.Queue</message-destination-type>
>      <security-identity>
>        <run-as>
>          <role-name>weblogic</role-name>
>        </run-as>
>      </security-identity>
>    </message-driven>
>  </enterprise-beans>
>  <assembly-descriptor>
>  
>    <security-role>
>      <role-name>weblogic</role-name>
>    </security-role>
>    <container-transaction>
>    <method>
><ejb-name>messageDriven</ejb-name>
> <method-name>*</method-name>
>        </method>
><trans-attribute>NotSupported</trans-attribute>
></container-transaction>
>  </assembly-descriptor>
></ejb-jar>
>  
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="UTF-8"?>
>
><!--
>  ** This file was automatically generated by EJBGen 9.0
>  ** Build: 20040513-1205
>-->
><weblogic-ejb-jar
>  xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
>  <weblogic-enterprise-bean>
>    <ejb-name>messageDriven</ejb-name>
>
>    <message-driven-descriptor>
>        
>      <pool>
>        <max-beans-in-free-pool>200</max-beans-in-free-pool>
>        <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
>      </pool>
>      <destination-jndi-name>Queue1</destination-jndi-name>
>      <initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
>      <provider-url>t3://localhost:7001</provider-url>
>      <connection-factory-jndi-name>OutBoundConnection1</connection-factory-jndi-name>
>    </message-driven-descriptor>
>  </weblogic-enterprise-bean>
>  <security-role-assignment>
>    <role-name>weblogic</role-name>
>    <principal-name>weblogic</principal-name>
>  </security-role-assignment>
></weblogic-ejb-jar>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price!