Class ImaJmsFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String COPYRIGHT  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.jms.ConnectionFactory createConnectionFactory()
      Creates an IBM MessageSight JMS client connection factory.
      static javax.jms.ConnectionFactory createConnectionFactory​(String protocol, String server, int port, String clientID)
      Creates an IBM MessageSight JMS client connection factory.
      static javax.jms.Queue createQueue​(String name)
      Creates a queue given a name.
      static javax.jms.QueueConnectionFactory createQueueConnectionFactory()
      Creates an IBM MessageSight JMS client queue connection factory.
      static javax.jms.Topic createTopic​(String name)
      Creates a topic given a name.
      static javax.jms.TopicConnectionFactory createTopicConnectionFactory()
      Creates an IBM MessageSight JMS client topic connection factory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createConnectionFactory

        public static javax.jms.ConnectionFactory createConnectionFactory()
                                                                   throws javax.jms.JMSException
        Creates an IBM MessageSight JMS client connection factory.

        The ConnectionFactory object within the IBM MessageSight JMS client allows you to create a Connection. In order to do so you must first set properties in the Connection factory object. This can be done by casting the ConnectionFactory to the ImaProperties interface and setting the properties.

        Returns:
        A ConnectionFactory which can also be cast to ImaProperties.
        Throws:
        javax.jms.JMSException - If the connection factory cannot be created
      • createConnectionFactory

        public static javax.jms.ConnectionFactory createConnectionFactory​(String protocol,
                                                                          String server,
                                                                          int port,
                                                                          String clientID)
                                                                   throws javax.jms.JMSException
        Creates an IBM MessageSight JMS client connection factory.

        The ConnectionFactory object within the IBM MessageSight JMS client allows you to create a Connection. This method allows you to set the most common connection factory properties.

        If one of the values is null (or zero for port) the default is used.

        Parameters:
        protocol - - The protocol - tcp for non-secure or tcps for secure.
        server - - A space and/or semicolon separated list of server addresses or resolvable names.
        port - - The port to connect to
        clientID - - The client identifier for this connection
        Returns:
        A ConnectionFactory which can also be cast to ImaProperties or used to create a Connection.
        Throws:
        javax.jms.JMSException - if the connection factory cannot be created
      • createTopicConnectionFactory

        public static javax.jms.TopicConnectionFactory createTopicConnectionFactory()
                                                                             throws javax.jms.JMSException
        Creates an IBM MessageSight JMS client topic connection factory.

        Returns:
        A TopicConnectionFactory which can also be cast to ImaProperties.
        Throws:
        javax.jms.JMSException - If the topic connection factory cannot be created
      • createQueueConnectionFactory

        public static javax.jms.QueueConnectionFactory createQueueConnectionFactory()
                                                                             throws javax.jms.JMSException
        Creates an IBM MessageSight JMS client queue connection factory.

        Returns:
        A QueueConnectionFactory which can also be cast to ImaProperties.
        Throws:
        javax.jms.JMSException - If the queue connection factory cannot be created
      • createTopic

        public static javax.jms.Topic createTopic​(String name)
                                           throws javax.jms.JMSException
        Creates a topic given a name. The name of a topic is a String which describes the topic. This is often different from the name under which it is stored in JNDI.

        It is possible to call this method with a null value for the name, but the topic must have a name before it can be used. The name can be set later using the Name property.

        Parameters:
        name - The name of the topic
        Returns:
        A Topic which can also be cast to ImaProperties.
        Throws:
        javax.jms.JMSException - If the topic cannot be created
      • createQueue

        public static javax.jms.Queue createQueue​(String name)
                                           throws javax.jms.JMSException
        Creates a queue given a name. The name of a queue is a String which describes the queue. This is often different from the name under which it is stored in JNDI.

        It is possible to call this method with a null value for the name, but the queue must have a name before it can be used. The name can be set later using the Name property.

        Parameters:
        name - The name of the queue
        Returns:
        A Queue which can also be cast to ImaProperties.
        Throws:
        javax.jms.JMSException - If the destination cannot be created