QMUX

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

QMUX

hakeem
hi everyone..

Please help me using q2 configuration, i need to
understand the configuration.

i try a simple simulator almost like client and server
simulator modules,

why i always have my response null value when i call

ISOMsg isomsg = mux.request(isomsg, timeout);

logger show like this :
the channel can receive a response message, but why i
get ISOMsg from mux.request() is null even i set
timeout with bigger value??

<log realm="channel/localhost/127.0.0.1:9999" at="Mon
Jul 25 20:16:17 GMT+07:00 2005.515">
  <send>
    <isomsg direction="outgoing">
      <field id="0" value="200"/>
        ...
      <field id="100" value="">
    </isomsg>
  </send>
</log>
<log realm="channel/localhost/127.0.0.1:9999" at="Mon
Jul 25 20:16:17 GMT+07:00 2005.546">
  <receive>
    <isomsg direction="incoming">
      <field id="0" value="0210"/>
         ....
      <field id="100" value="">
    </isomsg>
  </receive>
</log>


               
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs 
 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply | Threaded
Open this post in threaded view
|

Re: QMUX

Alejandro Revilla
QMUX expects fields 41 and 11 to be present on both your request
and your response. If those are not present, you need to extend
QMUX and provide your own getKey implementation.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply | Threaded
Open this post in threaded view
|

RE: QMUX

martin.cabrera
Alejandro;
 
Instead of overriding de getKey() method...what do you think about defining
an interface named ISOMsgKeyGenerator like this?
 
public interface ISOMsgKeyGenerator {
    Object generateKey(ISOMsg msg);
}
 
By default if you don't specify a ISOMsgKeyGenerator the QMUX can assume the
actual implementation...in the new case the QMUX can now have the chance to
delegate to the specified generator.
 
Regards.
Martín.


   _____  

De: [hidden email] [mailto:[hidden email]] En nombre de
Alejandro Revilla
Enviado el: Lunes, 25 de Julio de 2005 02:05 p.m.
Para: [hidden email]
Asunto: Re: [jpos-dev] QMUX


QMUX expects fields 41 and 11 to be present on both your request
and your response. If those are not present, you need to extend
QMUX and provide your own getKey implementation.





SPONSORED LINKS
HYPERLINK
"http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Programming+la
nguages&w2=Computer+security&w3=C+programming+language&w4=Computer+programmi
ng+languages&w5=Computer+training&c=5&s=137&.sig=Z4Ay-DEwtPucQO2jS_QhOQ"Prog
ramming languages HYPERLINK
"http://groups.yahoo.com/gads?t=ms&k=Computer+security&w1=Programming+langua
ges&w2=Computer+security&w3=C+programming+language&w4=Computer+programming+l
anguages&w5=Computer+training&c=5&s=137&.sig=z6q_aAWUuuXTIgKIk9hZyw"Computer
security HYPERLINK
"http://groups.yahoo.com/gads?t=ms&k=C+programming+language&w1=Programming+l
anguages&w2=Computer+security&w3=C+programming+language&w4=Computer+programm
ing+languages&w5=Computer+training&c=5&s=137&.sig=75eBOAPL8-TyzvQjgLlb2Q"C
programming language
HYPERLINK
"http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=Progr
amming+languages&w2=Computer+security&w3=C+programming+language&w4=Computer+
programming+languages&w5=Computer+training&c=5&s=137&.sig=0uHfuTpRXnVrPiAaIh
b9pA"Computer programming languages HYPERLINK
"http://groups.yahoo.com/gads?t=ms&k=Computer+training&w1=Programming+langua
ges&w2=Computer+security&w3=C+programming+language&w4=Computer+programming+l
anguages&w5=Computer+training&c=5&s=137&.sig=Ag6CYuXpk39dZGSYBkQaXw"Computer
training

   _____  

YAHOO! GROUPS LINKS


       
* Visit your group "HYPERLINK
"http://groups.yahoo.com/group/jpos-dev"jpos-dev" on the web.
 

* To unsubscribe from this group, send an email to:
 HYPERLINK
"mailto:[hidden email]?subject=Unsubscribe"jpos-dev-un
[hidden email]
 

* Your use of Yahoo! Groups is subject to the HYPERLINK
"http://docs.yahoo.com/info/terms/"Yahoo! Terms of Service.


   _____  



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 267.9.4 - Release Date: 22/07/2005



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 267.9.4 - Release Date: 22/07/2005
 


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply | Threaded
Open this post in threaded view
|

Re: QMUX

Alejandro Revilla

>  
> Instead of overriding de getKey() method...what do you think about defining
> an interface named ISOMsgKeyGenerator like this?
>  
> public interface ISOMsgKeyGenerator {
>     Object generateKey(ISOMsg msg);
> }
>  
Having a pluggable approach like the one you describe is nice, thing is
we already have quite a lot of production code out there that we need to
support, already extending QMUX.getKey.

Extending QMUX is not a big deal, you can even do it in an anonymous
class, and the q2 adaptor let you specify a class other than the default
QMUX, so there's not too much to win using one approach over the other
one.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply | Threaded
Open this post in threaded view
|

Re: QMUX

hakeem
In reply to this post by Alejandro Revilla


--- Alejandro Revilla <[hidden email]> wrote:

> QMUX expects fields 41 and 11 to be present on both
> your request
> and your response. If those are not present, you
> need to extend
> QMUX and provide your own getKey implementation.

Thanks for your response Alejandro...

can you help me again.. icant figure out how to
configure  logger-listener to RotateListener in Q2??
and how to make all configuration into just one xml
file??

i already sent this question to jpos-dev groups, but
no response yet..

Best Regards


Lukmanul Hakim

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply | Threaded
Open this post in threaded view
|

Re: QMUX

Alejandro Revilla
>
> can you help me again.. icant figure out how to
> configure  logger-listener to RotateListener in Q2??

>

<?xml version="1.0" encoding="UTF-8"?>
<logger name="Q2" class="org.jpos.q2.qbean.LoggerAdaptor">
  <log-listener class="org.jpos.util.SimpleLogListener" />

  <log-listener class="org.jpos.util.RotateLogListener">
    <property name="file" value="log/q2.log" />
    <property name="window" value="86400" />
    <property name="copies" value="90" />
    <property name="maxsize" value="100000000" />
  </log-listener>
</logger>

>
> and how to make all configuration into just one xml
> file??
>
Create a file with any root element and all your configuration
files inside it, i.e:

<myroot>
  <logger ...>
 
  </logger>
  ...
  ...
  <mux ...>

  </mux>
  ...
  ...
</myroot>

Then run Q2 with its --config switch.

See bin/q2 --help



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/