Share this page

# LrJposChannel.getPackager

Gets the packager that is used when sending or receiving messages.

`public static ISOPackager getPackager()`

## Return values

This function returns an org.jpos.iso.IsoPackager object.

Returns null if the channel is not initialized.

## Example

Copy code

    public void getInfo() {

            String host = LrJposChannel.getHost();
            int port = LrJposChannel.getPort();
            ISOPackager packager = LrJposChannel.getPackager();

            lr.output_message("Channel properties: host - " + host + " port - " + port);
            if (packager != null) {
                lr.output_message("Packager description: " + packager.getDescription());
            }
            else {
                lr.output_message("Packager is not set");
            }
      }

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: