Creating and configuring connectors

To create connectors, use <OpenConnector>.

Example

In the following example, the server management request first sets a number of relevant properties and associates them with the client ianywhere.connector.jboss, which is the client ID of the new connector. JMS-specific properties are set in such a way that a connector to a local JBOSS JMS server are indicated. The connector is then started using the OpenConnector tag. Note that if you have not started the MobiLink server with the relevant jar files of the JMS client, the connector is not started.

<?xml version="1.0" encoding="UTF-8"?>
<actions>
    <SetProperty>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>ianywhere.connector.nativeConnection</name>
  <value>ianywhere.message.connector.jms.NativeConnectionJMS</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>ianywhere.connector.address</name>
  <value>ianywhere.connector.jboss</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>xjms.jndi.factory</name>
  <value>org.jnp.interfaces.NamingContextFactory</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>xjms.jndi.url</name>
  <value>jnp://0.0.0.0:1099</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>xjms.topicFactory</name>
  <value>ConnectionFactory</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>xjms.queueFactory</name>
  <value>ConnectionFactory</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>xjms.receiveDestination</name>
  <value>qanywhere_receive</value>
   </prop>
        <prop>
       <client>ianywhere.connector.jboss</client>
       <name>xjms.deadMessageDestination</name>
  <value>qanywhere_deadMessage</value>
   </prop>
    </SetProperty>
    <OpenConnector>
        <client>ianywhere.connector.jboss</client>
    </OpenConnector>
</actions>