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  
LVL 1
johnchan2000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kgreddyCommented:
You have to use Java Messaging Service for these requirements (JMS)
0
kgreddyCommented:
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.