You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(30) |
Aug
(16) |
Sep
(20) |
Oct
(31) |
Nov
(3) |
Dec
(30) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(9) |
Feb
(49) |
Mar
(41) |
Apr
(31) |
May
(28) |
Jun
(22) |
Jul
(15) |
Aug
(10) |
Sep
|
Oct
(8) |
Nov
(9) |
Dec
(12) |
2002 |
Jan
(1) |
Feb
|
Mar
(6) |
Apr
(17) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Shawn W. <sh...@bl...> - 2002-08-19 16:53:46
|
Yes, you can use the parser to parse regular files. This mailing list has been discontinued though. Please add yourself to the jb list on jabberstudio.org -----Original Message----- From: Jiri Komzak [mailto:J.K...@op...] Sent: Monday, August 19, 2002 7:12 AM To: shawn; jd...@ja... Subject: Re: [JBDevel] adding handlers for other namespaces/extensions Great, thanks! It really nicely works with my own handlers. I have another question now :o) Is it possible (I mean, easily possible) to make the parser used in jabberbeans to parse a file or another source then just open jabber connection? Again thanks for any help, Jiri Shawn Wilton wrote: > You can get the latest update of jb from > http://shaolo.com/downloads/Jabberbeans.tar.gz for now. I'll fix CVS > here in a few days and then you will be able to get the code from the > sf.net site. Though I might move it to jabberstudio instead. > > Yes, you need to add it to the Handlers.properties file and no you don't > need a full recompile. > > Yes, you do need a builder, a handler and an object. > > > -----Original Message----- > From: Jiri Komzak [mailto:J.K...@op...] > Sent: Friday, August 09, 2002 8:46 AM > To: sh...@bl... > Subject: adding own extensions handlers > > > Hi, > > I'm working on a research project using jabber for communication in > scientific collaboration. We also plan to add some extra functionality > using our own namespaces. > > I'd like to ask, how can I add my own extension handlers? Do > I need to add them into the Handlers.properties file and compile whole > jabberbeans? > > What is the current status of the jabberbeans - seems to be quite long > time since the last change. > > Thanx for any info, Jiri > |
From: Shawn W. <sh...@bl...> - 2002-08-09 19:53:29
|
The most recent version of Jabberbeans is located at http://shaolo.com/downloads/Jabberbeans.tar.gz for now as the CVS on sf.net is a bit bulloxed. I think I might actually move the project to jabber studio as well. Give me until Monday to do this. Please. Shawn Wilton Black9 Systems and Networks http://black9.net JID/Email: Shawn@Black9.Net |
From: Jason A. <ja...@gu...> - 2002-08-09 15:57:01
|
Hi Jiri, Yes, you understand it well, and those three classes are the right ones. Yes, you must add the namespace to Handlers.properties. iq:browse is already implemented, but you have to checkout the code from cvs. Read the instructions on the cvs page, and checkout the project (module) called 'jabberbeans'. I have some experience writing handlers, I might be able to help if you have more questions. For the best help, post messages to this list or to jd...@ja... (see www.jabber.org/lists to subscribe). jason :-) Jiri Komzak wrote: > Hi all, > > I'm about to handle extensions using non-implemented namespaces > (jabber:iq:browse or other even my own namespaces) in my client. > > Has somebody got any experience? > > Do I understand well, that I need to implement these 3 classes? > > MyExtension > MyExtensionBuilder > MyExtensionHandler > > The first two are pretty straightforward, but the last one... Should I > register the new namespace and its handler in the property file > Properties/Handlers.properties ? Or is there some other more dynamic way? > > Thanx for any help, Jiri > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jabberbeans-devel mailing list > Jab...@li... > https://lists.sourceforge.net/lists/listinfo/jabberbeans-devel > > . > |
From: Jiri K. <J.K...@op...> - 2002-08-09 10:29:46
|
Hi all, I'm about to handle extensions using non-implemented namespaces (jabber:iq:browse or other even my own namespaces) in my client. Has somebody got any experience? Do I understand well, that I need to implement these 3 classes? MyExtension MyExtensionBuilder MyExtensionHandler The first two are pretty straightforward, but the last one... Should I register the new namespace and its handler in the property file Properties/Handlers.properties ? Or is there some other more dynamic way? Thanx for any help, Jiri |
From: Emma W. <emm...@nt...> - 2002-07-21 15:21:46
|
Hi - can anyone help me out here? 1. How can I retrieve the properties of the user that I have just logged = in as??? I have used the set methods to set the username, password and resource = but once the authorisation is complete, what methods can I use to let my = client find out the <name/> property of the user that just logged in??? 2. All the users of my client will have to log in with a resource e.g. = work or home. How can I let users send messages to other users without = this resource specified? I have tried just sending messages to (for = example) emmawillis@localhost but the emmawillis client doesn't pick it = up on the packetlistener. I could do with some advice on this. Finally, as an aside, can anyone tell me why it is that if I my client = causes an error (like the one described in number 2), the server will = not let the client send anymore messages until it is shut down and = restarted again, and it also corrupts the user's XML file so that only = the <last> tag remains??? Its not particularly a problem but it keeps = taking me by surprise. Hope someone can give me some tips. Yours, Emma |
From: <emm...@nt...> - 2002-07-15 14:51:08
|
Please can someone tell me what my classpath and path environment variables should point to to get jabberbeans importing properly? Thanks, yours Emma |
From: Jiri K. <J.K...@op...> - 2002-06-27 12:28:49
|
Sorry, solved that. I made a stupid error there... :o) > Hi, > > I'm quite new in jabberBeans and I'm actually trying to write me first > client. > > I wanted to use a PacketListener registered in a connectionBean for > debug info display and another PacketListener registered in a iqBean for > iq handling. But I keep getting the NullPointerException when I send any > packet. > > Do I use the classes in correct way? > > Thanx, Jiri |
From: Jiri K. <J.K...@op...> - 2002-06-27 11:09:16
|
Hi, I'm quite new in jabberBeans and I'm actually trying to write me first client. I wanted to use a PacketListener registered in a connectionBean for debug info display and another PacketListener registered in a iqBean for iq handling. But I keep getting the NullPointerException when I send any packet. Do I use the classes in correct way? Thanx, Jiri |
From: David S. <dav...@ag...> - 2002-05-03 18:46:54
|
Hello. I've got two programs communicating through a Jabber server with XmlRpc. Each one sends his messages by the mean of a ConnectionBean object. Sometimes, the sender of a message remains blocked, waiting for the answer. I have used an Ip sniffer, and it revealed that the message didn't pass on the network. It seems that the connectionBean holds it. When i connect other programs of the same type, i can free the blocked message sometimes, as if new messages were kicking the old one off. But it's not deterministic. Here is an excerpt of the code which is used to send the message. The JabberXmlRpc object implements QueryExtension, and JabberXmlRpcBuilder implements ExtensionBuilder. When blocking occurs, sendAndWait is the last log we observe. -- protected Object sendMessage (JID to, String method, Vector params) throws Exception { MessageBuilder mb = new MessageBuilder(); //set destination user. mb.setToAddress( to); mb.setFromAddress( _jid); mb.setType("xmlrpc"); Worker worker = new Worker(); String xml = worker.generate( method, params); JabberXmlRpcBuilder jxrb = new JabberXmlRpcBuilder(); jxrb.setContent( xml); mb.addExtension(jxrb.build()); Message msg = (Message) mb.build(); _syncPacketListener.reset(); System.out.println("EWorkClientStub.sendMessage(): sendAndWait"); //Packet r = _syncPacketListener.sendAndWait( msg, 50000); Packet r = _syncPacketListener.sendAndWait( msg); if (r == null) { System.out.println("EWorkClientStub.sendMessage(): r null"); return null; } else System.out.println("EWorkClientStub.sendMessage(): response received"); return buildResponse( (Message)r); } -- Thanks for any help, David. -- dav...@ag... - Atlantide - http://www.ago.fr/ Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex - France Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34 e-mail: atl...@ag... Centre Affaires Oberthur - 74D, rue de Paris - 35700 Rennes - France Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85 e-mail: atl...@ag... |
From: Schweizer L. <lau...@ei...> - 2002-05-01 06:36:54
|
Hello, I use the jtest.java in jabberbeans-tests. When I try to make a connection with the server i have this error. Schweizer Laurent E:\jabber\src\JabberBeans\src\jabberbeans-tests\simple-case>java jtest = 10.192.72.61 coucou hello Exception in thread "main" java.lang.RuntimeException: cannot change = immutable object at = org.jabberbeans.XMLStreamHeader.reset(XMLStreamHeader.java:130) at = org.jabberbeans.XMLStreamHeader.<init>(XMLStreamHeader.java:124) at = org.jabberbeans.ConnectionBean.connect(ConnectionBean.java:263) at = org.jabberbeans.ConnectionBean.connect(ConnectionBean.java:209) at jtest.main(jtest.java:23) java.lang.RuntimeException: = InputStreamHandler:java.lang.ClassNotFoundException: = com.microstar.xml.SAXDriver at = org.jabberbeans.InputStreamHandler.run(InputStreamHandler.java:116) |
From: <co...@th...> - 2002-04-26 23:25:18
|
Hello, I'm trying to understand the correct way to use the launcher to write a server component. In the Launcher class, the component parameters such as host,port,secret, etc... are all package private so it seems that the only way I can configure them is either through a) editing and recompiling the Launcher source, or b) placing a class to configure them directly in the jabberbeans.serverside package itself. Neither of these two options seems optimal, so surely I'm missing something. What is the way that this class is generally used? cheers, Charles |
From: Thai D. V. <thaid@Cybersoft-VN.com> - 2002-04-25 03:08:13
|
Hello, I'm studying Computer Science master course and I'm looking for an algorithm about finding the shortest path in a graph. This path must passes every point in the graph and never passes a point twice. It sounds like Dijikstra algorithm, but Dijikstra path doesn't pass all points. Do you have the name of that algorithm so that I can search for it on Internet? Thanks so much and sorry for an off topic letter. Regards. |
From: Mike W. <the...@ya...> - 2002-04-22 17:22:04
|
I guess my real question is how to set up the JID. I've been able to send messages from Jabber client to Jabber client through our server by constructing a JID using our jabber server. How I'm not sure how to do is construct the JID when registering a specific (ICQ) gateway and also sending the message to that user. --- Shawn Wilton <Sh...@bl...> wrote: > Just send it to the user. Whatever their jid is. > That however depends a > great deal on the server you're running and how > you're running it. > > > ----- Original Message ----- > From: "Mike Wallace" <the...@ya...> > To: <jab...@li...> > Sent: Monday, April 22, 2002 5:51 AM > Subject: [JBDevel] Problems sending message through > ICQ Gateway > > > > I'm attempting to send a message to an ICQ > recipient > > through the ICQ Gateway on our Jabber server. I'm > not > > sure what the server name should be when I'm > sending > > the message though: > > > > MessageBuilder mb = new MessageBuilder(); > > mb.setToAddress(new JID("12345678", server, > > null)); > > mb.setBody(message); > > > > try { > > Message msg=(Message)mb.build(); > > cb.send(msg); > > } > > Should the server variable be an ICQ server, or > should > > it point to our own jabber server? Any ideas? > > Thanks, > > Mike > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Games - play chess, backgammon, pool and > more > > http://games.yahoo.com/ > > > > _______________________________________________ > > Jabberbeans-devel mailing list > > Jab...@li... > > > https://lists.sourceforge.net/lists/listinfo/jabberbeans-devel > > > __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ |
From: Mike W. <the...@ya...> - 2002-04-22 12:51:45
|
I'm attempting to send a message to an ICQ recipient through the ICQ Gateway on our Jabber server. I'm not sure what the server name should be when I'm sending the message though: MessageBuilder mb = new MessageBuilder(); mb.setToAddress(new JID("12345678", server, null)); mb.setBody(message); try { Message msg=(Message)mb.build(); cb.send(msg); } Should the server variable be an ICQ server, or should it point to our own jabber server? Any ideas? Thanks, Mike __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ |
From: Gerardo A. <ge...@fl...> - 2002-04-19 17:48:43
|
Hi, I've two questions: A. The Probe Type I'm using the PresenceBuilder class to send a "probe" to some users in order to know if they're online or not. According the results, everything work smoothly when the "target" is: online, away, dnd and so on. I always get a: "org.jabber.jabberbeans.Presence" packet. But, if the user is in fact "offline", I never get a response or an org.jabber.jabberbeans.Presence packet, nothing at all. Is that the correct behavior of the probe type? Which is the proper way to know if somebody is going offline? B. XMLStreamError Every time that my small jabber-like program is going online, I get the next sequence of packets: ReceivedPacket:org.jabber.jabberbeans.InfoQuery Content:<iq id="soporteCR" type="result"></iq> ReceivedPacket:org.jabber.jabberbeans.XMLStreamError Content:<stream:error>Error from master</stream:error> Why is that happening?? I know that I ask that before, but this packet is send since a buddy add my "system account" to their buddy list and I never get a "subscribe" packet or something like that in order to send an authorization. However, I am able to send and receive messages. Any clue?? Thanks in advance, Gerardo PS. I'm using the last version of JabberBeans available at shaolo.com |
From: Joe S. <jo...@co...> - 2002-04-17 21:28:15
|
Hello, I'm working with my jabber application and upon testing different error scenarios I came accross something interesting. If I unplug my network cable and wait for a connectionBean IO_ERROR event, then plug the network cable back in, the program will recognize this and reconnect with the server just fine. I wrote code to do that it doesn't happen automagically mind you but it works. Heres the tricky part, if I unplug the cable then plug it back in before the IO_ERROR event is thrown, the system will try to re-establish a connection, as it is suppose to do, but it fails. I get the following error message from the exception: Session ID NULL. Any idea what would cause this to happen and how to fix the issue? If you need more details then please let me know and I will try to add more information Thanks, Joe |
From: Ketil A. E. <Ket...@id...> - 2002-04-15 10:47:29
|
Need some additional functionality in my program using Jabberbeans. I want to use some additional iq namespaces. How do I add these? Want them to function almost like the roster already implemented. So the thing is that I want to get the parser to parse according to a new namespace that add. I guess this means that I have to add new classes to jabberbeans that can handle this new packet? Just like the roster builder classes.... Can anyone give me some hints according this. Adding new iq:x:.... to jabberbeans.... and making the xml-parser(aelfred) parse it right. -Ketil Eriksen |
From: <ke...@id...> - 2002-04-08 03:28:45
|
I am hoping that someone can help me out making InfoQuery, presence and = Message objects from a packet. I get the pe.getPacket on the listeners I = have set up. All these listeners works nice..... But I cant build the = objects from these packets.... Wondering how... This is the first part = of my InfoQuery listener: class ClientIQListener implements PacketListener { public void receivedPacket(PacketEvent pe) { [What do I put here to get the pe.getPacket() over to a = InfoQuery?] } } Got the same prob on the other objects... I make new objects to send = without problems.... But assembling incoming packets dont work as = good..... Tried getting the extensions and putting it back together to a = IQ packet... but it didnt work.... Can someone please help me on this!? Would appreciate all help. Another thing is how to add more namespaces... Going to add a couple of = namespaces.... I guess these must be added to the SAX parser, but = how....=20 -Ketil Eriksen |
From: Sergio F. <est...@pt...> - 2002-04-04 18:02:02
|
So, where should you look for jabberbeans ? In the www.jabberbeans.org there is an old version... Souldn't the sourceforge and homepage be updated with the latest versions available ? Finaly, a doubt: is there a way of creating a new user ? I have tried the IQRegister class but it doesn't support the setusername,setPassword like those that are available in IQAuth... Any clues ? Sergio Freire zariok wrote: >Shawn- > >Does this mean you'll start releasing updated versions on >jabberbeans.sf.net as you are the maintainer or are these updates going >tobe on shaolo.com? > >From the view of someone just looking, jabberbeans looks dormant as the >last release was April 2001. > >John 'zariok' Draughn > >============ > >>For the use of a bean, you can download the latest version of >>jabberbeans >>from http://shaolo.com/downloads/Jabberbeans.tar.gz That's actually >>the >>latest version available. However, some of the javadoc is sparse or >> > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Tax Center - online filing with TurboTax >http://taxes.yahoo.com/ > >_______________________________________________ >Jabberbeans-devel mailing list >Jab...@li... >https://lists.sourceforge.net/lists/listinfo/jabberbeans-devel > |
From: Shawn W. <sh...@bl...> - 2002-04-04 17:41:19
|
Yes, I will eventually release this on the sf.net site. It's just that the cvs got bulloxed a bit (my fault), and I'm going to have to create a new branch for the new stuff. I haven't done that yet because I need to make some formatting changes to the code and make mention of those in the coding standard before I upload. I just haven't had time to do that yet either since I've been working on some other small projects like http://black9.com and http://black9.net . So yes, it will all eventually be on sf.net, but until then, feel free to nab that stuff off of shaolo.com. As I said, it has a presence bean, groupchat support (including a bean that needs to be tweaked) and some other useful stuff like browse. -----Original Message----- From: jab...@li... [mailto:jab...@li...]On Behalf Of zariok Sent: Wednesday, April 03, 2002 3:27 PM To: jab...@li... Subject: Re: [JBDevel] Presence Shawn- Does this mean you'll start releasing updated versions on jabberbeans.sf.net as you are the maintainer or are these updates going tobe on shaolo.com? From the view of someone just looking, jabberbeans looks dormant as the last release was April 2001. John 'zariok' Draughn ============ > For the use of a bean, you can download the latest version of > jabberbeans > from http://shaolo.com/downloads/Jabberbeans.tar.gz That's actually > the > latest version available. However, some of the javadoc is sparse or __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ _______________________________________________ Jabberbeans-devel mailing list Jab...@li... https://lists.sourceforge.net/lists/listinfo/jabberbeans-devel |
From: zariok <za...@ya...> - 2002-04-04 11:48:05
|
Shawn- Does this mean you'll start releasing updated versions on jabberbeans.sf.net as you are the maintainer or are these updates going tobe on shaolo.com? From the view of someone just looking, jabberbeans looks dormant as the last release was April 2001. John 'zariok' Draughn ============ > For the use of a bean, you can download the latest version of > jabberbeans > from http://shaolo.com/downloads/Jabberbeans.tar.gz That's actually > the > latest version available. However, some of the javadoc is sparse or __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ |
From: Joe S. <jo...@co...> - 2002-04-03 21:16:38
|
Shawn, Never mind. It's been a long day and I have a headache. I found that package at SUN and everything compiled okay. I'm testing the library now to see if my hanging problem goes away. Joe Joe Sulewski wrote: > Shawn, > > Thank you for your quick response. I changed my code accordingly. I grabbed your > jabberbeans file and uncompressed it. I tried to compile it but I don't have the > javax.net.ssl package. We are a java 1.3 shop, we have not made the transition > to 1.4. Any ideas? > > Joe > > Shawn Wilton wrote: > > > Hey Joe, > > try out the following code and all should be fine. Mostly. > > > > First off, you need to read the jabber docs on how presence works. These > > are located on jabber.org, so I won't reiterate here. I will mention > > however that the system works based on subscribtions, etc. So, if you wish > > to see if someone is online, then you need to send them a subscribe request, > > they'll approve it (by sending a subscribed), and you will get their > > presence from now on. Pretty basic. In order to get your little agent > > online, you can try the following for establishing first time presence: > > > > PresenceBuilder presenceBuilder = new PresenceBuilder(); > > //There's no such thing as an online state, > > //check the j.org docs for this. a default of > > //null is used for available status. > > //presenceBuilder.setStateShow("online"); > > //presenceBuilder.setType("available"); > > presenceBuilder.setStatus("show"); > > //Use any priority you like, the higher the number, the higher the > > priority > > presenceBuilder.setPriority(1); > > //Presence presence=new Presence(presenceBuilder); > > System.out.println("Setting presence for " + presence); > > connectionBean.send(presenceBuilder.build()); > > > > Now after you send that, you will recieve all messages, etc. Do note, that > > you don't resend a presence packet unless you're changing state or status. > > Doing so will just tick people off. > > > > For the use of a bean, you can download the latest version of jabberbeans > > from http://shaolo.com/downloads/Jabberbeans.tar.gz That's actually the > > latest version available. However, some of the javadoc is sparse or not > > present, so you may need to dive in to the code to learn of some of the new > > stuff. Someday I'll recommit it all back to cvs, but until then, you can > > just download it from there. > > > > That tarball has support for pass, browse, presence bean, groupchat > > features, etc. > > > > -----Original Message----- > > From: jab...@li... > > [mailto:jab...@li...]On Behalf Of Joe > > Sulewski > > Sent: Wednesday, April 03, 2002 8:26 AM > > To: jab...@li... > > Subject: [JBDevel] Presence > > > > Hello, > > > > I have a question about how to maintain presence. I am writing a jabber > > application that has no user interface. How do I maintain presence? > > Right now I send a presence packet once a minute. If I monitor the user > > with JabberIM, everytime a presence packet is sent I get the following > > in the IM window: > > > > This user has changed their status back to "online / normal". show > > > > I don't want this to change. The presence packets that are being sent > > look like the following: > > > > Setting presence for <presence > > id="6"><status>show</status><show>online</show></presence> > > Setting presence for <presence > > id="7"><status>show</status><show>online</show></presence> > > Setting presence for <presence > > id="8"><status>show</status><show>online</show></presence> > > Setting presence for <presence > > id="9"><status>show</status><show>online</show></presence> > > Setting presence for <presence > > id="10"><status>show</status><show>online</show></presence> > > Setting presence for <presence > > id="11"><status>show</status><show>online</show></presence> > > Setting presence for <presence > > id="12"><status>show</status><show>online</show></presence> > > > > If this sounds like a confusing question perhaps it's because I'm > > confused about how presence works. Here is what I'm trying to achieve. > > I'm writing an application that will act as a Jabber User. I the > > application to maintain presence so people can send messages to the > > application and know whether the application is up or down. If the > > application is up, then the lightbulb appears in the Human users IM > > window. If the app goes down, then the lightbulb goes off. It's pretty > > neat how it works, but I don't want the output stated above to be > > displayed. > > > > Any help will be appreciated. > > > > Thanks, > > Joe > > > > Below is the code I use to set presence. > > > > PresenceBuilder presenceBuilder=new PresenceBuilder(); > > if (id==null){ > > JabberCommunication.id=presenceBuilder.getIdentifier(); > > } > > presenceBuilder.setIdentifier(id); > > presenceBuilder.setStateShow("online"); > > presenceBuilder.setType("available"); > > presenceBuilder.setStatus("show"); > > Presence presence=new Presence(presenceBuilder); > > System.out.println("Setting presence for "+presence); > > connectionBean.send(presence); |
From: Joe S. <jo...@co...> - 2002-04-03 20:39:33
|
Shawn, Thank you for your quick response. I changed my code accordingly. I grabbed your jabberbeans file and uncompressed it. I tried to compile it but I don't have the javax.net.ssl package. We are a java 1.3 shop, we have not made the transition to 1.4. Any ideas? Joe Shawn Wilton wrote: > Hey Joe, > try out the following code and all should be fine. Mostly. > > First off, you need to read the jabber docs on how presence works. These > are located on jabber.org, so I won't reiterate here. I will mention > however that the system works based on subscribtions, etc. So, if you wish > to see if someone is online, then you need to send them a subscribe request, > they'll approve it (by sending a subscribed), and you will get their > presence from now on. Pretty basic. In order to get your little agent > online, you can try the following for establishing first time presence: > > PresenceBuilder presenceBuilder = new PresenceBuilder(); > //There's no such thing as an online state, > //check the j.org docs for this. a default of > //null is used for available status. > //presenceBuilder.setStateShow("online"); > //presenceBuilder.setType("available"); > presenceBuilder.setStatus("show"); > //Use any priority you like, the higher the number, the higher the > priority > presenceBuilder.setPriority(1); > //Presence presence=new Presence(presenceBuilder); > System.out.println("Setting presence for " + presence); > connectionBean.send(presenceBuilder.build()); > > Now after you send that, you will recieve all messages, etc. Do note, that > you don't resend a presence packet unless you're changing state or status. > Doing so will just tick people off. > > For the use of a bean, you can download the latest version of jabberbeans > from http://shaolo.com/downloads/Jabberbeans.tar.gz That's actually the > latest version available. However, some of the javadoc is sparse or not > present, so you may need to dive in to the code to learn of some of the new > stuff. Someday I'll recommit it all back to cvs, but until then, you can > just download it from there. > > That tarball has support for pass, browse, presence bean, groupchat > features, etc. > > -----Original Message----- > From: jab...@li... > [mailto:jab...@li...]On Behalf Of Joe > Sulewski > Sent: Wednesday, April 03, 2002 8:26 AM > To: jab...@li... > Subject: [JBDevel] Presence > > Hello, > > I have a question about how to maintain presence. I am writing a jabber > application that has no user interface. How do I maintain presence? > Right now I send a presence packet once a minute. If I monitor the user > with JabberIM, everytime a presence packet is sent I get the following > in the IM window: > > This user has changed their status back to "online / normal". show > > I don't want this to change. The presence packets that are being sent > look like the following: > > Setting presence for <presence > id="6"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="7"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="8"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="9"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="10"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="11"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="12"><status>show</status><show>online</show></presence> > > If this sounds like a confusing question perhaps it's because I'm > confused about how presence works. Here is what I'm trying to achieve. > I'm writing an application that will act as a Jabber User. I the > application to maintain presence so people can send messages to the > application and know whether the application is up or down. If the > application is up, then the lightbulb appears in the Human users IM > window. If the app goes down, then the lightbulb goes off. It's pretty > neat how it works, but I don't want the output stated above to be > displayed. > > Any help will be appreciated. > > Thanks, > Joe > > Below is the code I use to set presence. > > PresenceBuilder presenceBuilder=new PresenceBuilder(); > if (id==null){ > JabberCommunication.id=presenceBuilder.getIdentifier(); > } > presenceBuilder.setIdentifier(id); > presenceBuilder.setStateShow("online"); > presenceBuilder.setType("available"); > presenceBuilder.setStatus("show"); > Presence presence=new Presence(presenceBuilder); > System.out.println("Setting presence for "+presence); > connectionBean.send(presence); |
From: Shawn W. <sh...@bl...> - 2002-04-03 18:46:49
|
Hey Joe, try out the following code and all should be fine. Mostly. First off, you need to read the jabber docs on how presence works. These are located on jabber.org, so I won't reiterate here. I will mention however that the system works based on subscribtions, etc. So, if you wish to see if someone is online, then you need to send them a subscribe request, they'll approve it (by sending a subscribed), and you will get their presence from now on. Pretty basic. In order to get your little agent online, you can try the following for establishing first time presence: PresenceBuilder presenceBuilder = new PresenceBuilder(); //There's no such thing as an online state, //check the j.org docs for this. a default of //null is used for available status. //presenceBuilder.setStateShow("online"); //presenceBuilder.setType("available"); presenceBuilder.setStatus("show"); //Use any priority you like, the higher the number, the higher the priority presenceBuilder.setPriority(1); //Presence presence=new Presence(presenceBuilder); System.out.println("Setting presence for " + presence); connectionBean.send(presenceBuilder.build()); Now after you send that, you will recieve all messages, etc. Do note, that you don't resend a presence packet unless you're changing state or status. Doing so will just tick people off. For the use of a bean, you can download the latest version of jabberbeans from http://shaolo.com/downloads/Jabberbeans.tar.gz That's actually the latest version available. However, some of the javadoc is sparse or not present, so you may need to dive in to the code to learn of some of the new stuff. Someday I'll recommit it all back to cvs, but until then, you can just download it from there. That tarball has support for pass, browse, presence bean, groupchat features, etc. -----Original Message----- From: jab...@li... [mailto:jab...@li...]On Behalf Of Joe Sulewski Sent: Wednesday, April 03, 2002 8:26 AM To: jab...@li... Subject: [JBDevel] Presence Hello, I have a question about how to maintain presence. I am writing a jabber application that has no user interface. How do I maintain presence? Right now I send a presence packet once a minute. If I monitor the user with JabberIM, everytime a presence packet is sent I get the following in the IM window: This user has changed their status back to "online / normal". show I don't want this to change. The presence packets that are being sent look like the following: Setting presence for <presence id="6"><status>show</status><show>online</show></presence> Setting presence for <presence id="7"><status>show</status><show>online</show></presence> Setting presence for <presence id="8"><status>show</status><show>online</show></presence> Setting presence for <presence id="9"><status>show</status><show>online</show></presence> Setting presence for <presence id="10"><status>show</status><show>online</show></presence> Setting presence for <presence id="11"><status>show</status><show>online</show></presence> Setting presence for <presence id="12"><status>show</status><show>online</show></presence> If this sounds like a confusing question perhaps it's because I'm confused about how presence works. Here is what I'm trying to achieve. I'm writing an application that will act as a Jabber User. I the application to maintain presence so people can send messages to the application and know whether the application is up or down. If the application is up, then the lightbulb appears in the Human users IM window. If the app goes down, then the lightbulb goes off. It's pretty neat how it works, but I don't want the output stated above to be displayed. Any help will be appreciated. Thanks, Joe Below is the code I use to set presence. PresenceBuilder presenceBuilder=new PresenceBuilder(); if (id==null){ JabberCommunication.id=presenceBuilder.getIdentifier(); } presenceBuilder.setIdentifier(id); presenceBuilder.setStateShow("online"); presenceBuilder.setType("available"); presenceBuilder.setStatus("show"); Presence presence=new Presence(presenceBuilder); System.out.println("Setting presence for "+presence); connectionBean.send(presence); |
From: Joe S. <jo...@co...> - 2002-04-03 17:42:54
|
I took the code out that sends the presence packet every minute. Now my application will only receive data for a little while, perhaps 5 -> 10 minutes. After that I can send messages but the application never receives them. Joe Joe Sulewski wrote: > Hello, > > I have a question about how to maintain presence. I am writing a jabber > application that has no user interface. How do I maintain presence? > Right now I send a presence packet once a minute. If I monitor the user > with JabberIM, everytime a presence packet is sent I get the following > in the IM window: > > This user has changed their status back to "online / normal". show > > I don't want this to change. The presence packets that are being sent > look like the following: > > Setting presence for <presence > id="6"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="7"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="8"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="9"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="10"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="11"><status>show</status><show>online</show></presence> > Setting presence for <presence > id="12"><status>show</status><show>online</show></presence> > > If this sounds like a confusing question perhaps it's because I'm > confused about how presence works. Here is what I'm trying to achieve. > I'm writing an application that will act as a Jabber User. I the > application to maintain presence so people can send messages to the > application and know whether the application is up or down. If the > application is up, then the lightbulb appears in the Human users IM > window. If the app goes down, then the lightbulb goes off. It's pretty > neat how it works, but I don't want the output stated above to be > displayed. > > Any help will be appreciated. > > Thanks, > Joe > > Below is the code I use to set presence. > > PresenceBuilder presenceBuilder=new PresenceBuilder(); > if (id==null){ > JabberCommunication.id=presenceBuilder.getIdentifier(); > } > presenceBuilder.setIdentifier(id); > presenceBuilder.setStateShow("online"); > presenceBuilder.setType("available"); > presenceBuilder.setStatus("show"); > Presence presence=new Presence(presenceBuilder); > System.out.println("Setting presence for "+presence); > connectionBean.send(presence); |