Skip to main content

Home/ Groups/ woopi-java
Martin Menzel

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();"
Martin Menzel

[news.eclipse.technology.equinox] Re: how to remote controll the Equinox - 0 views

  •  
    "Hi, Actually there is a OSGi standard way of accessing the console remotely. Simply pass a port number after -console (like -console 23) and now your OSGi prompt is accessable via Telnet. /Lars "
Martin Menzel

Koders Code Search: SmtpTest.java - Java - 0 views

  •  
    "kage foo; import junit.framework.TestCase; import javax.xml.ws.BindingProvider; import org.jvnet.jax_ws_commons.transport.smtp.SMTPFeature; import org.jvnet.jax_ws_commons.transport.smtp.POP3Info; import org.jvnet.jax_ws_commons.transport.smtp.SenderInfo; import com.sun.xml.ws.developer.WSBindingProvider; import org.jvnet.jax_ws_commons.transport.smtp.client.SMTPTransportTube; public class SmtpTest{ public void testSmtp() { SMTPTransportTube.dump = true; // Enable logging // Setup SMTP server SMTPFeature feature = new SMTPFeature("kohsuke.sfbay.sun.com", "10025", "smtp.transport.client@kohsuke.org"); //SMTPFeature feature = new SMTPFeature("localhost", "25", // "smtp.transport.clien@griffon.kohsuke.org"); //Setup POP3 feature.setPOP3("kohsuke.org", "smtp.transport.client", "jaxws123"); //feature.setIncoming(new POP3Info("localhost", 8110, "smtp.transport.clien", "jaxws123")); //Set the endpoint address BookService proxy = new BookServiceService().getBookServicePort(feature); ((WSBindingProvider)proxy).setAddress("smtp://smtp.transport.server@kohsuke.org"); //((WSBindingProvider)proxy).setAddress("smtp://smtp.transport.serve@griffon.kohsuke.org"); for(Book book : proxy.getRecommendedBooks()){ System.out.println("--------------------------------"); System.out.println("Id: " + book.getId()); System.out.println("Author: "+book.getAuthor()); System.out.println("Title: "+book.getTitle()); } System.out.println("--------------------------------"); } }"
Martin Menzel

java - force Maven2 to copy dependencies into target/lib - Stack Overflow - 0 views

  •  
    "maven-dependency-plugin"
Martin Menzel

classpath - How to analyse which jar file is used in a JAVA program? - Stack Overflow - 0 views

  •  
    " 10 down vote Invoke the java executable with the -verbose:class argument. This will produce output like: [Loaded org.apache.log4j.helpers.ThreadLocalMap from file:/C:/.../1.2.14/log4j-1.2.14.jar] [Loaded org.apache.commons.cli.Option from file:/C:/.../commons-cli-1.2.jar]"
Martin Menzel

[#CAMEL-1293] bean component - ability to pass in additional parameters - ASF JIRA - 0 views

  •  
    "@Header(name = "type") String type,"
Martin Menzel

Overview of Caffeine - ABAP to Go - 0 views

  •  
    "Caffeine"
Martin Menzel

Camel mit Springs ConnectionPooling und Transaktionssteuerung - Christoph Burmeister - 0 views

  •  
    " "
Martin Menzel

web development - Map external directory to web.xml - Stack Overflow - 0 views

  •  
    ""
Martin Menzel

How To Retrieve Remote JVM Monitoring And Management Information (JMX, SNMP, Java, etc...) - 0 views

  •  
    "com.sun.tools.attach.VirtualMachine"
Martin Menzel

OTN Discussion Forums : mq-4.4 update1 install exception ... - 0 views

  •  
    "CHARACTER SET latin1"
Martin Menzel

Configuring Credentials for Broker Components - 0 views

  •  
    " "
Martin Menzel

Wann ist ein Test ein Unit-Test? - 0 views

  •  
    ""Ein Test ist kein Unit-Test, wenn: er mit einer Datenbank kommuniziert. er über das Netzwerk kommuniziert. er das Dateisystem anspricht. er nicht zur gleichen Zeit wie ein anderer Unit-Test ausgeführt werden kann. du spezielle Dinge mit dem Environment tun musst (z.B. Editieren von Konfigurationsdateien), um ihn auszuführen. Tests, die diese Dinge machen, sind nicht schlecht. Häufig sind sie es wert, geschrieben zu werden, und dafür kann ein Unit-Test-Harness verwendet werden. Aber es ist wichtig, sie von echten Unit-Tests trennen zu können, so dass wir eine Reihe von Tests haben, die wir schnell ausführen können, wann immer wir unseren Code ändern.""
Martin Menzel

Xuggle Xuggler Downloads - 0 views

  •  
    "Xuggler"
Martin Menzel

Camel - Users - Using xpath in setHeader with spring DSL - 0 views

  •  
    "hmmm, you aren't using xpath in the Java DSL, so the spring DSL should be something like this... {{cmisURL}}/p/${in.header.folderPath}children antoine.julienne wrote: Here is my code : .setHeader(Exchange.HTTP_URI, simple(cmisURL + "/p/${headers.folderPath}children")) I really don't know how to transform it into Spring DSL. I tried this, but it didn't work : {{cmisURL}}/p/${headers.folderPath}children "
Martin Menzel

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); } }"
Martin Menzel

15 Seconds : Understanding File Upload - 0 views

  •  
    "name="FileItem";"
Martin Menzel

Large Attachements with MTOM and CXF « Shoaib Khanzada's Weblog - 0 views

  •  
    "base64Binary "
1 - 20 Next › Last »
Showing 20 items per page