users@genericjmsra.java.net

Re: Issue in glassfish configuration with Tibco EMS and MDB

From: Ramesh <Ramesh.Parthasarathy_at_Sun.COM>
Date: Tue, 10 Nov 2009 09:33:46 +0530

Hi Seema,
    The ra.xml cannot be edited through admin GUI, and it is not
supposed to be. The ra.xml is a bundled configuration of the resource
adapter. The values configured through ra-config (that is persisted in
domain.xml and *not* ra.xml) will override the the ra.xml values. And
finally an MCF configuration (or activation spec) will override what is
configured in the ra-config.
> 1. The ra.xml file in the deployed file didn't have the values that were entered.
What is the requirement for this ? If you are expecting the
configuration in ra-config to be persisted in ra.xml, then the
understanding is not correct.

> 2. The error message in the logs were " Caused by: java.lang.Exception: ResourceAdapterConfig already exists: cannot add duplicate"
There is already an ra-config with the same name, and that is why you
get this error.

If there is any step in the integration guide that requires
clarification, please point out.

Thanks
-Ramesh

Seema Richard wrote:
> Ramesh,
>
> The following steps were performed according to the tutorial link that you sent.
> - The asadmin create-resource-adapter-config command displayed a success message after execution.
> - The genericra.rar available in glassfish-v2ur2\lib\addons\resourceadapters\genericjmsra was deployed
>
> Results were as follows.
> 1. The ra.xml file in the deployed file didn't have the values that were entered.
> 2. The error message in the logs were " Caused by: java.lang.Exception: ResourceAdapterConfig already exists: cannot add duplicate"
>
> Please advise if we are missing something.
>
> Thanks,
> Seema
>
> -----Original Message-----
> From: Ramesh.Parthasarathy_at_Sun.COM [mailto:Ramesh.Parthasarathy_at_Sun.COM]
> Sent: Monday, November 09, 2009 9:50 PM
> To: users_at_genericjmsra.dev.java.net
> Cc: Seema Richard
> Subject: Re: Issue in glassfish configuration with Tibco EMS and MDB
>
> Hi
> Its not clear as to what you are trying to do
> If you are looking for integration steps, please follow this
> https://genericjmsra.dev.java.net/docs/tibco-genericjmsra-integration-sample-doc/Integrating_Sun_Java_System_Application_Server_with_Tibco_JMS_using_the_Generic_Resource_Adapter_for_JMS.html
>
> If you have an error , the server.log file would provide more information.
>
> Thanks
> Ramesh
>
> Deepu Syamaladevi Janardhananachary wrote:
>
>> Hi,
>>
>> I would like to know how to get messages from a Tibco Queue to an MDB
>> deployed in glassfish.
>>
>> I am using glassfish server(Sun Java System Application Server 9.1_02
>> (build b04-fcs)), EJB 3 and Tibco EMS version 5.0.0
>>
>> I created the resource adapter genericra using the command prompt
>>
>> C:\Program Files\glassfish-v2ur2\bin>asadmin
>> create-resource-adapter-config --user admin --property
>> SupportsXA=false:ProviderIntegrationMode=jndi:UserName=xxx:Password=xxx:JndiProperties=java.naming.factory.url.pkgs\\=com.tibco.tibjms
>>
>> .naming,java.naming.factory.initial\\=com.tibco.tibjms.naming.TibjmsInitialContextFactory,java.naming.provider.url\\=xxx\://xxx.xxx.com\\:1234:LogLevel=
>>
>> finest genericra
>>
>> After this though it is showing executed successfully, I couldn't find
>> the location of created file.
>>
>> From the admin console ApplicationsąConnector Modules, I deployed the
>> genericra.rar available in
>> glassfish-v2ur2\lib\addons\resourceadapters\genericjmsra.
>>
>> Then two columns of Name and Value came. The ra.xml in the deployed
>> file didn't have any of the value that I entered. Its version is 1.7
>>
>> What do I need to do to change the values in resource adapter?
>>
>> So I changed my approach
>>
>> I created a connector project in eclipse(Ganymede) and entered the
>> values in the ra.xml within the tag resourceadapter. But when I deploy
>> it in the connector Modules, it is saying as error resource adapter.
>>
>> Regards,
>>
>> Deepu Janardhananachary
>>
>>
>
>