tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Resource-link to global resource
Date Mon, 02 May 2016 11:16:42 GMT
Le 2 mai 2016 13:12, "tonywestonuk" <tonyw@totspics.com> a écrit :
>
> @Resource(name="openejb:Resource/jdbc/gblmetadata")  doesn't find it.
> However
>
> @Resource(lookup="openejb:Resource/jdbc/gblmetadata") does!! :-D
>

Name is concerted to an internal name. Lookup queries jndi directly.

>
> Next problem.   Is there any way I can avoid not having to put this
> @Resource annotation at all?  - If I dont put it, the default HSQL
database
> is found.   Is there somewhere where I can configure that I want my own
> global datasource to be the default, rather than the built in on? .....
and
> if possible, maybe even turn off the HSQL db.?
>

Sure putting openejb offline will not auto create resource but also means
you dudnt wire properly resources to let tomee link it correctly.

> Thanks.
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Resource-link-to-global-resource-tp4678304p4678308.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message