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");
        }
  }