[JDEV] example transport

Mark Hahn mark.hahn at verizon.com
Tue Mar 27 07:43:06 CST 2001


>Hi...:
>  
>    example transport seems didn't work!!
>    I can't complete the register process.
>   It can accept the register information and save it to xml profile
>   But when i try to send some message to example transport
>   It tell me that i didn't complete register !!
>   do somebod meet this problem ??
>
>Best Regards
>Jau-Lung Huang


I have it installed and it works just fine. You need the version from 
CVS in order for it to work with 1.4 since a couple of functions 
changed signatures. The other thing you need to do is have 
appropriate entries in your jabber.xml config file.

I made an entry in the <jsm> section like:

<service type="example-transport" jid="example.host.domain" 
name=Example Transport>
<ns>jabber:iq:gateway</ns>
<ns>jabber:iq:register</ns>
</service>

and then I made an actual service entry like:

<service id="example-transport">
<host>  blah blah </host>
<load> blah blah </load>
</service>


And it all works for me. Whether this is the right way or the best 
way to get this to work...well I defer to the experts on this list 
who will steer you correctly.  This transport has helped me 
understand how to go about building my own transport which is well 
underway.  A good learning tool.

-mark
================================================
  Mark Hahn              |  Verizon Laboratories
  mark.hahn at verizon.com  |  40 Sylvan Road
                         |  Waltham, Ma. 02451
================================================




More information about the JDev mailing list