TIBCO Rendezvous how do i create a listener?
===

I'm trying to create a listener in tibco rendezvous. I want to listen in on a particular subject. I'm aware that its supposed to look something like this.

    TibrvListener(
    TibrvQueue queue,
    TibrvMsgCallback callback,
    TibrvTransport transport,
    java.lang.String subject,
    java.lang.Object closure)
    throws TibrvException

I have this code. However, i don't know a couple of things. How do i create a TibrvMsgCallback object? How do i pass in the transport? I have a publisher that sends the message as a seperate program. Do I recreate an identical transport in my subscribe program?


    queue = new TibrvQueue();
    dispatcher = new TibrvDispatcher(queue);
    queue.setName(key);
    this.listener = new TibrvListener(queue, null, null, subject, null);
    TibrvTransport message = this.listener.getTransport();


Thanks!