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 javax.annotation.Resource; | |
import javax.ejb.Stateless; | |
import javax.mail.*; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.internet.MimeMessage; | |
/** | |
* | |
* @author jphoff | |
*/ |
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.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
import javax.inject.Qualifier; | |
/** | |
* | |
* @author jphoff | |
*/ |
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 javax.ejb.Stateless; | |
import javax.enterprise.event.Event; | |
import javax.enterprise.event.Observes; | |
import javax.inject.Qualifier; | |
/** | |
* | |
* @author jhoffma5 | |
*/ | |
@Stateless |
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 javax.enterprise.event.Event; | |
import javax.inject.Inject; | |
/** | |
* | |
* @author jhoffma5 | |
*/ | |
public class FireEvent { | |
@Inject | |
@Qualifier |
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
$("#searchterm").keyup(function() { | |
var q = $("#searchterm").val(); | |
$("#results").empty(); | |
$.getJSON("http://" +document.location.host + "/rest/customer/n/" + q, function(data) { | |
$("#results").append("Results for <b>" + q + "</b>"); | |
$.each(data, function(i, item) { | |
$("#results").append('<p>' + item.name + '</p>'); | |
}); | |
}); | |
}); |
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
update-alternatives --install "/usr/bin/java" java "/usr/java/jdk1.7.0_45/bin/java" 1 | |
update-alternatives --set java /usr/java/jdk1.7.0_45/bin/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
Change the following JVM options so that they point to the location and name of the new keystore. Add this in domain.xml under java-config: | |
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options> | |
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options> |
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 me.slashfix.angular.rest; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import javax.persistence.EntityManager; | |
import javax.persistence.NoResultException; | |
import javax.persistence.Query; | |
/** |
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
mvn -DdryRun=true -DscmCommentPrefix=[maven-release-plugin][JIRAID] release:prepare | |
mvn release:clean | |
mvn -DscmCommentPrefix=[maven-release-plugin][JIRAID] release:prepare | |
mvn -Dgoals=deploy -DscmCommentPrefix=[maven-release-plugin][JIRAID]- release:perform |
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
angular.module('autoFields', ['ui.bootstrap']) | |
.directive('autoFields', ['$compile', function ($compile, $rootScope) { | |
return { | |
restrict: 'E', | |
priority: 1, | |
replace: true, | |
compile: function () { | |
return function ($scope, $element, $attr) { | |
var schemaStr = $attr.fields || $attr.autoFields, | |
optionsStr = $attr.options, |
OlderNewer