tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laird Nelson <ljnel...@gmail.com>
Subject Re: Putting data source into local container?
Date Mon, 20 Apr 2009 18:07:26 GMT
Hey, this gets weirder.

I found this:
http://www.nabble.com/DataSource-lookup-by-JNDI-name-tt23101598.html#a23101598

Now, this indicates that what you can do is set up your InitialContext, then
*throw it away*, then create a *new* InitialContext without
*any*properties, and look up your data source in
*there*.

I tried it and it works, but boy does it creep me out.  :-)

Any ideas as to why I need to create a new InitialContext with no arguments
after my initialization code to get the subsequent lookup to work?

Cheerfully baffled,
Laird

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