Rinat Mukhamedgaliev
Rinat Mukhamedgaliev

Reputation: 5731

In-Process communication way

I have 2 programs. I want create task delegation between programs. How can I provide task to other program without RabbitMQ and socket-based server? I want to implement only with vanilla Java way.

I see:

Upvotes: 1

Views: 83

Answers (2)

Markus Malkusch
Markus Malkusch

Reputation: 7878

You might have a look at RMI for now. In a further future a look into the Application Isolation API (JSR-121) might be interesting as well.

Upvotes: 2

Glenn Lane
Glenn Lane

Reputation: 4030

Your only two choices is network sockets, file/file-locking, or some JNI you've written to use OS-specific interprocess communication.

I would use a third-party socket-based message queue.

Upvotes: 2

Related Questions