Janardhanan, Ajith (AJANARDH) wrote:
>Binod,
>The system works now, I am able to read the message from the queue and
>for now I am loggig the messages. Thank you very much for your help.
>
>
Glad that things are working now.
>The first time the appserver is started and when there is no message in
>the queue, there is only one connection to MQ. However, I notice that
>when the first batch of messages arrives at the queue, the pool creates
>9 connections to MQ and they remain connected. Is it the way it is
>supposed to work? I have configured the initial pool size as 8 and max
>as 32( the default). When I add more MDBs to handle many more queues, I
>am wondering if this will grow to the max or even more. What is your
>thought about the best way to handle this. (The good thing is that the
>number of connections don't accumulate to hundreds as earlier.!!)
>
>
Eight connections are for the outbound communication. This will be
equal to the steady pool size.
Each MDB use one single connection (and many sessions) for inbound
communication.
Total is nine.
HTH,
Binod.
>Thanks again,
>Ajith
>
>
>
>-----Original Message-----
>From: Binod.Pg_at_Sun.COM [mailto:Binod.Pg_at_Sun.COM]
>Sent: Thursday, June 29, 2006 8:56 AM
>To: users_at_genericjmsra.dev.java.net
>Subject: Re: Problem with with SJAS 9 and WebSphere MQ 5.3
>
>Janardhanan, Ajith (AJANARDH) wrote:
>
>
>
>>I configured a QCF,XQCF and a Queue in the JMSadmin:
>>
>>
>>def xaqcf(XAQCF) hostname(localhost) port(1414) channel(JMS.CHANNEL)
>>transport(CLIENT) qmanager(AMX3QM2LIV)
>>
>>def xaqcf(XAQCF) hostname(localhost) port(1414)
>>channel(SYSTEM.DEF.SVRCONN) transport(CLIENT) qmanager(AMX3QM2LIV)
>>
>>
>>
>>
>Create only qcf.... i.e def(qcf)
>
>
>
>>def q(Q1) queue(JMS1.QUEUE) qmanager(AMX3QM2LIV)
>>
>>
>>In AppServ,
>>
>>asadmin create-connector-connection-pool --raname genericra
>>--connectiondefinition javax.jms.QueueConnectionFactory --property
>>ConnectionFactoryJndiName=XAQCF xapool
>>
>>
>>
>>
>You cannot use XAQCF, as you dont have extended transaction client.
>Always use QCF.
>
>
>
>>asadmin create-connector-connection-pool --raname genericra
>>--connectiondefinition javax.jms.QueueConnectionFactory --property
>>ConnectionFactoryJndiName=QCF mypool
>>
>>asadmin create-connector-resource --poolname xapool jms/MyXAQCF asadmin
>>
>>
>
>
>
>>create-connector-resource --poolname myool jms/MyQCF
>>
>>asadmin create-admin-object --raname genericra --restype
>>javax.jms.Queue --property DestinationJndiName=Q1 jms/FromQ
>>
>>
>>My ejb-jar.xml and sun-ejb-jar.xml are attached. Where and how would I
>>
>>
>
>
>
>>specifiy to not use transaction mode "Required" in the descriptor ?
>>
>>
>>
>>
>Scroll down to your ejb-jar.xml
>
>
>
>>Thanks
>>Ajith
>>
>>
>>
>>
>>-----Original Message-----
>>From: Binod P G [mailto:Binod.Pg_at_Sun.COM]
>>Sent: Thursday, June 29, 2006 1:42 AM
>>To: users_at_genericjmsra.dev.java.net
>>Subject: Re: RE: Re: Problem with with SJAS 9 and WebSphere MQ 5.3
>>
>>
>>
>>----- Original Message -----
>>From: "Janardhanan, Ajith (AJANARDH)" <AJANARDH_at_arinc.com>
>>Date: Thursday, June 29, 2006 10:48 am
>>Subject: RE: Re: Problem with with SJAS 9 and WebSphere MQ 5.3
>>To: users_at_genericjmsra.dev.java.net
>>
>>
>>
>>
>>
>>>I donot have any resource operation in my mdb, except that the MDB has
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>>to read the message from the MQ queue, and propagate the read message
>>>to somewhere, by calling the webservice and the propagated message is
>>>deleted from the queue. I do not send a reply nor do I use a database.
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>>Do these set of operations require SupportsXA ?
>>>
>>>
>>>
>>>
>>It should be fine to use SupportsXA=false in this case.
>>
>>
>>
>>
>>
>>>In my MDB onMessage() method, Im reading the message and calling the
>>>webservice. I have an empty MDB constructor, I donot have any other
>>>methods in the mdb.
>>>
>>>Now, I tried SupportsXA=false , the pool created in the AppServer to
>>>point to the XAQCF created using JMSAdmin and while deploying the mdb
>>>I receive the error "SupportsXA is false and MDB has container managed
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>>transaction" and the ejb is not loaded. Is there anything else to be
>>>configured like changing any of the generated xml files?
>>>
>>>
>>>
>>>
>>Please configure a QCF and XAQCF in JMSAdmin and configure the MDB
>>deployment descriptor to not use transaction mode "Required"
>>
>>- Binod.
>>
>>
>>-----------------------------------------------------------------------
>>-
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD
>>Application Server 9.0 EJB 3.0//EN"
>>"http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
>><sun-ejb-jar>
>><enterprise-beans>
>><unique-id>75470190967259136</unique-id>
>><ejb>
>><ejb-name>SimpleMessageEJB</ejb-name>
>><jndi-name>jms/FromQ</jndi-name>
>><resource-env-ref>
>><resource-env-ref-name>ejb.SimpleMessageEJB/mdc</resource-env-ref-name>
>><jndi-name>ejb.SimpleMessageEJB/mdc</jndi-name>
>></resource-env-ref>
>><pass-by-reference>false</pass-by-reference>
>><jms-max-messages-load>1</jms-max-messages-load>
>><is-read-only-bean>false</is-read-only-bean>
>><refresh-period-in-seconds>-1</refresh-period-in-seconds>
>><cmt-timeout-in-seconds>0</cmt-timeout-in-seconds>
>><gen-classes/>
>><mdb-resource-adapter>
>><resource-adapter-mid>genericra</resource-adapter-mid>
>><activation-config>
>><activation-config-property>
>><activation-config-property-name>DestinationType</activation-config-pro
>>perty-name>
>><activation-config-property-value>javax.jms.Queue</activation-config-pr
>>operty-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>ConnectionFactoryJndiName</activation-
>>config-property-name>
>><activation-config-property-value>QCF</activation-config-property-value
>>
>>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>DestinationJndiName</activation-config
>>-property-name>
>><activation-config-property-value>Q1</activation-config-property-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>MaxPoolSize</activation-config-propert
>>y-name>
>><activation-config-property-value>8</activation-config-property-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>RedeliveryAttempts</activation-config-
>>property-name>
>><activation-config-property-value>0</activation-config-property-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>ReconnectAttempts</activation-config-p
>>roperty-name>
>><activation-config-property-value>4</activation-config-property-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>ReconnectInterval</activation-config-p
>>roperty-name>
>><activation-config-property-value>10</activation-config-property-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>RedeliveryInterval</activation-config-
>>property-name>
>><activation-config-property-value>1</activation-config-property-value>
>></activation-config-property>
>><activation-config-property>
>><activation-config-property-name>SendBadMessagesToDMD</activation-confi
>>g-property-name>
>><activation-config-property-value>false</activation-config-property-val
>>ue>
>></activation-config-property>
>></activation-config>
>></mdb-resource-adapter>
>></ejb>
>></enterprise-beans>
>></sun-ejb-jar>
>>
>>
>>-----------------------------------------------------------------------
>>-
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><ejb-jar metadata-complete="true" version="3.0"
>>xmlns="http://java.sun.com/xml/ns/javaee"
>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
>><enterprise-beans>
>><message-driven>
>><display-name>SimpleMessageEJB</display-name>
>><ejb-name>SimpleMessageEJB</ejb-name>
>><mapped-name>jms/FromQ</mapped-name>
>><ejb-class>ejb.SimpleMessageEJB</ejb-class>
>><messaging-type>javax.jms.MessageListener</messaging-type>
>><transaction-type>Container</transaction-type>
>>
>>
>>
>>
>Change the transaction-type to "Bean"
>
>
>
>><resource-env-ref>
>><resource-env-ref-name>ejb.SimpleMessageEJB/mdc</resource-env-ref-name>
>><resource-env-ref-type>javax.ejb.MessageDrivenContext</resource-env-ref
>>-type>
>><injection-target>
>><injection-target-class>ejb.SimpleMessageEJB</injection-target-class>
>><injection-target-name>mdc</injection-target-name>
>></injection-target>
>></resource-env-ref>
>></message-driven>
>></enterprise-beans>
>></ejb-jar>
>>
>>
>>-----------------------------------------------------------------------
>>-
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>>For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>
>
>