简体   繁体   English

如何使用j2se客户端将数据连接并从funambol dm服务器中拉出数据?

[英]How to connect and pull data out of funambol dm server using j2se client ?I

I have installed the DM server and it is up and running.Also added couple of device details via koneki simulator. 我已经安装了DM服务器并已启动并运行。还通过koneki模拟器添加了一些设备详细信息。

Now i want to use one of the j2se client to connect and pull data from DM server. 现在,我想使用j2se客户端之一连接并从DM服务器提取数据。

I am struck on this part.Any code sample ? 我对此感到震惊。任何代码示例?

Actually, there is an OMA-DM client underneath the Koneki simulator that you might want to reuse! 其实,还有就是你可能要重用Koneki模拟器下的OMA-DM客户端!

You can grab the source code from the GitHub mirrors of the OMA-DM simulator: here and here 您可以从OMA-DM模拟器的GitHub镜像中获取源代码: 此处此处

  • org.eclipse.koneki.simulators.omadm is used to run a new OMA-DM session. org.eclipse.koneki.simulators.omadm用于运行新的OMA-DM会话。 Look for the run() method in the class org.eclipse.koneki.simulators.omadm.basic.DMBasicSimulation org.eclipse.koneki.simulators.omadm.basic.DMBasicSimulation类中查找run()方法
  • org.eclipse.koneki.protocols.omadm defines the object model used during a simulation. org.eclipse.koneki.protocols.omadm定义模拟期间使用的对象模型。
  • org.eclipse.koneki.protocols.omadm.client (the most interesting for you) manages all the messages that are exchanged between a client (eg the simulator) and a server. org.eclipse.koneki.protocols.omadm.client (您最感兴趣的)管理在客户端(例如模拟器)和服务器之间交换的所有消息。 Look for the org.eclipse.koneki.protocols.omadm.client.basic.DMBasicSession class. 查找org.eclipse.koneki.protocols.omadm.client.basic.DMBasicSession类。

You should stop by the Koneki forum if you have any further questions (and I am sure you will!) 如果您有任何其他疑问,您应该在Koneki论坛上停留(我敢肯定您会!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM