Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.5.0

Otp
maxHLevel1
To communicate dynamically with a message queue means that the information about the queue is not taken from the component diagram, but is provided as input to the JMS adapter at runtime.

Multiexcerpt include
MultiExcerptNamejms_dynsendreceive
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE

Noteinfo
iconfalse

As opposed to static JMS, a parameter containing the connection details needs to be specified (see Setting the Connection Details).

...

The sending of messages to a JMS provider is done by the use of the <<JMSAdapter>>. The figure below illustrates the basic structure of an activity diagram using it.

Noteinfo
iconfalse

The message queue needs not to be defined in the component diagram. However, component diagram definitions will serve as a default to the connection info parameter and may be overwritten afterwards by action script.

...

Figure: Activity Diagram for Sending a JMS Message Dynamically

Noteinfo
iconfalse

JMS adapters are able to send messages of type String or of type Blob.

The action Send a JMS Message has the stereotype <<JMSAdapter>> . The <<JMSAdapter>> action can be defined by the help of the E2E Action Wizard.

For sending messages to a JMS provider the following parameters are applicable to the JMS adapter action:

...

Figure: Activity Diagram for Setting the JMS Connection Details

Noteinfo
iconfalse

JMS adapters are able to send messages of type String or of type Blob.

The action Receive a JMS Message has the stereotype <<JMSAdapter>> . The <<JMSAdapter>> action can be defined by the help of the E2E Action Wizard.

For sending messages to a JMS provider the following parameters are applicable to the JMS adapter action:

...

Wanting to open more than one JMS session (e.g. to access multiple queues dynamically), use the attribute name of JMSConnectionInfo to distinct them. On the first use of the <<JMSAdapter>> the Runtime will open a JMS session with the connection details specified. All further <<JMSAdapter>> usages will refer to this session with its particular connection settings, that can not be changed. To open another session (e.g. to access an additional queue) set the divergent session details and assign a divergent name to distinct this session from the first one.

Noteinfo
iconfalse

All JMS sessions will be closed on service end.

...

Setting the Connection Details in E2E Builder Version 5.1

...

Deprecated since Builder 6.0

Expand
titleClick here to read the documentation of setting the connection details in E2E Builder releases before 6.0 ...

In the component diagram, the <<JMSClientDeployment>> containing the connection factory name and the initial context factory is specified. It is not required to specify further connection details in the component diagram as they only would be used as default values.

Figure: Component Diagram without JMS Connection Details

More connection details are specified by action script.

In the example, the parameter queueName specifies the name of the queue, to which the activity sends messages. Connection details such as host, port, protocol, etc. are set in the call behavior action Set JMS Session Details.

Figure: Activity Diagram for Setting the JMS Connection Details

Wanting to open more than one JMS session (e.g. to access multiple queues dynamically), use the attribute name of JMSConnectionInfo to distinct them. On the first use of the <<JMSAdapter>> the Runtime will open a JMS session with the connection details specified. All further <<JMSAdapter>> usages will refer to this session with its particular connection settings, that can not be changed. To open another session (e.g. to access an additional queue) set the divergent session details and assign a divergent name to distinct this session from the first one.

Note
iconfalse

All JMS sessions will be closed on service end.

For more information on the connection details refer to chapter JMS Connection Info.