Created
October 21, 2019 01:04
-
-
Save javabrett/a216a859cd8cadf8d969117c2a02a60d to your computer and use it in GitHub Desktop.
TIBCO EMS client test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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