That works as well, but it isn't very portable.
If you have an mbean you can specify
${jboss.server.data.dir}/myfolder/23.xml"
Regards,
Adrian
On Fri, 2003-08-29 at 13:55, Stefan Groschupf wrote:
> File file = new File(System.getProperty("jboss.server.data.dir") + "/" +
> "myFolder/23.xml");
>
Use a resource-ref to define a URL. (The most portable mechanism)
Or classloader.getResource[AsStream]() and put the file in your
deployment or the /conf folder if it is shared.
Regards,
Adrian
On Fri, 2003-08-29 at 13:02, Milen Dyankov wrote:
> Hi,
>
> suppose I have EJB that needs to read som
On Fri, Aug 29, 2003 at 02:02:23PM +0200, Milen Dyankov wrote:
> Hi,
>
> suppose I have EJB that needs to read some configuration data from external
> file (lets say an XML file).
> Where I'm supposed to place this config file, and how can I tell my EJB
> where it is?
>
> I've tried to pack bot
File file = new File(System.getProperty("jboss.server.data.dir") + "/" +
"myFolder/23.xml");
point to / jbosshome/server/yourConfig/data/myFolder...
HTH Stefan.
Milen Dyankov wrote:
Hi,
suppose I have EJB that needs to read some configuration data from
external file (lets say an XML file).
W
Hi,
suppose I have EJB that needs to read some configuration data from external file (lets
say an XML file).
Where I'm supposed to place this config file, and how can I tell my EJB where it is?
I've tried to pack both the EJB and "config.xml" in jar and use something like
File file = new File("c