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

https://github.com/efuquen/scala-gearman

http://gearman.org/


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -