This file contains hidden or 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
package com.javaee.insight; | |
import java.io.File; | |
import java.io.IOException; | |
public class CreateTempFileTest { | |
public static void main(String[] args) { | |
try { | |
// create a temp file | |
File temp = File.createTempFile("sample", ".tmp"); |
This file contains hidden or 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
package uk.co.blogspot.camelbyexample; | |
import org.apache.camel.builder.RouteBuilder; | |
public class FileXPathBuilder extends RouteBuilder { | |
public void configure() { | |
from("file:src/data?noop=true") | |
.choice() |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
... | |
... | |
... | |
<plugins> | |
<plugin> | |
<artifactId>maven-source-plugin</artifactId> |
This file contains hidden or 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
<jaxws:bindings wsdlLocation="SampleService.wsdl" | |
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:jxb="http://java.sun.com/xml/ns/jaxb" | |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> | |
<jaxws:bindings node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://example.com/service/SampleService/']"> | |
<jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<jxb:javaType name="java.util.Date" xmlType="xs:date" | |
parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime" | |
printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/> |
This file contains hidden or 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
Maven Command to release the maven artifact to Repository | |
mvn release:clean release:prepare release:perform |
This file contains hidden or 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
import org.opends.sdk.Connection; | |
import org.opends.sdk.ConnectionFactory; | |
import org.opends.sdk.Connections; | |
import org.opends.sdk.LDAPConnectionFactory; | |
import org.opends.sdk.LDAPOptions; | |
import org.opends.sdk.requests.BindRequest; | |
import org.opends.sdk.requests.PasswordModifyExtendedRequest; | |
import org.opends.sdk.requests.Requests; | |
import org.opends.sdk.responses.PasswordModifyExtendedResult; |
This file contains hidden or 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
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class WordUtils { |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.List; | |
import javax.faces.bean.ManagedBean; | |
import javax.faces.bean.SessionScoped; | |
import org.apache.log4j.Logger; | |
import org.exoplatform.commons.utils.secure.SecureSet; |
This file contains hidden or 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
package com.sachinhandiekar.examples; | |
import org.apache.camel.Exchange; | |
import org.apache.camel.Processor; | |
import org.apache.camel.builder.RouteBuilder; | |
/** | |
* @author Sachin Handiekar | |
*/ | |
public class QuartzRoute extends RouteBuilder { |