<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>There is no such type as "available" thats why it
wont add it, the lack of a type means it is an availability packet.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Richard</FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=brown.adrian@btinternet.com
href="mailto:brown.adrian@btinternet.com">Adrian Brown</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jdev@jabber.org
href="mailto:jdev@jabber.org">jdev@jabber.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 03, 2002 2:30
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [JDEV] Jabber Client and
presence ( using JabberBeans)</DIV>
<DIV><BR></DIV>I'm trying to send a <presence> packet to another client
(in my effort to avoid rosters - which are pointless for my client), In
constructing<BR>the <presence> packet to send to a specified address,
I've tried adding the type = 'available' but when I look at the debug, this is
never sent or received. But the presence packet is:<BR><BR>REC: <presence
to="adrian2000@jabber.org" from="adrianxp@jabber.org/work"
id="p1"></presence><BR><BR>Anyone have any
ideas?<BR><BR><TT>pb.reset();<BR><BR>pb.setToAddress(
UserJIDKit.getRemoteJID() );<BR><BR>pb.setType( <?color><?param 8989,1313,1515>"available"<?/color> );// this doesnt get added
to the packet, can't work out why?<BR><BR>pb.setIdentifier( "p1" );<BR><BR><?color><?param 7676,0F0F,5050>try<?/color> {<BR><BR>cb.send(
pb.build() );<BR><BR>System.out.println(
<?color><?param 8989,1313,1515>"Subscribing" ); <?/color><BR><BR>}<BR><BR><?color><?param 7676,0F0F,5050>catch<?/color>(
InstantiationException e ) {<BR><BR>System.out.println( <?color><?param 8989,1313,1515>"Could not subscribe"
);<?/color><BR><BR>}<BR><BR>}<BR><BR>Thanks!</TT></BLOCKQUOTE></BODY></HTML>