Global Resource Properties

Connection Settings

The connection settings of global resource can be managed from the adapter properties, from "Global Resource Settings" within the Control Panel.

JMS adapter type supports point-to-point communication type that sends to a single application (connection queue) and publish communication type that sends message to multiple applications (the topic connection).

Topic Connection Setting

Basic settings
Item name Required / Optional Use of Variables Description Remarks
Name Required Not available Enter the name of the connection setting.  
Type Required Not available Select [Topic settings].  
Required settings
Item name Required / Optional Use of Variables Description Remarks
Transaction Required Not available Select whether to perform transaction processing.
  • [Execute without transaction processing]: (default)
    Transaction processing is not performed.
  • [Execute transaction processing]:
    Perform transaction processing.
    JMS provider must support transactions.
  • [Execute XA transaction processing]:
    Perform XA transaction processing.
    JMS provider must support XA transactions.
Refer "Transaction" for more information.
 
Initial context factory name Required Only environment variables are available. Enter the factory implementation class to generate the initial context.

The class name depends on the JMS provider's class libraries stored by $DATASPIDER_HOME/server/plugin/data_processing/modules/jms_adapter.

Learn more information about setting the initial context factory from "Preferences"
Learn more about class library from "Library Installation".
 
Provider URL Required Only environment variables are available. Enter the provider URL provided by naming service .

Setting depends on each provider.
See "Preferences" for more information .
 
User name Optional Only environment variables are available. Enter the user name to use the naming service.  
Password Optional Only environment variables are available. Enter the password to use the naming service.  
Topic factory Required Only environment variables are available. Enter the name of the factory to connect to the topic.
  • The name of the factory is created by an administrator.If you are unsure about the name, please contact your administrator.
Topic name Required Only environment variables are available. Enter the name of the topic.
  • The name of the topic are created by an administrator.If you are unsure about the name, please contact your administrator.
Property Action
Item name Description Remarks
Connection Test Checks the connection to the host.  

Queue Connection Settings

Basic settings
Item name Required / Optional Use of Variables Description Remarks
Name Required Not available Enter the name of the connection setting.  
Type Required Not available Select [Queue settings].  
Required Settings
Item name Required / Optional Use of Variables Description Remarks
Transaction Required Not available Select whether to perform transaction processing.
  • [Execute without transaction processing]: (default)
    Transaction processing is not performed.
  • [Execute transaction processing]:
    Perform transaction processing.
    JMS provider must support transactions.
  • [Execute XA transaction processing]:
    Perform XA transaction processing.
    JMS provider must support XA transactions.
Refer "Transaction" for more information.
 
Initial context factory name Required Only environment variables are available. Enter the factory implementation class to generate the initial context.

The class name depends on the JMS provider's class libraries stored by $DATASPIDER_HOME/server/plugin/data_processing/modules/jms_adapter.

Learn more information about setting the initial context factory from the "Preferences"
Learn more about class library from " library installation".
 
Provider URL Required Only environment variables are available. Enter the provider URL provided by naming service .

Setting depends on each provider.
See "Preferences}" for more information .
 
User name Optional Only environment variables are available. Enter the user name to use the naming service.  
Password Optional Only environment variables are available. Enter the password to use the naming service.  
Queue factory Required Only environment variables are available. Enter the name of the factory to connect to the topic.
  • The name of the factory is created by an administrator.If you are unsure about the name, please contact your administrator.
Queue name Required Only environment variables are available. Enter the name of the queue.
  • The name of the queue is created by the administrator.If you are unsure about the name, please contact your administrator.
Property Action
Item name Description Remarks
Connection Test Checks the connection to the host.  

Components Pool Settings

Component pool settings can only b set from "Global Resource Settings" from Control Panel.

Security

Security can only be set from "Global resource settings" from Control Panel.

Default

In order to correspond to a variety of JMS vendors,JMS uses JNDI (Java Naming and Directory Interface) naming service and JMS has realized the connection to the provider.

Therefore, JMS does not not unique to each provider to develop a MS adapter, data resource configuration properties naming service URL, and the name QueueConnectionFactory initial binding (setting the Name [Initial context factory name] part) to Simply changing, and we each can be connected JMS provider.

The setting of [Initial context factory name], [Provider URL] depend on the JMS provider, therefore, contact JMS vendor company.

Specification Limits

None.

Main exceptions

Exception Name Causes Solution
InvalidPropertyConfigurationException
Are not given the resources required fields. : <Property name>
[<property name>] is not specified. [<property name>] Please specify.
javax.naming.NoInitialContextException:
Cannot instantiate class:
[Initial context factory name] is wrong, or class library has not been copied. Check [Initial context factory name].Or check if the class library has been copied.
javax.naming.ConfigurationException:
No scheme found in URI.
[Provider URL] is incorrect. Confirm [Provider URL].
javax.naming.NameNotFoundException [Topic factory] or [Queue factory] is incorrect. Confirm [Topic factory] or [Queue factory].
javax.naming.NameNotFoundException [Topic name] or [Queue name] is incorrect. Confirm [Topic name] or [Queue name] .
javax.naming.NamingException:
unable to connect, exception = javax.jms.JMSException: error creating socket connection to localhost:4001, message: Connection refused
JMS provider is not running, or the connection settings are incorrect. Check whether JMS provider is running, or check the contents of connections setting.

Notes