4 Replies Latest reply on Aug 1, 2002 9:35 PM by Andreas Schaefer

    Remote Topic Non-MDB

    jweis Newbie

      The functionality I would like using Topics and Subscribers is:

      On Server 'A' some java object (not an EJB or MDB) creates a message and stores it locally until it has been acknowledged. Server 'A' object then attempts to publish message to a Topic on Server 'B'. Object on server 'B' is listening via onMessage() method.

      Here is how I am accomplishing this right now:

      Object on Server 'A' is publishing messages to a Topic that resides on Server 'A' (a local Topic on same server). Object on Server 'B' looks up TopicConnectionFactory via Server 'A's JNDI service. Then Object on Server 'B' is actually listening / subscribing to the Topic on Server 'A'.

      Here is the question:

      Is this a good way to accomplish remote messaging and listening? It feels not quite right to me? If it can be done better, how in JBOSS 3.0?