2) using Socket protocol, I could change properties for clients like
HelloWorld6 and the server in command line , but I don' work for xmlrpc :
for client :
// Change hard-coded the protocol and server lookup:
String[] args = { "-protocol", "XMLRPC",
"-dispatch/connection/plugin/xmlrpc/hostname", "server.xxx.zz",
"-dispatch/connection/plugin/xmlrpc/port",
"8080", // I try with 8080 to not use root access
"-dispatch/connection/plugin/socket/localHostname", "client.xxx.zz",
"-dispatch/connection/plugin/xmlrpc/localPort", "8080"
};
for server : the command line :
java -jar lib/xmlBlaster.jar -plugin/xmlrpc/port 8080
I had for client :
2008-03-06 15:31:08.909 [32;40m INFO [0m 10-main
org.xmlBlaster.client.protocol.xmlrpc.XmlRpcConnection init: Created
'XMLRPC' protocol plugin to connect to xmlBlaster server
2008-03-06 15:31:09.32 [32;40m INFO [0m 10-main
org.xmlBlaster.client.protocol.xmlrpc.XmlRpcConnection
connectLowlevel: Created XmlRpc client to http://server.xxx.zz:8080/
2008-03-06 15:31:09.70 [32;40m INFO [0m 10-main
org.xmlBlaster.util.dispatch.DispatchConnection handleTransition:
Connection 'XMLRPC' transition UNDEF -> ALIVE: Success,
DispatchConnection-connection:client/abid_zie1204813867398 connected.
2008-03-06 15:31:09.192 [32;40m INFO [0m 10-main
org.xmlBlaster.util.dispatch.DispatchManager switchToSyncMode:
connection:client/abid_zie1204813867398: Switched to synchronous
message delivery
2008-03-06 15:31:09.317 [31;40mSEVERE [0m 10-main
javaclients.HelloWorld6 <init>: Houston, we have a problem:
errorCode=user.configuration message=#exported Local host IP
'server.xxx.zz' for XMLRPC callback server is invalid:
java.io.IOException: Cannot assign requested address
Success, hit a key to exit
( I can ping server.xxx.zz and client.xxx.zz )
So wan't wrong here ?
3) if, I want to add this properties in xmlBlaster.properties , how
can I do it? I'll try to put lines like :
# after the line 87 :
CbProtocolPlugin[XMLRPC][1.0]=org.xmlBlaster.protocol.xmlrpc.CallbackXmlRpcDriver
#test if proprities work for XmlRpc:
plugin/xmlrpc/port=8080
plugin/xmlrpc/hostname=server.xxx.zz
plugin/xmlrpc/localport=8080
I hope that isn't too much questions ...
thanks for your time and your answers