Hello everyone,
I am trying to push some xml messages to TIBCO queue (or topic) using a Jython console and processes described in:
http://www.hermesjms.com/confluence/dis ... Properties, that's in my case:
....
hermes = browser.getContext().lookup("Hermes_Session")
context = hermes.createContext()
topic = context.lookup('"MY.SAMPLE.TOPIC") /*this is line 8*/
context.close()
...
But I still got following error even when I tried to push messages /just for a test/ to a EMS queue (f.i. queue = context.lookup('"MY.SAMPLE.QUEUE")), or when I changed the critical row to topic = context.lookup('"TOPIC/MY.SAMPLE.TOPIC").
My error looks like this:
Traceback (innermost last): File "D:\.hermes\reproces.sh", line 8, in ? AttributeError: 'NoneType' object has no attribute 'lookup'
I also tried:
...
hermes = HermesBrowser.getBrowser().getContext()
context = hermes.lookup("Hermes_Session")
topic = context.lookup('"MY.SAMPLE.TOPIC") /*let's say, now this is line 9*/
...
Then I got this error:
Traceback (innermost last): File "D:\.hermes\reproces_topic.sh", line 9, in ? AttributeError: lookup
But when I tried send som text message (without properties) through Hermes: Messages/Send Text Messages, or tried an example in http://www.hermesjms.com/confluence/dis ... t+Messages - it all worked.
So it seems like I just cannot make a connection to proper TIBCO queue or topic through Jython.
Please, can you explain me what am I doing wrong (I'm quite new to this)?
Thanks a lot in advance!
Martin
