Rickard �berg wrote:
> >Does anyone know if ResourceBundles (ie. property files) are allowed or
> >not under the EJB spec? Because they use the classpath (or classloader)
> >to access them, they still maintain the portability required (they are
> >as portable as any class you would want to use), so I would think they
> >would not violate at least the spirit of the no file access rule in the
> >spec.
> >
> >Does anyone know for sure?
>
> I know for sure (downloaded JDK source and read it), and the answer is
> Yes, they work :-) Using the ClassLoader.getResource() method directly
> would *not* work, *but* since ResourceBundle.getBundle() has been coded
> with doPrivileged at very appropriate places (phew) that can be used as
> a way to access properties files in the .jar.
Thanks for doing the research :)
I did see your other post with this information, I was just asking
whether they were officially "allowed". I suppose that since they are
not officially "disallowed" and as you have kindly noted, they work,
therefore I assume we're safe to use them.
Just trying to safeguard against things like undocumented features, and
things that you "can" do, but you "aren't supposed to" do.
Thanks!
--
Joel Shellman
Chief Software Architect
The virally-driven B2B marketplace for outsourcing projects
http://www.ants.com/90589781
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".