smack

XMPP Smack API RosterListener + Database Change

I'm writing an XMPP client in Java using the Smack API. I registered a roster listener for each user, and the Smack API calls... public void entriesAdded(Collection arg0) {} ... each time it notices a roster addition. Does anyone know if this listener will be set off if the database changes but not through the Smack API createEntry(...

Can we delay responding to a XMPP presence subscription ?

I am using a PacketListener to receive XMPP packets. If I receive the following: <presence from="[email protected]" to="[email protected]" type="subscribe"/> is the XMPP server expecting me to respond immediately ? Motivation: I want to cache all these subscription requests and allow the recipient to selectively ACCEPT/DENY (à la face...

Who actually uses a full JID ?

When logging in to an XMPP server via smack, I only send the userid/password combination. Do server components actually use the "resource" parameter in a full JID ? e.g. ali@someplace/resource What are the benefits of sending it ? Thanks ...

NAT Traversal with Java

I'm trying to find a way to communicate between two NAT-ed nodes using Java. My requirements pretty much align with the ICE-specification; i.e. I want to try STUN first and then fall back to relaying the data when nothing else works. I need some kind of streaming protocol, so either TCP must be supported or the library should provide som...

This class uses AtomicBooleans. Is it thread safe ?

I don't like to lock up my code with synchronized(this), so I'm experimenting with using AtomicBooleans. In the code snippet, XMPPConnectionIF.connect() makes a socket connection to a remote server. Note that the variable *connecting is only ever used in the connect() method; whereas *connected is used in every other methods that needs t...

How to turn off autosignin of registered transports in Openfire ?

This is regarding the gateway XEP 0100 support in Openfire. I have noticed that for some transports, they are auto-signed in once a connection to openfire succeeds (via the xmpp user). This applies specifically to QQ. How does one turn off this auto-signin feature ? Basically from a client perspective, I want to be able to signin select...

How to handle add request in smack API

I use Smack API to write my Google talk Client . Now i need to handle add request for this . I set SubscriptionMode to manual & now I have to registering a listener for presence packets but i don't know how !! can any body help ? ...

Can I invoke XMPPConnection.sendPacket from concurrent threads ?

Motivation I want extra eyes to confirm that I am able to call this method XMPPConnection.sendPacket( Packet ) concurrently. For my current code, I am invoking a List of Callables (max 3) in a serial fashion. Each Callable sends/receives XMPP packets on the one piece of XMPPConnection. I plan to parallelize these Callables by spinning ...

openfire smack lib

does smark library support all jabber server? or only can be use for openfire? i looking for java library that is easily portable to any jabber server ...

openfire smack sending packet 404 error means?

when sending packet to openfire using Smack, i get error remote-server-not-found(404) . Can anyone please explain what does thet error means? it mean fail to connect to server or the packet has problem? PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID()); PacketCollector response = connection.createP...

openfire smack pubsub

1.i published a content to a node then use "spark" try to retrieve the message. in spark, i suppose to add user "admin@userx" right? i cannot get any message. below message showed, i sucessfully published the content to 'thenode' <iq id="ySmn5-0" to="userx/3f3ae10c" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>a...

pubsub publish to node success, retrieve from node fail

Below showed i suggest published to node call "ghost2" iq id="kB8dk-0" to="computer/2c10ee6b" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>admin@computer/Smack</jid></bind></iq> <iq id="kB8dk-1" to="admin@computer/Smack" type="result"></iq> <iq id="kB8dk-2" to="admin@computer/Smack" type="result"><query xmlns="jabbe...

xmpp pubsub understanding

The subscriber will only receive content from the moment he is subscripting to a node and all old content published by publisher will not be received by subscriber. Is this correct? May i know, what do i need to do in order for subscriber to receive all previous old content ? ...

openfire monitor stanza xml message

inside openfire admin control panel page, is there any plugin i can use to monitor xml stanza . i know able to monitor it from smack client side, but i want to see it directly from server size, then my client do not need to run in debug mode ...

best way to analyze xml stanza from xmpp

i get stream of xml stanza from log. i want to understand the flow , currently what i can think of is get the spec from xmpp.org protocol and try to understanding each line. Is there any best prastice do you folks do to understand the xml stream? any easier way? ...

understanding the term "extension" ,"component" and "plugin" in xmpp?

can anyone explain the different "extension" ,"component" and "plugin" in xmpp? ...

How to set/get profile data with XMPP using Smack

I am working on a XMPP client on Android, using the Smack library. The roster/messaging/presence stuff is running very well. However, I didn't find a way to store additional profile information (userpicture, the dogs name, ...). The only way I see from googling is using VCards. But it simply did not work. I tried the following: VCard...

Can we create IM clients other than GTalk using Smack api in Android?

Hi For the past two weeks, i am working to create an application ,which is used to communicate with all Messengers in android.I am using Smack api for that, and now i can able to connect to the GTalk.Now trying to connect it to the Yahoo messenger.But it is throwing some execption. I want to know whether we can create Yahoo IM client us...

Unable to get presence of roster by using smack, openfire

Hi all, I am new to smack API. I am trying to develop a chat application where I was trying for setting and getting the presence. When I change the presence of a user, its working perfectly fine and it is getting reflected in the Openfire Server. But when I tries to get the Presence of a user, I am always getting the status as 'unavai...

How to let Clients know about new HostedRoom in Smack?

I am working with Openfire and Smack, currently creating new system MultiUserChat rooms. How I tell clients that new system room had been created(deleted) on the server? (I need clients to modify their's Rosters) ...