Emmanuel Pirsch wrote:
>
> Resource access with Class.getResource() and
> Class.getResourceAsStream() are allowed by the specification. They go
> through the ClassLoader and the EJB server can easily handle this.

I second that.

arkin

>
> --- Rickard �berg <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > As defined in the EJB 1.1 specification file I/O is not allowed. This
> > is
> > ok.
> >
> > However, this has the side effect that resources that are packaged
> > with
> > the beans (i.e. accessible through the classpath that is the
> > transitive
> > closure of the deployed JAR) cannot be accessed through the
> > Class.getResource and Class.getResourceAsStream methods.
> >
> > Is this intentional?
> >
> > Should the restrictions be relaxed so that files(/resources) that
> > have
> > been packaged with the beans are available through the above methods?
> > IMHO they do not compromise the portability of the beans.
> >
> > Any thoughts would be appreciated.
> >
> > regards,
> >   Rickard
> >
> > --
> > Rickard �berg
> >
> > @home: +46 13 177937
> > Email: [EMAIL PROTECTED]
> > http://www.dreambean.com
> > Question reality
> >
> >
> ===========================================================================
> > 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".
> >
> >
> >
> >
>
> =====
> Emmanuel Pirsch
> Sun Certified Java Programmer
> Unite for Java! - http://www.javalobby.org
> ---
> "Imagination is more important than knowledge."
>    - Albert Einstein
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ===========================================================================
> 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".

--
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

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