a bridge from an OPC-DA server to a JMS queue. The target is to read realtimes changes from an OPC server and decouple elaboration.
1.0: OPCProducer works perfectly. Now it connects to an OPC-DA server, listen to trigger changes and report the state of a group of items to a BlockingQueue. To use it:
private BlockingQueue<IOPCMessage> queue = new ArrayBlockingQueue<IOPCMessage>(QUEUE_LIMIT);
private OPCProducer producer;
producer = new OPCProducer(new MyOPCContext(), queue);
// listen to queue to get some OPCMessageGroup
Known bugs:
Initial Import.
OPCProducer: produce OPCMessage objects listening to OPC-DA server changes. Configuration in made of a context where are define groups and triggers. When a trigger change all group items are read and send to a blocking queue.
ConnectionInformationFactory: build a JIInterop ConnectionInformation starting from a context object
OPCMessageAdapter: adapt an JIInterop object to a simple serializable POJO. This class is tested
What comes next.
In the next releases will be