This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: 2345 20 80 | |
# description: java app daemon | |
# | |
DAEMON_PATH="/opt/APP_NAME/bin" | |
DAEMON='java -jar ../APP_NAME.jar' | |
DAEMONOPTS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: 2345 20 80 | |
# description: webapp daemon | |
# | |
DAEMON_PATH="/opt/APP_NAME/bin" | |
DAEMON='java -jar ../APP_NAME.jar' | |
DAEMONOPTS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://httpd.apache.org/docs/2.2/mod/mod_proxy.html | |
# http://httpd.apache.org/docs/current/mod/mod_proxy_html.html | |
# http://www.apachetutor.org/admin/reverseproxies | |
# http://httpd.apache.org/docs/2.2/mod/mod_substitute.html | |
# load mod_proxy_html | |
sudo yum install mod_proxy_html | |
sudo vi /etc/httpd/conf/httpd.conf | |
# Find modules | |
LoadModule proxy_html_module modules/mod_proxy_html.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping("/") | |
@Controller | |
public class HomeController { | |
@RequestMapping(method = RequestMethod.GET) | |
public String home(ModelMap map) { | |
return "home"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Include the Polyfill --> | |
<script type="text/javascript" src="https://www.javapoly.com/javapoly.js"></script> | |
<!-- Invoke your Java code from Javascript --> | |
<script type="text/java"> | |
package com.javapoly.demo; | |
import com.javapoly.dom.Window; |