I suppose you mean a EntityBean which data you want to show in a different application.
I prefer to separate this beans into a component and deploy it to both instances.
A remote access will be slow and is only possible if you use EJB2.x ;-)
I have a *.jar file and I would like to call a method from this file, but this *.jar file is in the same network, but on an other jboss.
I found something in the Internet. Jboss Messaging Bridge. Is this not a solution?
A method from a jar file, I'm confused
What kind of component it is?
BTW JBossMessagingBridge is for asynchronous JMS messaging system, nothing where are methots can be called.
I have a statelessSessionBean (Data.jar).
Is JBossMessagingBridge not for the communication between two servers?
If you have a SLSB you have to add the interfaces to your 'other' application and lookup and call the SLSB as a (remote)client.
A MessagingBridge is something to bring two different systems together, might be an EAP system or two different JMS systems.
But normaly it is asynchronous.
You talk about synchron method invocation.
SLSB (Stateless SessionBean I think)
I already done this, but the problem is, that the Bean must be in the same deploy-file and the same jboss as my application or not?