Sunday, 30 November 2008

Messaging Concepts (JMS etc)

JMS.

JMS is a layer on top an underlying messaging engine. JBoss, for example, has a messaging engine that implements the JMS specification, allowing transparent access to the messaging system.

Tibco.

Tibrv class has static open and close methods to create and destroy a Tibco "environment". getVersion returns the current version of Tibco for Java as a String. defaultQueue accesses the default queue (every process has exactly one default queue which you must not destroy).

Your RV client application can connect to a network service via a TibrvRvdTransport object that connects to an rvd (RV daemon process) or a TibrvRvaTransport which connects to an rva (RV agent process) that in turn connects to an RVD. The critical question -How does an RVD work? Basically, a program sends a message and RVD transmits it across the network. It sends messages with matching subject names to the appropriate listeners. (RVAs are used as intermediaries between RVDs and applications - precluding the need for Tibco (JNI) shared libraries to be installed on the client machine). They are used as a communication mechanism for Java applets to talk to Tibco machinery. RVAs add an extra level of indirection and are thus not as efficient as talking directly to a RVD. The RVD is basically a software router.

(note: If a transport can't connect to an rvd transport process it will automatically start one.)

No comments: