Posted By:
Derelict_pt
Posted On:
Monday, November 21, 2005 04:44 PM
Greetings, I hope I'm posting on the right section :) I'm new to ORBacus with Java and I'm having a problem when trying to use the Event Service. I have this pull client: (...) Any event=null; EventChannel eventChannel=null; ConsumerAdmin consumerAdmin=null; ProxyPullSupplier pullSupplier=null; try{ eventChannel = EventChannelHelper.narrow(obj); consumerAdmin = eventChannel.for_consumers(); pullSupplier = consumerAdmin.obtain_pull_supplier(); // I need to do this to bind proxy to the Event Stream, correct? // The problem is on the parameter it takes, a PullConsumer pullSupplier.connect_pull_consumer( new MOTDPullCo
More>>
Greetings,
I hope I'm posting on the right section :)
I'm new to ORBacus with Java and I'm having a problem when trying to use the Event Service.
I have this pull client:
(...)
Any event=null;
EventChannel eventChannel=null;
ConsumerAdmin consumerAdmin=null;
ProxyPullSupplier pullSupplier=null;
try{
eventChannel = EventChannelHelper.narrow(obj);
consumerAdmin = eventChannel.for_consumers();
pullSupplier = consumerAdmin.obtain_pull_supplier();
// I need to do this to bind proxy to the Event Stream, correct?
// The problem is on the parameter it takes, a PullConsumer
pullSupplier.connect_pull_consumer( new MOTDPullConsumer() );
event = pullSupplier.pull();
}(...)
So i'm actually having problems implementing the PullConsumer interface:
import org.omg.CORBA.*;
import org.omg.CosEventChannelAdmin.*;
import org.omg.CosEventComm.*
public class MOTDPullConsumer implements PullConsumer{
public void disconnect_pull_consumer(){
System.out.println("Pull consumer off!");
}
}
This causes a compilation error which I can't determine why, the interface only specifies the method implemented above:
MOTDPullConsumer is not abstract and does not override abstract method_create_request(org.omg.CORBA.Context,java.lang.String,
org.omg.CORBA.NVList,org.omg.CORBA.NamedValue,
org.omg.CORBA.ExceptionList,org.omg.CORBA.ContextList)
in org.omg.CORBA.Object
Anyone seen this happen before?
<<Less