LibraryToggle FramesPrintFeedback

The simple VM URI is used in most situations. It allows you to specify the name of the embedded broker to which the client will connect. It also allows for some basic broker configuration.

Example 5.1 shows the syntax for a simple VM URI.


In addition to the transport options listed in Table 5.2, the simple VM URI can use the options described in Table 5.1 to configure the embedded broker.


[Important]Important

The broker configuration options specified on the VM URI are only meaningful if the client is responsible for instantiating the embedded broker. If the embedded broker is already started, the transport will ignore the broker configuration properties.

Example 5.2 shows a basic VM URI that connects to an embedded broker named broker1.


Example 5.3 creates and connects to an embedded broker that uses a non-persistent message store.


The advance VM URI provides you full control over how the embedded broker is configured. It uses a broker configuration URI similar to the one used by the administration tool to configure the embedded broker.

Example 5.4 shows the syntax for a simple VM URI.


Example 5.5 creates and connects to an embedded broker configured using a broker configuration URI.


Comments powered by Disqus