"Viquar A. Hussain" wrote:
> > Yep, you don't want to hardcode your JNDI properties if you want your EJBs
> > to be portable.  But I don't think you can't put them in a properties file
> > since reading from files is prohibited in the EJB spec (1.1 spec, 18.1.2).
>
> The spec only says that the Bean should not use the java.io package to access
> files/directories. This does not mean that the services/Container (in this case
> JNDI) cannot use files.

... i.e. it's ok to use Class.getResourceAsStream() and ResourceBundles.
I prefer the latter.

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684

===========================================================================
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".

Reply via email to