dev@glassfish.java.net

Re: jdbc resource and env-entry lookup in v3

From: Mahesh Kannan <Mahesh.Kannan_at_Sun.COM>
Date: Tue, 22 Jul 2008 21:58:26 -0700

Amy,
  If you have a web app that demonstrates this problem, could you mail it?

Thanks,
--Mahesh


Amy Roh wrote:
> lookup("java:comp/env/webapp-env") and "java:comp/env/jdbc/__default"
> used to work in v2. I'd think they should continue to work in v3.
>
> I can look up "jdbc/_default" in v3 as you mentioned but env-entry
> "webapp-env" doesn't work even though I have the following in sun-web.xml
>
> <env-entry>
> <env-entry-name>webapp-env</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>webapp-env-value</env-entry-value>
> </env-entry>
>
> I'll file an issue.
>
> Thanks,
> Amy
>
> Marina Vatkina wrote:
>> I think you should be looking up "jdbc/__default" (at least this is
>> what my manual tests do).
>>
>> regards,
>> -marina
>>
>> Amy Roh wrote:
>>
>>> I can't get a simple jdbc lookup in v3 after adding resource-ref in
>>> sun-web.xml - "No object bound to name
>>> java:comp/env/jdbc/__default". Is this currently supported in V3?
>>>
>>> Thanks,
>>> Amy
>>>
>>> ---------------------------------------------------------------------
>>> 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
>