admin@glassfish.java.net

Re: enabling resource in a cluster?

From: Sherry Hill <sherry.hill_at_oracle.com>
Date: Thu, 29 Jul 2010 20:21:42 -0700

Hi Hong,

Thanks for looking into this issue and bringing up the questions.
I updated the bug, which answered your questions as enclosed.

I talked to Shing Wai briefly about this discussion and bug.
They may be related. However, no one can tell why why jdbc/__default
should behave differently between das and cluster.

Sherry

PS:
-------- Original Message --------
Subject: [Issue 12755] [naming] NameNotFoundException:
@Resource(name="jdbc/__default") in a cluster
Date: Fri, 30 Jul 2010 03:06:20 +0000
From: sherryshen_at_dev.java.net
To: sherryshen_at_dev.java.net


https://glassfish.dev.java.net/issues/show_bug.cgi?id=12755


------- Additional comments from sherryshen_at_dev.java.net Fri Jul 30 03:06:17 +0000 2010 -------
A discussion on dev alias
https://glassfish.dev.java.net/servlets/ReadMsg?list=dev&msgNo=18318
--When an instance is created, jdbc/__default (resource-ref)
    is not made available in the instance.
--Not sure whether there was any specific reason.

On jsf tests, resource-ref is not created in das and cluster.

The simple way to test would use quicklook
    quicklook/web/jsfinjection/
deploy war to a cluster or das, and then access url.

web dev, sqe bat, quicklook have the same jsf tests.

 From sqe jsf tests, you can see client output, test report, server.log.
http://sqe-hudson.sfbay.sun.com:8080/hudson/job/sherry-jsf/
#6, b13p, all failed.
#4, b10p, all passed.
The main test steps in hudson:
% cd $SPS_HOME
% ant startDerby
% ant setup-cluster-profile
% cd $SPS_HOME/pe/jsf/jsf1_2_injections
% ant ee all



Hong Zhang wrote, On 7/29/2010 1:53 PM:
> Is this the cause of issue 12755?
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=12755
>
> From the description of the issue, it seems it once worked with build
> 10, but started to fail in build 11?
>
> Sherry: was the resource-ref created for the instance in that sqe test?
>
> Thanks,
>
> - Hong
>
> On 7/27/2010 11:47 PM, Jagadish Prasath Ramu wrote:
>> GlassFish v2 also has the same behavior.
>> When an instance is created, jdbc/__default (resource-ref) is not made
>> available in the instance.
>> Copying admin_at_GF to see whether there was any specific reason.
>>
>> Thanks,
>> -Jagadish
>>
>> On Tue, 2010-07-27 at 20:37 -0700, Marina Vatkina wrote:
>>
>>> Hi Jagadish,
>>>
>>> Why isn't it available by default on all instances?
>>>
>>> thanks,
>>> -marina
>>>
>>> Jagadish Prasath Ramu wrote:
>>>
>>>> Hi Marina,
>>>>
>>>> You need to create a resource-ref if you want a resource that already
>>>> exists in the domain to be made available for specific target.
>>>> eg:
>>>> asadmin create-resource-ref --target "CLUSTER_NAME" jdbc/__default
>>>>
>>>> Thanks,
>>>> -Jagadish
>>>>
>>>> On Tue, 2010-07-27 at 13:10 -0700, Marina Vatkina wrote:
>>>>
>>>>
>>>>> How do I enable jdbc/__default in a cluster?
>>>>>
>>>>> thanks,
>>>>> -marina
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail:dev-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail:dev-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail:dev-help_at_glassfish.dev.java.net
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail:admin-help_at_glassfish.dev.java.net
>>
>>