[jdev] blocking and unblocking

2007-05-10 Thread Bruno Bechler Machado
Hy.. sorry for post this subject again, but my problem isn't solved.. I need to block and unblock users using Java smack api 2.2.1.. someone can help me? please??? i've been trying to do: public void blockingContactGateway(XMPPConnection connection, String contact, String

Re: [jdev] Re: Adding a contact to msn from jabber.

2007-03-07 Thread Bruno Bechler Machado
Thanks guys, but i've tryed everything and didn't work. basicaly, thats my sorce code: String contact = user%hotmail.com; // tryed: user%40hotmail.com, user\40hotmail.com, user%hotmail.com Roster roster = connection.getRoster(); String absoluteFriend = contact + @ + gatewayName + . +

Re: [jdev] Re: Adding a contact to msn from jabber.

2007-03-07 Thread Bruno Bechler Machado
thanks for helping guys! i solved the problem, if anyone needs it, here is a code example: public void addContact() { Roster roster = connection.getRoster(); Presence subscribe = new Presence(Presence.Type.SUBSCRIBE); subscribe.setTo([EMAIL PROTECTED]);

Re: [jdev] Re: Adding a contact to msn from jabber.

2007-03-07 Thread Bruno Bechler Machado
Every xmppConnection have its own roster :P when you create a xmppconnection like: XMPPConnection connection = new XMPPConnection(jabber.org); the roster is the user that logs using the XMPPConnection, like: connection.login(user1, password); to get this roster, you need just to do implement:

[jdev] Adding a contact to msn from jabber.

2007-03-06 Thread Bruno Bechler Machado
! thanks. Bruno Bechler Machado

[jdev] add, del contact from gateway

2007-03-05 Thread Bruno Bechler Machado
Hy, i'm tryng to add a contact to my msn account using this code: public void addContact(XMPPConnection connection, String contact, String gatewayName) { Roster roster = connection.getRoster(); String absoluteFriend = contact + @ + gatewayName + . + connection.getServiceName();

[jdev] Gateway registration with smack api

2007-02-26 Thread Bruno Bechler Machado
anyone knows how do i register a msn/icq/aol... accounts to my jabber account, without using the wildfire admin? I need to do that using the smack and wildfire apis..! please, if someone have a exemple, it would be very helpfull.

Re: [jdev] How to publish the server.

2007-02-10 Thread Bruno Bechler Machado
first, try to desactivate the windows firewall, if doesnt work, check the communication port between your server and the client. The port must be the same. and at last, if none of those two options works, check your gprs connection on the mobile.

[jdev] help on msn and icq connections

2007-02-08 Thread Bruno Bechler Machado
? thanks guys, Bruno Bechler Machado [EMAIL PROTECTED]