0

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

Cœur
39k25 gold badges207 silver badges282 bronze badges
asked Aug 10, 2016 at 11:19
6
  • Interthread or interprocess? Commented Aug 10, 2016 at 11:20
  • interthread . communicate of projects threads Commented Aug 10, 2016 at 11:22
  • 3
    You seem to be confused between _inter_thread _intra_application communication and _inter_application communication. Further, this question is far too broad - there are an almost infinite number of ways to do this; from the basic (file) to the advanced (sockets). Commented Aug 10, 2016 at 11:22
  • There are 2 projects and there are threads of projects .I know I must use to socket ,ipc but ı dont know path Commented Aug 10, 2016 at 11:27
  • Do you have document about this ? Commented Aug 10, 2016 at 11:31

1 Answer 1

1

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.

answered Aug 10, 2016 at 11:31
Sign up to request clarification or add additional context in comments.

1 Comment

There are one pc in here.Projects in same machine.RMİ work here?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.