We have deployed a Java application to the FX7500 RFID reader and can manually execute the program through a ssh session, but we are looking into how the application will auto-start when the reader boots. It looks like the FX7500 SDK comes with some sample scripts to start and stop the application, but I don't see how those scripts get executed (other than through an ssh session). I see the "Applications" page in the FX7500 web interface is used for uploading C and C++ packages, and that provides start/stop/auto-start options for those types of applications.
Is there anyway to setup a Java application on the FX7500 RFID reader so the application can be started and stopped from the web interface and start automatically when the reader is powered on?
Thanks
The Zebra SDK for embedded FX7500 development includes the tools to create debian packages for Java applications. The end result is a .deb file that contains your application that can be installed on the reader and configured for auto-start.
Related
I have a java web app developed on Struts and deployed on a Tomcat server. I want to run commands and use the functions of the app using the console - something like in 'rails console' such that even if the server was not running, the entire app environment is loaded and the app is usable from the terminal itself.
I have tried Grails (Groovy) but couldn't figure out how to interface the java app with it as 'grails console' works for app developed on Grails.
How to go about doing this?
I'm planning to design a web interface to control my FFserver remotely. The question is, is it possible to start/stop the FFserver running on my Linux server using a Servlet running on the same machine?
I'm using Glassfish server and Java EE 7 for my web application. Currently I managed to get my web app to obtain http streams (which are started manually in terminal with predefined config file) and play them on the web. However, now I want to find a way to stop the streams and start the streams on demand.
Is it possible for me to run a Bash script via the servlet? Or are there any better solutions which allows Servlets to run linux commands in the servlet?
I have java code (that generates jasper reports) and I couldn't convert it to .net and I want to run it on a "Cloud Services" how can I run java code into cloud service ?
any help will be appreciated
#Dhana provided a link to a tutorial for pushing a Java app to Azure in Cloud Services (worker role). You could also push to a Web role but it makes less sense since IIS runs in a Web role, and you'll probably want Jetty, Tomcat, or JBoss for your web server.
If you're running a console app, that's fine too - just launch it from a startup script or the OnStart() in your workerrole.cs.
You'll need to install the tooling into Eclipse. At this point, you'll be able to build Azure deployment packages, in a similar way to Visual Studio (The Azure plugin for Eclipse only works on Windows though). Part of the packaging sets up links to the appropriate JVM and web server package, as well as your own jar files.
If, say, you have a console app that listens on a port, you'll just need to make sure you have an input endpoint set up for the port you want to expose.
I'm trying to launch a Java WebStart application as a Windows Service using procrun. In order to do this, I created a small Java application which only launches the Java WebStart using ProcessBuilder. If I run this application directly, I don't have any problems and the Java WebStart is started too. If I run this application configured as Windows service using procrun, nothing happened. The procrun logs show me that nothing bad happened but the Java WebStart is not launched (no UI seen and no request on the servers from JavaWS).
I'm wondering if it is possible to do what I'm trying to achieve and if there is alternative ways to do it?
My goal is to launch a small Java application which uses JMS and somes Swing UI using JavaWS and start it as a Windows Service (it must be always started in the system).
I have a rails app that talks to an api running on the same domain via ajax calls. I want to test this app using cucumber. The api is written in java and packaged as a jar. How can I mount the jar when using cucumber?
There is no way to do it automatically but you can add Before hook into env.rb or put it into separate file and in this method you can load your java extension by issuing shell command, you can store process pid in variable and kill this process in After callbalk. You can configure Capybara to start server on specific port and I think you can tune your application to use specific port too.