Benutzer:MovGP0/TIBCO Rendezvous

aus Wikipedia, der freien Enzyklopädie
   MovGP0        Über mich        Hilfen        Artikel        Weblinks        Literatur        Zitate        Notizen        Programmierung        MSCert        Physik      


TIBCO Rendezvous

Send message
var commandLineParameters = new []
{
   "-reliability", "3", 
   "-reuse-port", "30000"
};

var path = "http://{host}:{port}/";

// set context
SDContext.SetDaemonCertificate("ssl:{host}:{port}", "{PEM encoded cert}");
SDContext.SetUserCertificateWithKey("userCertificate", "password");

// compose message
using(var message = new Message(/*size*/))
{
   message.Add(/*...*/);

   // open connection
   try
   {
      Environment.SetRVParameters(commandLineParameters);
      Environment.Open(path);
      
   }
   finally
   {
      Environment.Close();
   }
}
Reveive Message
var listener = Listener.New(dispatchableQueue, (closure, messages) => { /*...*/ }, transport, subject, closure);
// ...
listener.Destroy();
Queues
  • implement IDispatchable
Transports
  • represent delivery mechanism

Quellen