[JDEV] Java Jabber Client

Lyndon Durham blackjacobin4 at yahoo.com
Tue Nov 7 18:09:18 CST 2000


Actualy my plan is to develop several java based
clients using Swing,Kvm,xml,midp and brazil. I am just
testing the protocols to see where things stand. My
projected clients are going to use Jabber as base for
extended funtionality not currently available in any
IM clients. But I will take a look at Jabberbeans-
maybe just a matter of grabbing a few libraries in
there for key Jabber features. Thanks.
--- Tim McCune <timm at channelpoint.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Any particular reason you're reinventing the wheel? 
> Jabberbeans
> already handles most of the protocol stuff, and
> Imjay is putting a
> client layer on top of that.  It might be better to
> use and/or
> contribute to one of these projects.
> http://jabberbeans.sourceforge.net/
> http://imjay.sourceforge.net/
> 
> - -----Original Message-----
> From: Lyndon Mark Durham
> [mailto:blackjacobin4 at yahoo.com]
> Sent: Tuesday, November 07, 2000 11:41 AM
> To: jabber developer
> Subject: [JDEV] Java Jabber Client
> 
> 
> Greetings fellow Developers,
>                                            I am
> attempting to write a
> Jabber client using Java and the Java Xml api from
> the Java Project
> X. I
> have been testing sending xml to the jabber.org
> server to get a feel
> for
> the Jabber architecture. Attached is simple socket
> based program that
> I
> have been using to send xml streams-nonetheless I
> cant get to
> register
> sucessfully? Are there any other test Jabber servers
> out there? Any
> more
> ideas- I have tried all the suggestions made so
> far-and I still get
> an
> <iq type='error' id ='KLMD_86'>.
> Is Jabber servers unable to create or register new
> accounts at
> present?
> Has or is anyone else developed or developing a Java
> Client? Thanks
> in
> advance for your assistance.
> 
> 
> import java.net.*;
> import java.io.*;
> 
> 
> class JabberSocket {
>     protected static Socket sk;
>     protected static PrintWriter outStream;
>     protected static BufferedReader readIn;
> 
>     public static void main(String args[]){
>         try{
>              sk = new Socket("jabber.org",5222);
>               outStream = new
> PrintWriter(sk.getOutputStream(),true);
>               outStream.println("<?xml
> version=\"1.0\"
> encoding=\"UTF-8\" ?>");
>               outStream.println("<stream:stream
> to=\"jabber.org\"
> xmlns=\"jabber:client\"
>
xmlns:stream=\"http://etherx.jabber.org/streams\">");
> 
>               outStream.println("<iq type=\"set\"
> id=\"KLMD_86\">");
>               outStream.println("<query
> xmlns=\"jabber:iq:auth\">");
>              
> outStream.println("<username>stpeter</username>");
>              
> outStream.println("<password>dogpound</password>");
> 
>              
> outStream.println("<resource>HomePc</resource>");
>               outStream.println("</query>");
>               outStream.println("</iq>");
> 
> 
> 
>              System.out.println("Here");
>               readIn = new BufferedReader(new
> InputStreamReader(sk.getInputStream()));
>              String data = new String();
>                 while((data = readIn.readLine())!=
> null)
>                         System.out.println(data);
>              readIn.close();
> 
>              outStream.close();
> 
>               System.out.println("Here");
> 
> 
>         }catch(IOException
> ioProb){ioProb.printStackTrace();}
> 
>     }
> 
> 
> 
> }
> 
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.3 for non-commercial use
> <http://www.pgp.com>
> 
>
iQA/AwUBOgiQ89UPOr8a7vy5EQKCHgCgizgQRUVSlMS8myyI7oxyH2amOtEAnRH+
> UFkqYWjJiarSn3q3rQ4Pznw+
> =Tqf+
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/




More information about the JDev mailing list