Hi, I need get the ISOMsgs from two channel adaptors. In a first moment I thought develop a new class which implemented Runnable interface to use <task> tag but, finally, I decided to define two QBeans. One of this is primary QBean and the other one is secondary QBean. The code of these classes is the same. The problem is in the start method. I show the next snippet:
public synchronized void start() {
super.start();
ISOMsg isoMsg = null;
Space sp = SpaceFactory.getSpace();
//while (sp.rd(this.channelAdaptorName + ".ready") != null) {
while(true){
isoMsg = (ISOMsg)
sp.in(this.channelAdaptor.getOutQueue());
If I use a call to the space sp int the QBeans, the primary QBean is ok, but the secondary QBean isn't able to execute this method. I don't get any error and warning. I don`t know which could be the reason of this behavior. I have solved this problem implementing the Runnable interface in the QBeans and I have put the code of start method in run method. Could anybody give me an explication of this?
Thanks in advance