Hi all,
I have two EJB jars deployed on the same instance JBOSS application server.
These two jars (lets say A.jar and B.jar) both have a utility class that
retrieves custom property definition in a file called MyResource.properties.
Each of the jar contains its own sets of properties defined in the property
file and a copy of util class.
Method in util class:
public String getMyCustomMessage(String msg)
{
ResourceBundle myresource= ResourceBundle.getBundle("MyResource", getLocale());
return new StringBuffer(myresource.getString(msg)).toString();
}
Here is the problem, when A.jar request service from B.jar, somehow funtions in
B.jar refers to property file in A.jar when it calls the util class within
B.jar. For instance, I have a property Myname=sync in MyResource.properties
file in B.jar not in A.jar. It throws error that it could not find the property
definition even though it is defined and bundled in the jar. When I added
Myname=sync in MyResource.properties file in A.jar, this errror is gone.
May i know what is the cause of such cross reference and how could I rectify
this issue?
Any help is much appreciated. Thank you.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961491#3961491
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961491
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user