[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] RemoteService with XMPP with Luna

Hi,

I'm trying to use the latest Luna release with the remote services with
XMPP. I have a problem to get the remote service interface. Here is a
sample code for the connection and the request of the service
interface :



System.out.println("Connect 1");
IContainer container = ContainerFactory.getDefault()
        .createContainer("ecf.xmpp.smack");

ID id1 = IDFactory.getDefault().createID("ecf.xmpp", "user@XXX");
IConnectContext connectContext1 = ConnectContextFactory
        .createPasswordConnectContext("XXXX");
container.connect(id1, connectContext1);
IRemoteServiceContainerAdapter service =
(IRemoteServiceContainerAdapter) container
        .getAdapter(IRemoteServiceContainerAdapter.class);

System.out.println("Connected (service == null)="
        + (service == null));



The client connects to the OpenFire (3.8.0) but the 'service' reference
returned by 'getAdapter' is null. I use the JDK 1.7.0_51. The version of
Luna is :

Version: Luna Release (4.4.0)
Build id: 20140612-0600 

Some plugins versions used from ECF :
org.jivesoftware.smack_3.3.0.v20140528-1625.jar
org.eclipse.ecf_3.4.0.v20140528-1625.jar
org.eclipse.ecf.remoteservice_8.4.100.v20140528-1625.jar
org.eclipse.ecf.provider.xmpp_3.2.200.v20140528-1625.jar
org.eclipse.ecf.provider.xmpp.remoteservice_1.1.0.v20140528-1625.jar


Surprisingly, the behavior is different with Luna M5. The exact same
code give a non null 'service' reference. The version of Luna M5 I used
is :

Version: Luna M5 Release
Build id: 20140130-1145

org.jivesoftware.smack_3.3.0.v20131027-1505.jar
org.eclipse.ecf_3.2.0.v20131209-1801.jar
org.eclipse.ecf.remoteservice_8.2.0.v20131027-1505.jar
org.eclipse.ecf.provider.xmpp_3.2.100.v20131027-1505.jar
org.eclipse.ecf.provider.xmpp.remoteservice_1.0.0.v20131027-1505.jar

I also tested this code with some Indigo and Kepler releases and the
reference is not null.

Is something changes with the Luna release in the XMPP remote services ?

Thanks 
Guillaume