create a java application to get information from another java application -
i have java application generate informations , print out informations on screen.my problem out information , transfer them java application.this application has own main.i know seems general don't know how explain case study better
your question is general, here few pointers (from low-level comprehensive):
-
pipe output in console:
$ java -jar first-app.jar | java -jar second-app.jar
in scenario console output
first-app
redirected standard input ofsecond-app
. requires both applications work on same machine. solutions below allow distributing producer , consumer across network. socket - java supports them natively , nicely
- rmi - de facto standard of java-to-java communication via binary protocol, rpc-like
- web-services - xml-based protocol on http, soap or rest
- jms - asynchronously sending messages via so-called message broker
- shared database/file/memory, e.g. using hazelcast
Comments
Post a Comment