2012-07-24 34 views
0

我从http://code.google.com/p/restful-dds/downloads/list网站下载restful-dds-1.0-src.tgz文件。我正在使用Linux环境。从ReadMe.txt文件中,我执行chatter应用程序(CHATROOM TEST)到脚本/ startRESTfulDDS.sh,并从http://ipaddress:8182/static/ajaxTest.html查看html文件。之后“通过运行脚本/ Chatter {sh,bat}来运行Tutorial目录中的Chatter应用程序。”在这里我的问题出现了。我无法在Tutorial文件夹中看到脚本文件夹和chatter.sh文件。请帮助我做错了什么。Restful DDS执行

我使用opensplice DDS V5.5

GWT2.4.0, 
JDK 1.6, 
Restlet v2.0.14, 
Gson v2.2.2 

回答

1

I am not able to see scripts folder and chatter.sh file inside the Tutorial folder

所创建的是OpenSpliceDDS教程的精确副本,在$OSPL_HOME/examples/dcps/standalone/Java/Tutorial发现Tutorial文件夹。在resful-dds README和本教程中的描述之间似乎存在不匹配,因为确实没有chatter.sh。然而,有Tutorial目录,说明如何运行ChatterREADME.txt

Chatter [userid] [username] 
    userid: an integer number that uniquely identifies the sender of a message 
      (Transmit a message with userid = -1 to terminate the MessageBoard.) 
    username: the user-name other chatters will see when they receive one of your 
      chat messages. 

The executables classes are located in the chatroom package, but should be 
started from the current directory in the following way: 
... 
java -classpath $OSPL_HOME/jar/dcpssaj.jar:bld chatroom.Chatter 1 Bill 

根据这一程序,你应该能够运行Chatter。当然,您应该先运行ospl start来初始化基础架构。

顺便说一句,您不需要运行本教程的java版本 - 任何支持的语言都应该这样做。 OpenSpliceDDS安装本身应该为您提供有关针对不同语言运行Chatter的更多信息。宁静的DDS web服务将接收在DDS总线上找到的任何数据,并通过HTTP公开它,无论使用何种语言编写原始进程。

+0

当我尝试运行restful-dds-1.1内部的构建文件时显示一些运行时错误,如“java.lang.incompatibleclasschangeerror:found interface com.google.gwt.core.ext.typeinfo.jclasstype,but class was expected”error occurred。 – Bathakarai 2012-07-24 11:38:21

+0

好的,我对此一无所知。我从答案中删除了这个评论。 – 2012-07-24 12:30:50