Created
October 16, 2014 20:53
-
-
Save dennysfredericci/668b65282bad23d37955 to your computer and use it in GitHub Desktop.
Tibco Rendezvous Sender Sample
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 br.com.fredericci.test; | |
import com.tibco.tibrv.Tibrv; | |
import com.tibco.tibrv.TibrvMsg; | |
import com.tibco.tibrv.TibrvRvdTransport; | |
public class TibcoSender | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
String service = "7500"; | |
String network = "loopback"; | |
String daemon = "tcp:9025"; | |
String subject = "SOME.SUBJECT"; | |
Tibrv.open(Tibrv.IMPL_NATIVE); | |
TibrvRvdTransport transport = new TibrvRvdTransport(service, network, daemon); | |
TibrvMsg msg = new TibrvMsg(); | |
msg.setSendSubject(subject); | |
msg.update("FIELD", "ASDF"); | |
transport.send(msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment