Thanks Sheldon,
That makes things a lot clearer for me.
Appreciate it loads,
Brian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sheldon
Hearn
Sent: 14 August 2003 09:11
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Accessing a ResourceBundle from a MDB

On (2003/08/13 11:09), Brian McSweeney wrote:

> I'm using a resource bundle properties file successfully in 
> my struts actions to internationalize the app. 
[...]

> However I also need to load the resource bundle from the 
> back end. When I try to load the resource bundle from a 
> Message Driven Bean it can't find the file. 

I'm no expert, but I'm asnwering because your question doesn't seem to
have been answered for a day.

One way is to bundle the properties in the ejb.jar.  This is a pain in
the arse to work with, especially when you have multiple ejb jars.

Another way (which I use myself) is to deploy the properties in the same
directory as the ejb.jar.

This assumes that getClass().getResourceAsStream() is used to source the
properties.

I think the ideal way is to make the properties available to both by
placing them in the lib directory of an EAR, but EARs seem to come with
other problems that make them too much work for me to tackle right now.

Ciao,
Sheldon.


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to