
| Key: |
HJMS-63
|
| Type: |
Improvement
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Colin Crist
|
| Reporter: |
Colin Crist
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
HermesJMS
Created: 10/Jan/08 05:07 AM
Updated: 10/Jan/08 05:45 AM
|
|
| Component/s: |
GUI
|
| Affects Version/s: |
1.12
|
| Fix Version/s: |
1.13
|
|
|
Hermes.createContext() is useful to give python and plugin users easier access to the JNDI context configured in Hermes.
|
|
Description
|
Hermes.createContext() is useful to give python and plugin users easier access to the JNDI context configured in Hermes. |
Show » |
|
|
The context is available from the Hermes bean:
>>> hermes = browser.getContext().lookup("JBM")
>>> ctx = hermes.createContext()
>>> ctx
javax.naming.InitialContext@d82990
>>> ctx.lookup("queue/A")
JBossQueue[A]
>>> ctx.close()
It is also available from the browser frame:
>>> ctx = browser.createContext("JBM")
>>> ctx.lookup("queue/A")
JBossQueue[A]
>>> ctx.close()