Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Java Application & Application Servers

Experts,
  I am in the process of developing/setting up an application server(Apache Tomcat and an RDBMS) and add the necessary functionalities to provide some kind of a publish-subscribe mechanism.  

I would like to be able to develop a Java-based GUI that allows the user to use to connect to the app server to subscribe for a certain type of data.  When that requested data is available it will be pushed to the subscriber.  

One way I can think of is as part of subscription, the subscriber will provide enough info (hostname, port number, etc...) so that the server will know who and where to 'push' the data to.  But that requires the subscriber (java app) to go into a continuous loop to listen for incoming data.  Is there a better and more graceful way of accomplishing this without using the polling mechism?

Any pointer is greatly appreciated.

Regards,
john  
0
johnchan2000
Asked:
johnchan2000
1 Solution
 
kgreddyCommented:
You have to use Java Messaging Service for these requirements (JMS)
0
 
kgreddyCommented:
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
kgreddyCommented:
Go through Publish/Subscribe Messaging Domain descriptions in the above tutorial.
0
 
anindyabecsCommented:
Hi Naeemg ,
              I also personally prefer EJB's as suggested by  Naeemg ..
                                                                         - Thanks
                                                                                        Anindya

0
 
NaeemgCommented:
so , whats the problem then, just prize me . ........... ;););)
i think this is another suggestion for u. ;););)
0
 
johnchan2000Author Commented:
JMS was considered early on, being asynchronous an all that.  However, I decided to go with an app server (servlets and such) due to the firewall issues.

 Naeemq - thanks for the links, I will certainly look it up.

BTW., I was told that that Sun's JAXM package does provide some libraries that provide some kind of event listener that can be used with a java app (basically, instead of writing the code to continuously polling for incoming data, this package would take care of that).  Have anyone ever heard of such thing?

Regards,
john
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now