Class JMSAcquisitionTopic


  • public class JMSAcquisitionTopic
    extends Object
    The JMSAcquisitionTopic class allows administrators to create JMS acquisition topics (JMS bridge in).

    The JMS bridge destinations rely on a particular Joram service which purpose is to maintain valid connections with the foreign XMQ servers.

    • Field Detail

      • JMSAcquisition

        public static final String JMSAcquisition
        Class name of handler allowing to acquire messages to a foreign JMS provider.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JMSAcquisitionTopic

        public JMSAcquisitionTopic()
    • Method Detail

      • create

        public static Topic create​(String dest)
                            throws ConnectException,
                                   AdminException
        Administration method creating and deploying a JMS acquisition topic on the local server.

        The request fails if the destination deployment fails server side.

        Be careful this method use the static AdminModule connection.

        Parameters:
        dest - The name of the foreign destination.
        Returns:
        the created bridge destination.
        Throws:
        ConnectException - If the administration connection is closed or broken.
        AdminException - If the request fails.
        See Also:
        create(int, String, String, Properties)
      • create

        public static Topic create​(int serverId,
                                   String dest)
                            throws ConnectException,
                                   AdminException
        Administration method creating and deploying a JMS acquisition topic on a given server.

        The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.

        Be careful this method use the static AdminModule connection.

        Parameters:
        serverId - The identifier of the server where deploying the topic.
        dest - The name of the foreign destination.
        Returns:
        the created bridge destination.
        Throws:
        ConnectException - If the administration connection is closed or broken.
        AdminException - If the request fails.
        See Also:
        create(int, String, String, Properties)
      • create

        public static Topic create​(int serverId,
                                   String name,
                                   String dest)
                            throws ConnectException,
                                   AdminException
        Administration method creating and deploying a JMS acquisition topic on a given server.

        The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.

        Be careful this method use the static AdminModule connection.

        Parameters:
        serverId - The identifier of the server where deploying the topic.
        name - The name of the created topic.
        dest - The name of the foreign destination.
        Returns:
        the created bridge destination.
        Throws:
        ConnectException - If the administration connection is closed or broken.
        AdminException - If the request fails.
        See Also:
        create(int, String, String, Properties)
      • create

        public static Topic create​(int serverId,
                                   String name,
                                   String dest,
                                   Properties props)
                            throws ConnectException,
                                   AdminException
        Administration method creating and deploying a JMS acquisition topic on a given server.

        A set of properties is used to configure the distribution destination:

        • period – .
        • acquisition.period - The period between two acquisitions, default is 0 (no periodic acquisition).
        • persistent - Tells if produced messages will be persistent, default is true (JMS default).
        • expiration - Tells the life expectancy of produced messages, default is 0 (JMS default time to live).
        • priority - Tells the JMS priority of produced messages, default is 4 (JMS default).
        • jms.ConnectionUpdatePeriod - Period between two update phases allowing the discovering of new Connections.
        • jms.DurableSubscriptionName - If the XMQ destination is a topic, this property sets the name of the durable subscription created. If absent, the subscription will not be durable and messages published when connection with XMQ server is failing will be lost.
        • jms.Selector - Expression used for filtering messages from the XMQ destination.
        • jms.Routing - This property allows to filter the connections used to acquire messages.
        The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.

        Be careful this method use the static AdminModule connection.

        Parameters:
        serverId - The identifier of the server where deploying the topic.
        name - The name of the created topic.
        dest - The name of the foreign destination.
        props - A Properties object containing all needed parameters.
        Returns:
        the created bridge destination.
        Throws:
        ConnectException - If the administration connection is closed or broken.
        AdminException - If the request fails.