Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    MQSeries::QueueManager 1.28

    Download button

    No screenshots available
    Downloads: 1,082  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.2/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Christian Soeller | More programs
    Perl Artistic License / FREE
    February 5th, 2008, 12:22 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    MQSeries::QueueManager description

    MQSeries::QueueManager is an OO interface to the MQSeries Queue Manager.

    MQSeries::QueueManager is an OO interface to the MQSeries Queue Manager.

    SYNOPSIS

    use MQSeries;
    use MQSeries::QueueManager;

    #
    # Simplest, trivial usage
    #
    my $qmgr = MQSeries::QueueManager->new( QueueManager => 'some.queue.manager' ) ||
    die("Unable to connect to queue managern");

    #
    # The best way to do error checking. Handle the object
    # instantiation and connection to the queue manager independently.
    #
    my $qmgr = MQSeries::QueueManager->new
    (
    QueueManager => 'some.queue.manager',
    AutoConnect => 0,
    ) || die "Unable to instantiate MQSeries::QueueManager objectn";

    $qmgr->Connect() ||
    die("Unable to connect to queue managern" .
    "CompCode => " . $qmgr->CompCode() . "n" .
    "Reason => " . $qmgr->Reason() .
    " (", MQReasonToText($qmgr->Reason()) . ")n");

    #
    # Advanced usage. Enable the connection timeout, and connection
    # retry logic.
    #
    my $qmgr = MQSeries::QueueManager->new
    (
    QueueManager => 'some.queue.manager',
    AutoConnect => 0,
    ConnectTimeout => 120,
    RetryCount => 60,
    RetrySleep => 10,
    ) || die "Unable to instantiate MQSeries::QueueManager objectn";

    $qmgr->Connect() ||
    die("Unable to connect to queue managern" .
    "CompCode => " . $qmgr->CompCode() . "n" .
    "Reason => " . $qmgr->Reason() .
    " (", MQReasonToText($qmgr->Reason()) . ")n";

    #
    # Avoid a channel table file or MQSERVER variable and specify
    # the client connect options directly.
    #
    my $qmgr = MQSeries::QueueManager->new
    (
    QueueManager => 'some.queue.manager',
    ClientConn => { 'ChannelName' => 'FOO',
    'TransportType' => 'TCP', # Default
    'ConnectionName' => "hostname(1414)",
    'MaxMsgLength' => 16 * 1024 * 1024,
    },
    ) || die("Unable to connect to queue managern");

    The MQSeries::QueueManager object is an OO mechanism for connecting to an MQSeries queue manager, and/or opening and inquiring a queue manager object.

    This module is used together with MQSeries::Queue and MQSeries::Message, and the other MQSeries::* modules. These objects provide a simpler, higher level interface to the MQI.

    This module also provides special support for connect timeouts (for interrupting MQCONNX() calls that may hang forever), as well as connect retry logic, which will retry failed MQCONNX() calls for a specific list of reason codes.

    See the "Special Considerations" section for a discussion of these advanced, but powerful, features.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    object-oriented interface | MQSeries Queue Manager | Perl module | object-oriented | interface | MQSeries

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM