Hi all. I have an EJB, annoted with the following...
@Stateful @Name("friendInvite") @Scope(ScopeType.CONVERSATION) public class FriendInviteImpl implements FriendInvite, Serializable, Mutable { private String addtlMessageBundle = org.jboss.seam.international.Messages.instance().get("com.fivi.defaultInviteFriendsAddtlMessage");
I have also tried with
@In("#{messages['com.fivi.friendsInviteMessageUserMessage']}") private String friendsInviteMessageUserMessageBundle;
in components.xml I have
<message-bundle>messages</message-bundle> <locale-config> <default-locale>en</default-locale> <supported-locale>en</supported-locale> </locale-config>
and in my message bundle I have
com.fivi.defaultInviteFriendsAddtlMessage=my test message here
When I view this on my dev machine, the value of friendsInviteMessageUserMessageBundle will be my test message here
, however on a 2 node cluster (jBoss AS 5.1) one of the servers will have my test message here
, and the other will have a value of com.fivi.defaultInviteFriendsAddtlMessage
Any ideas?
Thanks,
Mason
Oh, I should mention that this is an EAR, with the code above in an EJB, and the messages.properties in the WAR.
Thanks,
Mason