Unfortunately if you can't change the two instances to use different JNDI names I think your only option is to start two JBoss instances.
It's actually a JMX error. There ought to be a way to specify different ObjectNames for your EJBs. I would file a bug on this....
Thanks for your reply. This is a very crucial issue for me. Some more thoughts to different approches to my problem,
1. Changing jndi names: Multiple versions of the application will be running so I can't have different jndi names for very release.
2. Having mutiple instaces: Not at all possible as one day I will have control over instances.
If you get any hint/solution. Please keep replying to this message.
Thanx and regards,
i'de like to do something similar, but in my case i want to have multiple instances of the same application as we a providing our product as a hosted solution and having multiple jboss instances all on their own ip address would seam rather wasteful