ubuntu 中tuscany 使用binding时获取到的ip地址是127.0.0.1,如何让它变成eth0的ip?

25 views
Skip to first unread message

rgc

unread,
Sep 20, 2012, 8:08:30 AM9/20/12
to tuscany-s...@googlegroups.com
举个例子:我在composite文件中这样指定binding的

<service name="DBService"  >
<tuscany:binding.jsonrpc uri="/DBComponent/DBService" />
</service>
然后我将获取到的endpoint进行打印,得到如下结果:

Endpoint:  URI = DBComponent#service-binding(DBService/DBService):
component=DBComponent
service=DBService
isRemote=false
isAsyncInvocation=false
policySets=[]
binding=org.apache.tuscany.sca.binding.jsonrpc.impl.JSONRPCBindingImpl@176eeb9
deployedUri=http://127.0.1.1:8080/cn.edu.nju.moon.version-consistency/DBComponent/DBService/
我要怎么修改代码才能使我使用上面的绑定uri来使得获取到的deployedUri为我eth0的ip?
Reply all
Reply to author
Forward
0 new messages