04-10-2013 09:21 AM
Hello all,
I'd like to know if it's possible to host a web service, that was developped in Java, on a sbRIO?
If yes, can you send me links to documents or help.
Thanks,
Michel
04-11-2013 11:41 AM
Michel_Gauvin,
The short answer is no. The sbRIO has a LabVIEW RT operating system on it, and there is no way to get the Java Runtime Engine installed. It supports the the LabVIEW Web Services though:
http://www.ni.com/white-paper/7350/en
I hope this helps!
04-11-2013 11:54 AM
Hello Nathan,
I need more clarification, we can't host a third party web service (not a LabVIEW one) on a sbRIO?
I thought it was possible for java to be run on sbRIO based on the following document http://zone.ni.com/devzone/cda/epd/p/id/6462 where is states the following: NI realtime targets running VxWorks, which include PowerPC versions of single-board RIO (sbRIO) and CompactRIO (cRIO), may be programmed in C, C++, and Java. <----
Thanks,
Michel
04-12-2013 06:59 AM
Hi
In theory you can, however you will need to find a cross compiler for VxWorks for Java. Also you will have to handle the debugging of the webservice. Neither of these things is particularly easy. Probably the hardest part is getting the webserver that is running to recognise your webservice or build a web server to do what you are after.
Personally I would try to replicate the functionality of the webservice in LabVIEW. Not a small task, but one where you know all of the parameters (if you wrote the Java) and one where you can get a lot more help and debug information.
Mike