i was thinking of using it as for picking up and therefore holding static
data, (not changeable) not really for view
and using like
MessageResources resources = getResources();
String example = resources.getMessage("resource.example");
or are there better solutions to do this in ejbs ?-----Original Message----- From: Kiss, Tibor (Contractor) [mailto:[EMAIL PROTECTED]] Sent: 23 January 2003 16:43 To: 'Struts Users Mailing List' Subject: AW: how to MessageResources in EJB's However, I see some design problems there, if you are using messages (view) in the backend/logic part of your app. -----Urspr�ngliche Nachricht----- Von: Greg Murray [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 23. Januar 2003 17:41 An: Struts Users Mailing List Betreff: RE: how to MessageResources in EJB's Or use a common JAR to contain a resource file, and reference it from both the EAR and WAR. -----Original Message----- From: Kiss, Tibor (Contractor) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:39 AM To: 'Struts Users Mailing List' Subject: AW: how to MessageResources in EJB's Subclass MessageResource and use JNDI. -----Urspr�ngliche Nachricht----- Von: Friso De Jonge [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 23. Januar 2003 17:37 An: '[EMAIL PROTECTED]' Betreff: how to MessageResources in EJB's Hi, When deploying an application you generally create an ejb jar, an ear and a war file the ejb containing all ejb, the .war containing all the java,jsp taglibs and web-inf. My assumption is that this means the ejb.jar does not know the application.resources file. (since it cannot see the web-inf/classes) am i right ? What would you do if i need to use properties in the ejb's ? Do i write a utility class reading another property file ? Or can i use MessageResources and the factory for it, reading a propertyfile. thanks -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

