?
Solved

Java Application & Application Servers

Posted on 2005-03-01
7
Medium Priority
?
196 Views
Last Modified: 2010-03-31
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
Comment
Question by:johnchan2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 5

Accepted Solution

by:
Naeemg earned 750 total points
ID: 13436400
0
 
LVL 2

Expert Comment

by:kgreddy
ID: 13436549
You have to use Java Messaging Service for these requirements (JMS)
0
 
LVL 2

Expert Comment

by:kgreddy
ID: 13436555
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:kgreddy
ID: 13436563
Go through Publish/Subscribe Messaging Domain descriptions in the above tutorial.
0
 
LVL 1

Expert Comment

by:anindyabecs
ID: 13437352
Hi Naeemg ,
              I also personally prefer EJB's as suggested by  Naeemg ..
                                                                         - Thanks
                                                                                        Anindya

0
 
LVL 5

Expert Comment

by:Naeemg
ID: 13440674
so , whats the problem then, just prize me . ........... ;););)
i think this is another suggestion for u. ;););)
0
 
LVL 1

Author Comment

by:johnchan2000
ID: 13440985
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

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question