I want to connect the java program to the LSL.I do have so many sensors in SL.I want to give real world readings to these sensors by a java program i.e input from outside SL.Is it possible? If its possible then how.Please do help me.If my given information is not sufficient then do ask me and try to help me out.
How to connect JAVA with LSL(Linden Scripting Language)?
487 Views Asked by Abhiz At
2
There are 2 best solutions below
0
On
It is definitely possible. I would suggest running your Java application as a server, and having SL objects poll it in regular intervals with http_request. Or you could have your outside Java application use HTTP requests to call your SL objects, but the former is much simpler.
P.S. As Sascha said, XML-RPC is also possible and it's a bit simpler to use, but Linden Lab advises to use LSL HTTP if possible as it scales better and is more reliable.
The only way I know would work via requests and two-way communication and could be implemented easily with XML Remote Procedure Calls.
Quoted from LSL XML-RPC - Second Life Wiki, what you want is the Java-Snippet on this page.