You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Shibu Narayanan <sh...@oracle.com> on 2014/06/02 14:29:56 UTC

RE: connect to Vysper using pidgin

:)
I mean to ask, what are the parameters to use to connect... What settings to set in pidgin for server name, port, etc...?


the below server code I got from the internet ....

public class Trial_XMPP_Server {

    public void startServer() throws Exception {

		XMPPServer server = new XMPPServer("vysper.org");
			
		StorageProviderRegistry providerRegistry = new MemoryStorageProviderRegistry();

		AccountManagement accountManagement = (AccountManagement) providerRegistry.retrieve(AccountManagement.class);

		Entity user = EntityImpl.parseUnchecked("user@vysper.org");
		accountManagement.addUser(user, "password");

		server.setStorageProviderRegistry(providerRegistry);

		server.addEndpoint(new TCPEndpoint());

		server.setTLSCertificateInfo(new File("Trial_keystore.jks"), "Password123");

		server.start();
		System.out.println("Vysper server is running...");

		server.addModule(new EntityTimeModule());
		server.addModule(new VcardTempModule());
		server.addModule(new XmppPingModule());
		server.addModule(new PrivateDataModule());
    }

    public static void main(String args[]) throws Exception {
		Trial_XMPP_Server s = new Trial_XMPP_Server();
        s.startServer();
    }
}



Shibu Narayanan 

-----Original Message-----
From: Bernd Fondermann [mailto:bernd.fondermann@gmail.com] 
Sent: Friday, May 30, 2014 10:20 PM
To: users@mina.apache.org
Subject: Re: connect to Vysper using pidgin

On Fri, May 30, 2014 at 3:07 PM, Shibu Narayanan <sh...@oracle.com> wrote:
> Is it possible to connect to Vysper using pidgin?

Yes.

  Bernd

Re: connect to Vysper using pidgin

Posted by Bernd Fondermann <be...@gmail.com>.
Hi,

Ideally, you run your Vysper XMPP server under your own domain, for
example xmpp.shibu.name. Then, all users should have accounts like
me@xmpp.shibu.name.
This would make account config on the clients as easy as it gets, the
requirement to specify server name and port vanishes.

However, if you are running on your own dev machine, on a virtual
machine or on any box, you would use the "localhost", the IP or the
DNS of that machine. The port is 5222 and will probably be chosen by
default. In this cases, the accounts/logins would still be required to
use "xmpp.shibu.name", as this needs to reflect the name given to the
"new XMPPServer(...);" call.

See also this URL for the original source:

https://svn.apache.org/viewvc/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java?revision=1142805&view=markup

   Bernd


On Mon, Jun 2, 2014 at 2:29 PM, Shibu Narayanan
<sh...@oracle.com> wrote:
> :)
> I mean to ask, what are the parameters to use to connect... What settings to set in pidgin for server name, port, etc...?
>
>
> the below server code I got from the internet ....
>
> public class Trial_XMPP_Server {
>
>     public void startServer() throws Exception {
>
>                 XMPPServer server = new XMPPServer("vysper.org");
>
>                 StorageProviderRegistry providerRegistry = new MemoryStorageProviderRegistry();
>
>                 AccountManagement accountManagement = (AccountManagement) providerRegistry.retrieve(AccountManagement.class);
>
>                 Entity user = EntityImpl.parseUnchecked("user@vysper.org");
>                 accountManagement.addUser(user, "password");
>
>                 server.setStorageProviderRegistry(providerRegistry);
>
>                 server.addEndpoint(new TCPEndpoint());
>
>                 server.setTLSCertificateInfo(new File("Trial_keystore.jks"), "Password123");
>
>                 server.start();
>                 System.out.println("Vysper server is running...");
>
>                 server.addModule(new EntityTimeModule());
>                 server.addModule(new VcardTempModule());
>                 server.addModule(new XmppPingModule());
>                 server.addModule(new PrivateDataModule());
>     }
>
>     public static void main(String args[]) throws Exception {
>                 Trial_XMPP_Server s = new Trial_XMPP_Server();
>         s.startServer();
>     }
> }
>
>
>
> Shibu Narayanan
>
> -----Original Message-----
> From: Bernd Fondermann [mailto:bernd.fondermann@gmail.com]
> Sent: Friday, May 30, 2014 10:20 PM
> To: users@mina.apache.org
> Subject: Re: connect to Vysper using pidgin
>
> On Fri, May 30, 2014 at 3:07 PM, Shibu Narayanan <sh...@oracle.com> wrote:
>> Is it possible to connect to Vysper using pidgin?
>
> Yes.
>
>   Bernd