Benutzer:MovGP0/TIBCO Rendezvous

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


TIBCO Rendezvous

[Bearbeiten | Quelltext bearbeiten]
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