JMS Connections
Last updated
Last updated
JMS Connection serves for receiving and sending JMS messages.
Connections can be:
Internal (saved in the graph): See Internal JMS Connection can be created from outline. See . The internal connection can be made usable by other graphs by:
Externalization: See .
Export: See .
External (shared): See . External JMS connection can be created using Edit JMS Connection Wizard. See . To use an external (shared) JMS connection in the current graph you can:
Link the connection to the graph: See .
Internalize the connection: See .
Authentication password can be encrypted using Secure parameters. See or .
An Internal JMS Connection is a JMS Connection being a part of a graph. The Internal JMS Connection is contained in the graph and can be seen in its source tab.
The Internal JMS connection is created in the Outline pane.
Right click the Connections group or any connection item.
Select Connections > Create JMS connection.
The Edit JMS connection wizard opens. Here, you can define the JMS connection. Both the wizard and the instructions on setting up the connection are described in .
Any existing Internal JMS Connection can be converted (externalized) to the External JMS Connection. This gives you the ability to use the same JMS connection across multiple graphs.
Right-click an internal connection item in the Outline pane and select Externalize connection from the context menu.
A new wizard will be opened. The wizard offers location for the new external (shared) connection configuration file in conn
directory of your project and file name for external JMS Connection. If a file with the connection file name already exists, you can change the suggested name of the connection configuration file.
Finish the wizard by clicking the OK button.
A new configuration file appears in the conn
subfolder of the project (visible in the Project Explorer pane). Internal connection item in the Outline pane is converted to link to the newly created external (shared) connection.
You can even externalize multiple internal connection items at once.
Choose JMS Connections to be externalized in the Outline pane.
Right-click and select Externalize connection from the context menu.
A new wizard will be opened. The wizard offers the conn
folder of your project as the location for the first of the selected internal connection items.
Click the OK button to continue.
The same wizard will be opened for each of the selected connection items until all selected connections are externalized. The wizard works in the same way as when externalizing a single connection.
The same approach is valid for both database and JMS connections.
This case is somewhat similar to that of externalizing an internal JMS connection. But, while you create a connection configuration file that is outside the graph in the same way as externalizing, the file is not linked to the original graph. Only the connection configuration file is being created.
You can use such a file for more graphs as an external (shared) connection configuration file as mentioned in the previous sections.
Choose JMS Connection in Outline.
Right-click and choose Export connection.
After the export of JMS Connection the Outline pane connection folder remains the same. The newly created connection configuration file appears in the conn
directory in the Project Explorer pane.
Exporting multiple selected internal JMS connections is analogous to externalizing multiple JMS connections described in the previous section.
External (shared) JMS connections are connections usable across multiple graphs. The external connections are stored outside the graph and that is why they can be shared.
To create an external (shared) JMS connection select File > New Other.
Select Data Shaper > Connection > JMS connection item.
When all properties of the connection has been set, you can validate your connection using the Validate connection button.
Choose the project, its conn
subfolder, choose the name for your external JMS connection file.
Click the OK button to finish the wizard.
Existing external (shared) connections can be linked to any graph you would like to use them in.
Right-click either the Connections group or any of its items.
Select Connections > Link JMS connection from the context menu.
URL Dialog has been opened. Expand the conn
folder in the dialog and choose the desired connection configuration file.
You can link multiple external (shared) connection configuration files at once: select multiple connection files in the dialog.
The same approach is valid for linking of both the database and JMS connections.
Any shared (external) JMS Connection can be internalized (converted to the internal connection). To internalize Exported JMS Connections link the JMS Connection to the graph first.
Right-click a linked external (shared) connection item in the Outline pane.
Select Internalize connection from the context menu.
The selected JMS Connection in the outline have been converted from external to internal. The file with External JMS Connection stays unaffected.
You can even internalize multiple linked external (shared) connection configuration files at once. To do this, select the desired linked external (shared) connection items in the Outline pane.
You can select adjacent items when you press Shift and then the Down Cursor or the Up Cursor key. If you want to select non-adjacent items, use Ctrl+Click at each of the desired items instead.
However, the original external (shared) connection configuration files still remain to exist in the conn
subfolder (visible in the Project Explorer pane).
The same approach is valid for linking of both the database and JMS connections.
Edit JMS Connection dialog enables to set up JMS connection.
The Edit JMS connection wizard contains eight text areas that must be filled:
Name - name of the connection
Initial ctx [context] factory class - fully qualified name of the factory class creating the initial context
Libraries - use the plus button to add libraries
URL
Connection factory JNDI name - implements javax.jms.ConnectionFactory
interface
Destination JNDI - implements javax.jms.Destination
interface
User - your authentication username
Password - password to receive and/or produce the messages
Validate connection - Validates the connection. The connection is validated locally even if the project is remote.
If you are creating the external (shared) JMS connection, you must select a filename for this external (shared) JMS connection and its location.
It is recommended to encrypt your authentication passwords. Otherwise, it remains stored and visible in the configuration file (shared connection) or in the graph itself (internal connection). Thus, the authentication password could be seen in one of these two locations.
Use the wizard in the same way as in the case of .
The Edit JMS connection wizard opens. See .
The dialog can be opened from Outline Pane (See ) or from Project Explorer (See ).
The authentication password can be encrypted using Secure Parameters. Encrypt the password and store the encrypted value in the graph parameter. The parameter has to be marked as secure. See .