AnsweredAssumed Answered

Getting start

Question asked by Manolo on Apr 4, 2016
Latest reply on Apr 5, 2016 by Manolo

Hi, I would like use smack for send notification over internet from spring application, on pivotal server to android device.

 

I use openfire between client server applications. Now I follow getting starting tutorial on spring

// Create a connection to the jabber.org server. AbstractXMPPConnection conn1 = new XMPPTCPConnection("user", "XXXX" "127.0.0.1"); conn1.connect();  // Create a connection to the jabber.org server on a specific port. XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()   .setUsernameAndPassword("user", "XXXX")   .setXmppDomain("openfire")   .setHost("127.0.0.1")   .setPort("9090")   .build();  AbstractXMPPConnection conn2 = **new** XMPPTCPConnection(config); conn2.connect();
// Create a connection to the jabber.org server. AbstractXMPPConnection conn1 = **new** XMPPTCPConnection("username", "password" "jabber.org"); conn1.connect();  // Create a connection to the jabber.org server on a specific port. XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()   .setUsernameAndPassword("username", "password")   .setXmppDomain("jabber.org")   .setHost("earl.jabber.org")   .setPort("8222")   .build();  AbstractXMPPConnection conn2 = **new** XMPPTCPConnection(config); conn2.connect();

I ask two question:

Can I use this library on spring for a webapplication xmpp client? Is there a tutorial for do that?

 

Can I use this library for push message (chat message) on android device ? I would like to simulate a push notification for start specific task on android device trough chat Xmpp smack mechanism.

 

tnx

Outcomes