Skip to content

Instantly share code, notes, and snippets.

@javabrett
Created October 21, 2019 01:04
Show Gist options
  • Save javabrett/a216a859cd8cadf8d969117c2a02a60d to your computer and use it in GitHub Desktop.
Save javabrett/a216a859cd8cadf8d969117c2a02a60d to your computer and use it in GitHub Desktop.
TIBCO EMS client test
package test;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import com.tibco.tibjms.TibjmsConnectionFactory;
public class TibJmsPoke {
public static void main(String[] args) throws JMSException {
new TibJmsPoke(args[0]);
}
public TibJmsPoke(final String url) throws JMSException {
ConnectionFactory cf = new TibjmsConnectionFactory(url);
try(Connection conn = cf.createConnection()) {
conn.start();
conn.stop();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment