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)
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)?
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
>