users@genericjmsra.java.net

Re: genericjmsra - following up [Re: [Re: MQ Series and AS8] (or Weblogic9)]

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Mon, 19 Dec 2005 11:27:00 +0530

Hi Subramanian

For sample instructions on using JavaBean as an integration method,
please have a look at
https://genericjmsra.dev.java.net/docs/userguide/userguide.html
which shows how we can integrate Sun's MQ product with Sun's appserver
using JavaBean mode of integration.

You would want to tune the QueueConnectionFactoryClassName and other MoM
provider specific JavaBean names based on the MoM provider you are
planning to integrate with your application server. Please let me know
should you need more information.

Thanks
--Siva.

Subramanian Easwaran wrote:
> Hi
> I am trying to use GenericJMSRA to integrate with other AppServers like
> Weblogic, BES etc.
>
> I had a few clarifications:
>
> ProviderIntegrationMode
> Set the integration mode as JNDI. Two integration modes exist in the
> Generic Resource Adapter for JMS. The JNDI mode allows the resource
> adapter to use the administered objects published in the message
> provider's JNDI provider to integrate with the message provider.
>
> Could anyone please elaborate on this. what are the implications of
> using JNDI/ Javabean method of integration here?
>
> The example suggests JNDI as integration method. What if i choose the
> other method?
>
> cheers
> subu
>
>
> On 12/19/05, *Binod* <Binod.Pg_at_sun.com <mailto:Binod.Pg_at_sun.com>> wrote:
>
> Hi Max,
>
> > Hi Binod
> >
> > With genericjmsra deployed and "connector-connection-pool"
> > reconfigured in SJSAS8.1 as -
> >
> > asadmin create-connector-connection-pool --port 5050 --raname
> > genericra --connectiondefinition javax.jms.QueueConnectionFactory
> > --property
> >
> SupportsXA=true:ProviderIntegrationMode=javabean:ConnectionFactoryClassName=
> com.ibm.mq.jms.MQConnectionFactory:CommonSetterMethodName=setProperty:UserName=guest:Password=guest:QueueConnectionFactoryClassName=com.ibm.mq.jms.MQQueueConnectionFactory:TopicConnectionFactoryClassName=com.ibm.mq.jms.MQTopicConnectionFactory:QueueClassName=com.ibm.mq.jms.MQQueue:TopicClassName=com.ibm.mq.jms.MQTopic:LogLevel=info:XAQueueConnectionFactoryClassName=com.ibm.mq.jms.MQXAQueueConnectionFactory:XATopicConnectionFactoryClassName=com.ibm.mq.jms.MQXATopicConnectionFactory:XAConnectionFactoryClassName=com.ibm.mq.jms.MQXAConnectionFactory
>
> > jms/wmqQCFpool
> >
> > rem asadmin create-connector-resource --port 5050 --poolname
> > jms/wmqQCFpool jms/wmqQCF
> >
> > asadmin create-admin-object --port 5050 --raname genericra --restype
> > javax.jms.Queue --property DestinationProperties=Name\\=wmqQueue
> > jms/wmqQueue
> >
> > I tried to start up SJSAS8.1 but have the following error -
> >
> >
> [#|2005-12-19T11:04:11.365+0800|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb.mdb|_ThreadID=10
> ;|MDB00017:
> > [SimpleMessageEJB]: Exception in creating message-driven bean
> > container: [com.sun.enterprise.connectors.ConnectorRuntimeException:
> > Could not find physical destination : null]|#]
> >
> >
> [#|2005-12-19T11:04:11.365+0800|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb.mdb|_ThreadID=10;|com.sun.enterprise.connectors.ConnectorRuntimeException
> > com.sun.enterprise.connectors.ConnectorRuntimeException : Could not
> > find physical destination : null
> > at
> >
> com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:573)
> > at
> >
> com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:444)
>
> It seems a MDB is deployed to use default SunMQ and the physical
> destination is absent. i.e, the MDB is not configured properly to use
> genericra.
>
> > at
> >
> com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:139)
> > at
> > com.sun.ejb.containers.MessageBeanContainer
> .<init>(MessageBeanContainer.java:187)
> > at
> >
> com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:221)
> > at
> > com.sun.enterprise.server.AbstractLoader.loadEjbs
> (AbstractLoader.java:477)
> > at
> >
> com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
> > at
> >
> com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java
> :95)
> > at
> >
> com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:180)
> > at
> >
> com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:200)
> > at
> >
> com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
> > at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
> > at com.sun.enterprise.server.PEMain.main(PEMain.java :220)
> > |#]
>
>
> >
> > Do you have experience on how to configure the physical destination
> > properties ("DestinationProperties" type-value pairs for
> > connector-connection-pool in SJSAS8.1 domain.xml)?
>
> So far, we have been using jndi as the IntegrationMode for websphere MQ.
> Sushmita, do you have some time to send your configuration to Max?
>
> Also, I havent yet javap'd and seen what are the properties of MQ
> destination class. If you know, one of them should be physical
> destination name. Also, if you increase the log level, you will get some
> more debug information to figure out whats happening.
>
>
>
> tahanks,
> Binod.
>
> >
> > Thanks
> > Max
> >
> >
> > Binod wrote:
> >
> >> [Moving this to users alias]
> >>
> >>> Hi Binod, pls see inline...
> >>>
> >>> Binod wrote:
> >>>
> >>>>> ...
> >>>>>
> >>>>> Binod wrote:
> >>>>>
> >>>>>> ....
> >>>>>>
> >>>>>>> - And where are those specified RA properties values stored (I
> >>>>>>> cannot find them in domain.xml, or the ra.xml of the deployed
> >>>>>>> "genericra" j2ee-module) ?
> >>>>>>
> >>>>>> domain.xml .
> >>>>>
> >>>>> Fyi attached domain.xml after deploying genericRA where I cannot
> >>>>> find properties for
> >>>>>
> "ConnectionFactoryClassName=com.sun.messaging.ConnectionFactory " etc.
> >>>>> (e.g. searching for the string "com.sun.messaging" returns
> >>>>> nothing) ??
> >>>>
> >>>> <resource-adapter-config object-type="user"
> >>>> resource-adapter-name="genericra"/>
> >>>>
> >>>> You seem to have an empty config...
> >>>
> >>> If that's the case, I should be able to just delete and re-create
> >>> the connector-connection-pool with the RA properties instead of
> >>> delete and create the resource-adapter-config, as anyway we shall be
> >>> override those properties in create-connector-connection-pool
> command.
> >>
> >> Unless I know, how did this configuration come up, I cant comment. I
> >> am not sure, if the steps are followed correctly.
> >>
> >>> But in the user guide, actually, the RA properties are registered
> >>> (and bound?) with create-resource-adapter-config instead of
> >>> create-connector-connection-pool --properties .....
> >>>
> >>> Am I correct? Thanks.
> >>
> >> create-resource-adapter-config :: It creates the RA properties (they
> >> are not bound) but set on the RA javabean. There is just one
> >> resource-adapter-config per RA deployment.
> >> create-connector-connection-pool:: It creates an MCF and set all the
> >> properties. Apart from these properties, it also inherits properties
> >> of the RA javabean. Multiple pools can be created for one resource
> >> adapter deployment.
> >> create-connector-resource:: This is the jndi object. eg:
> >> java.jms.ConnectionFactory. There can be multiple
> connector-resources
> >> per pool.
> >>
> >> The userguide shows the simplest scenario, where all the properties
> >> are specified in RA level. So, there is nothing to override in the
> >> connection-pool level.
> >>
> >> - Binod.
> >>
> >>>>
> >>>> - Binod
> >>>> [They do work... Many people are using it]
> >>>
> >>> Delete the domain, create it. And then execute the
> command/commands.
> >>> If they dont work, send me the command history and domain.xml
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
> <mailto:users-unsubscribe_at_genericjmsra.dev.java.net>
> For additional commands, e-mail:
> users-help_at_genericjmsra.dev.java.net
> <mailto:users-help_at_genericjmsra.dev.java.net>
>
>
>
>
> --
> Subramanian E
> +91-44-24935116