QMUX.getMUX("<your mux name>")
The mux name is the name you provided in the mux deploy file.
You can see how the QMUX.get uses the NameRegistrar in the background here https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/q2/iso/QMUX.java#L121-L125
(MUX) NameRegistrar.get ("mux."+name)
jpos add the "mux." prefix to the mux name while registering.
If its a custom Qbean then your bean should register the instance in the static Nameregistrar object (name, this) at initService. Then you can access the NameRegistrar from anywhere and use it. Remember to unregister it at destroyService time so that no one can use it.
You would do something similar to
NameRegistrar.register ("mux."+getName (), this);
https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/q2/iso/QMUX.java#L94
You can read the section on NameRegistrar in the programmer's guide http://jpos.org/doc/proguide-draft.pdf
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/Es0GbveGFTw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/975d3e52-86fd-4071-b821-ddd849176345n%40googlegroups.com.