• Post Reply Bookmark Topic Watch Topic
  • New Topic

Technology/Software Required  RSS feed

 
Sangel Kapoor
Ranch Hand
Posts: 162
1
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Geeks

I have the following requirement in my project and i am not sure which technology/API/library to employ for achieving
the same

Use Case: Two Java Applications are running on the same machine. First Java Application(J2ee) wants to send message(s) to the
othe JAVA Application(JMS Application) via some port and by using the HTTP protocol. I have heard of Jetty and Sockets , but not sure
whether it fits as a solution to my problem.

Please Suggest !!!

Thanks and Warm Regards
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm confused. The second application, the one receiving the messages, is a JMS application, correct? But you want to connect to it using HTTP? That doesn't sound right to me.
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are options for Interprocess Communication (IPC) :

1. Queues, which it seems you already have in the app.
2. RESTful http.
3. SOAP http.
4. In-memory shared memory map using semaphores to control ownership of the shmat.
5. RPC.


There are others, but those are the good ones.
 
Sangel Kapoor
Ranch Hand
Posts: 162
1
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for your replies.

Let me recite my problem again since it created confusion.

1. I have on JMS Client Java Application that talks to the MOM (Apache ActiveMQ) (i.e. Sends messages to the Queue and Receives Messages Asynchronously) . I will refer to it as JMS Application.

2. We have another separate Android Project running in which there is one J2EE Server and Android Mobile clients. Android Mobile Clients sends messages to the other Android Mobile Clients via Server . Subsequently , Server application does some processing with the messages received from one android device and passes this message to another Android Device using GCM (Google Cloud Messaging, PUSH server) . Now we want to use our own PUSH server in spite of GCM.

So one approach is to integrate the JMS client inside the J2EE server program . I have little knowledge and exposure to J2EE so I suggested to use JMS Application (Already running and tested) and let the J2EE server talks to the JMS Client application . I will deploy the JMS application in the same server machine.

So now my query is to how to make these 2 applications talk to each other assuming they are on the same machine ?? I want J2EE server application to talk to my JMS application assuming they are on the same machine.


Thanks and Warm Regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!