How to call a scala function from php? -
is there method call scala function php other thrift service? tried thrift service problem is, works times , times doesn't. there easy solution problem?
the code below server.scala program
try { val servertransport: tserversocket= new tserversocket(9778) val processor = new user_nodeservice.processor(user_node) val args1:args = new args(servertransport) args1.processor(processor) val server:tserver = new tthreadpoolserver(args1) println("started service successfully...") server.serve() } sometimes error "value processor not member of org.apache.thrift.server.tthreadpoolserver.args" on line "args1.processor(processor)" , code works fine.
you try gearman, there scala version available
Comments
Post a Comment