Yup, thanks for correction. Burkhard
----- Original Message -----
From: "Lorenzo Resta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:12 AM
Subject: Re: [JBoss-user] Setting & Accessing Resource Files in JBoss
Hi Burkard,
As far as i know you should not access files directly through file IO
operations, or make assumptions on an existing filesystem
at all in EJB's.
The "/" in a resource name is relatively seen, the package root from the
class that calls the getClass().getResourceAsStream() method. This way
you can
package resources with the jar and don't have to create and manage
external directorier (on different operating systems). The "/" used in
resources works for all operating systems.
Cheers
Lorenzo
SurfKitchen, Inc
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user