Jersey - 0 views
Vaadin maven plugin compiler - 0 views
PrimeFaces - 0 views
Vaadin Runo Theme - 0 views
java - Setting Authentication Header in Servlet via Filter - Stack Overflow - 0 views
Apache ServiceMix Documentation - - 0 views
Activiti - 0 views
How do I trap CTRL-C in my Java app? - 0 views
-
"// And finally a Main class which tests the two classes // We let the sample thread run for 10 seconds and then // force a Shutdown with System.exit(0). You may stop the // program early by pressing CTRL-C. public class Main { public static void main(String [] args) { Shutdown shutdown = new Shutdown(); try { Runtime.getRuntime().addShutdownHook(new ShutdownThread(shutdown)); System.out.println("[Main thread] Shutdown hook added"); } catch (Throwable t) { // we get here when the program is run with java // version 1.2.2 or older System.out.println("[Main thread] Could not add Shutdown hook"); } try { Thread.currentThread().sleep(10000); } catch (InterruptedException ie) { } System.exit(0); } }"
15 Seconds : Understanding File Upload - 0 views
Jetty, embedded servlet container : What I Learned Today - 0 views
-
"Server server = new Server(); Connector connector = new SelectChannelConnector(); connector.setPort(8080); server.addConnector(connector); ContextHandlerCollection contexts = new ContextHandlerCollection(); server.setHandler(contexts); Context context = new Context(contexts, "/service"); context.addServlet(ServiceOne.class, "/one"); context.addServlet(ServiceTwo.class, "/two"); server.start(); server.join();"
« First
‹ Previous
61 - 80 of 171
Next ›
Last »
Showing 20▼ items per page