k.kbr
k.kbr

Reputation: 45

Interthread communication between 2 Java Projects

I want to interthread communication 2 java projects . How can I do this? Java using IPC? and then threads messaging on each one .

Upvotes: 0

Views: 154

Answers (1)

Attila Gyongyosi
Attila Gyongyosi

Reputation: 81

I hope I understand correctly what you need. Have a look at RMI or JMS.

Both are APIs of Java EE and application servers like WebLogic or WildFly implement them out of the box.

RMI is the Remote Method Invocation API which is primarily used when one Java application running in a JVM provides services to other Java applications (running in separate JVMs). The client applications do not need to know the implementation of the services, just their interfaces.

JMS (Java Message Service) can be used in a single Java application or across multiple applications to provide asynchronous point-to-point (Queue in JMS terminology) or publish/subscribe (Topic in JMS terminology) type of communication between components.

Upvotes: 1

Related Questions