View ClearAttachmentsOutInterceptor.java
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
import org.apache.cxf.binding.soap.SoapMessage; | |
import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; | |
import org.apache.cxf.endpoint.ClientImpl; | |
import org.apache.cxf.interceptor.Fault; | |
import org.apache.cxf.phase.Phase; | |
/** | |
* Fix CXF memory leak by removing attachments once the SOAP message was sent. | |
*/ | |
public class ClearAttachmentsOutInterceptor extends AbstractSoapInterceptor { |
View pom-jasmine.xml
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
<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"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.javaetmoi.samples</groupId> | |
<version>1.0-SNAPSHOT</version> | |
<artifactId>jasmine-test-webapp</artifactId> | |
<name>JavaEtMoi Samples :: ${project.artifactId} - ${project.packaging}</name> | |
<packaging>war</packaging> | |
<description>Maven configuration to test JavaScript code of a Java web app with Jasmine et PhantomJS</description> | |
<inceptionYear>2014</inceptionYear> |
View NopScanner.java
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
package com.javaetmoi.core.persistence.hibernate; | |
import java.util.Collections; | |
import java.util.Set; | |
import org.hibernate.jpa.boot.archive.internal.StandardArchiveDescriptorFactory; | |
import org.hibernate.jpa.boot.scan.spi.AbstractScannerImpl; | |
import org.hibernate.jpa.boot.scan.spi.ScanOptions; | |
import org.hibernate.jpa.boot.scan.spi.ScanResult; | |
import org.hibernate.jpa.boot.spi.ClassDescriptor; |
View angular-from-scratch.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>AngularJS from scratch</title> | |
</head> | |
<body class="container text-center"> | |
<h1 class="page-header" ng-bind="labs.titre">AngularJS from scratch</h1> | |
<input type="text" ng-model="labs.titre"/> |
View ViewStateExtractor.java
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
import java.util.HashSet; | |
import java.util.Set; | |
import org.apache.jmeter.extractor.RegexExtractor; | |
import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; | |
import org.apache.jmeter.testelement.TestElement; | |
import com.javaetmoi.tests.jmeter.TestElementProcessor; | |
import com.javaetmoi.tests.jmeter.TestElementTree; |
View pom-maven-replace-arobase.xml
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
<build> | |
<!-- Filtres les fichiers de ressources --> | |
<resources> | |
<resource> | |
<directory>target/generated-resources</directory> | |
<!-- Utilise les délimiteurs par défaut ${*} et @ --> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
<filters> |
View jboss-app.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE jboss-app PUBLIC | |
"-//JBoss//DTD Java EE Application 5.0//EN" | |
"http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd"> | |
<jboss-app> | |
<loader-repository>com.javaetmoi:archive=monapplication-ear | |
<loader-repository-config>java2ParentDelegation=false</loader-repository-config> | |
</loader-repository> | |
</jboss-app> |
View pom-ear-jboss.xml
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
<!-- Generation du classPath dans le Manifest de l'EAR, paramétrage du classloader --> | |
<!-- et recopie centralisée des JARs des WARs dans le répertoire lib --> | |
<plugin> | |
<artifactId>maven-ear-plugin</artifactId> | |
<configuration> | |
<version>5</version> | |
<defaultJavaBundleDir>lib/</defaultJavaBundleDir> | |
<applicationXml>${project.build.directory}/application.xml</applicationXml> | |
<archive> | |
<manifest> |
View TransactionAwareDestination.java
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
package com.javametmoi.test.dbsetup; | |
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import javax.sql.DataSource; |
View TestSpringDbSetup.java
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
package com.javametmoi.test.dbsetup; | |
import static com.ninja_squad.dbsetup.Operations.insertInto; | |
import static com.ninja_squad.dbsetup.Operations.sequenceOf; | |
import static org.junit.Assert.assertEquals; | |
import java.sql.SQLException; | |
import javax.sql.DataSource; |
OlderNewer