Please get it from jpos.org if you don't, it will answer many (if not
all) of your starting questions.
--
Mark
QMUX mux = (QMUX)NameRegistrar.get("mux.agent-mux");
Bu it throwing exception that no Name was registered.
org.jpos.util.NameRegistrar$NotFoundException: agent-mux
So, i understood that i need to configure it in mux.xml.
--
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 the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
> I have created mux.xml and placed it in deploy folder.
And do you see messages indicating that the mux.xml file has been picked
up and deployed?
> Here is my question. *How to map that mux.xml file to QMUX class.*
>
> Content of mux.xml
> <mux class="org.jpos.q2.iso.QMUX" logger="agent_log" name="agent-mux">
> <in>agent-receive</in>
> <out>agent-send</out>
> <unhandled>agent-unhandled</unhandled>
> </mux>
The mapping is done for you in indicating :-
<mux class="org.jpos.q2.iso.QMUX"
do you want to use a different class?
Please first make sure your deployment is being picked up and deployed.
--
Mark
Please first make sure your deployment is being picked up and deployed.
No, I could not see any messages that picks up mux.xml and deployed..
I have created manually and placed under deploy\\AGENT folder.
>>> Here is my question. *How to map that mux.xml file to QMUX class.*
>>>
>>> Content of mux.xml
>>> <mux class="org.jpos.q2.iso.QMUX" logger="agent_log" name="agent-mux">
>>> <in>agent-receive</in>
>>> <out>agent-send</out>
>>> <unhandled>agent-unhandled</unhandled>
>>> </mux>
>>
>> The mapping is done for you in indicating :-
>>
>> <mux class="org.jpos.q2.iso.QMUX"
>>
>> do you want to use a different class?
>>
> Any other class which can send ISOMsg and should be configured with
> ResponseListener if its not possible with QMUX class.
>
I think it's time for you to explain what you are trying to do, me
trying to guess and simply answering your questions doesn't seem to have
worked so far.
Please ask a smart question :-
http://www.catb.org/~esr/faqs/smart-questions.html#translations
and I hope we can move forward from there.
--
Mark
Mark
> For this i have created ISOMsg object with keys. Here is the method i have
> written to send message.
>
> public void sendMessage(){
>
> QMUX mux = new QMUX();
This mux has no config, and is not running (it needs a Thread) - check
the jpos programmers guide (again please?) you have?
>
> ISOMsg m0100 = new ISOMsg();
> m0100.setMTI("0800");
> m0100.set(11, "000000");
> m0100.set(41, "00000001");
> m0100.set(39, "00");
>
> mux.request(m0100, 1000, (ISOResponseListener) new
> ResponseListener(), null);
> }
>
What channel setup are you using to connect to your host server? Have
you picked and configured a Packager? Are you using jpos-ee?
>
> Here is the reason why i have selected QMUX class, I need to do some actions
> when response is received. I can make use of ISOResponseListener with QMUX
> method --> request(m0100, 1000, (ISOResponseListener) new
> ResponseListener(), null);
>
I don;t think you needs a ISOResponseListener to do any actions with the
response, since the call to mux.request() will return the response (or
null in case of timeout).
Perhaps you have got a little confused, read the guide again, search
this mailing list and the wider internet to get going.
--
Mark
--
--
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
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/d3fc0d79-979a-4eed-bba8-57a19821be68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/322f0eb0-45ba-4fc9-a09d-ef2673f27a0f%40googlegroups.com.
You need the files to get deployed before your client can access items in the name registrar.
I suggest writing a qbean with its deploy file that does your mux request (as a test)
This deploy file should have a prefix number greater than that of your channel and mux.
Or you can poll your name registrar till the mux is found.
Use the name registrars static method to dump it's contents to get an idea of what's available for use.
You should also start the server with a deploy file and let jpos pick these up in order and run the beans that will start a server and listen on a port.
Basically do not have a standalone class that runs using its main for your servers and clients.
-chhil
--
--
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
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/9351a08b-c946-4eef-b3a7-1187bb819f26%40googlegroups.com.