Thursday, January 16, 2020

Basic Difference between regular Queue and distributed Queue

Basic Difference between regular Queue and distributed Queue ?

 Queue or Distributed Queue had same set of working design but only one difference is one queue is set for one pinned services where as Distributed queue is targeted to Cluster that means, One distributed queue can have multiple queue which are targeted to individual managed server or JMS server.
I hope you know difference between Uniform distributed queue and Distributed queue.

Uniform Distributed queue will created its own temporary queue destination on run time where as Distributed queue will required physical queue to assigned with in cluster.

Store-and-Forward (SAF Connection) :

Messages are stored on the local server and are forwarded to the remote server when the endpoint is available. Messages will be stored even when the remote destination is not available.It should be used when forwarding JMS between weblogic Server 9.x or later domains.
Defines a collection of imported store-and-forward (SAF) destinations. A SAF destination is a representation of a queue or topic in a remote server instance or cluster that is imported into the local cluster or server instance, so that the local server instance or cluster can send messages to the remote server instance or cluster.
All JMS destinations are automatically exported by default, unless the Export SAF Destination parameter on a destination is explicitly disabled. Each collection of SAF imported destinations is associated with a remote SAF context resource, and, optionally, a SAF error handling resource.
Foreign Server:
    Defines foreign messaging providers or remote WebLogic Server instances that are not part of the current domain.
     This is useful when integrating with another vendor's JMS product, or when referencing remote instances of WebLogic Server in another cluster or domain in the local WebLogic JNDI tree.
It contains information that allows a local WebLogic Server to reach a remote JNDI provider, thereby allowing for a number of foreign connection factory and destination objects to be defined on one JNDI directory. Foreign JMS server directly accesses the remote destination. Advantage: Foreign JMS server is bi-directional; application can send and receive from the same Foreign JMS Server. Disadvantage: JMS messages cannot store the messages. Error handling is not possible. So SAF is recommended for its reliability, where JMS messages will not be lost, compared to Foreign server.

1 comment: