What i am tryin to do is to read a XML file that is in the CLASSPATH.
The XML file is what I call resource.
This file has some information that i need.
-----------------------------------------------------------------
Message: 6
From: "Guy Rouillier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: [JBoss-user] How to use getResourceAsStream() from a EJB
Date: Fri, 11 May 2001 13:14:54 -0400
Reply-To: [EMAIL PROTECTED]
Show us the definition of "resource."
----- Original Message -----
From: Pedro E. G=F3mez <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 9:56 PM
Subject: [JBoss-user] How to use getResourceAsStream() from a EJB
> I need to read a resource that i have in the classpath,
>
> The code is:
>
> Object o =3D new Object();
> System.out.println("O es:" + o);
> Class c =3D o.getClass();
> System.out.println("Class es:" + c);
> System.out.println("Resource is:" + c.getResourceAsStream(resource));
>
>
> But it does not work.... The resource is null.
>
> The output is:
>
> [CatalogoEJB] O es:java.lang.Object@7f94b1
> [CatalogoEJB] Class es:class java.lang.Object
> [CatalogoEJB] Resource is:null
>
>
>
> ______________________________________
> Message sent with Misiva
> Visit us at www.pragma.com.co/misiva
______________________________________
Message sent with Misiva
Visit us at http://www.pragma.com.co/misiva
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user