Skip to content

Instantly share code, notes, and snippets.

@biemond
biemond / parent pom.xml
Created April 30, 2013 17:01
OSB PS6 configjar tool parent pom
<?xml version="1.0" encoding="UTF-8" ?>
<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>biemond.core.osb</groupId>
<artifactId>tool</artifactId>
<version>1.0</version>
<description>Core POM for OSB project</description>
<packaging>pom</packaging>
@biemond
biemond / osb_configtool.sh
Created April 30, 2013 16:47
export offline OSB scripts
#!/bin/sh
export MW_HOME=/opt/wls/Middleware11gR1
export OSB_HOME=$MW_HOME/Oracle_OSB1
export JAVA_HOME=/usr/java/jdk1.7.0_17
export BEA_HOME=$MW_HOME
export WL_HOME=$MW_HOME/wlserver_10.3
export WLS_VER=10.3
export COMMON_COMPONENTS_HOME=$MW_HOME/oracle_common
@biemond
biemond / OpssBean.java
Created January 27, 2013 18:00
IdentityStore to create an AD user with a Role and set the UserAccountControl attribute
public void createUser(ActionEvent actionEvent) {
try {
PropertySet propSet = new PropertySet();
Property prop = new Property("samaccountname",this.createUser);
propSet.put(prop);
User newUser = idStore.getUserManager()
.createUser(this.createUser,
this.createUserPassword.toCharArray(),
@biemond
biemond / OpssBean.java
Created January 27, 2013 17:53
IdentityStore to change the user pasword
public class OpssBean {
private JpsContext jpsCtx = null;
private IdentityStore idStore = null;
private UserProfile userProfile = null;
private String oldPassword = null;
private String newPassword = null;
private String username = "";
@biemond
biemond / DepartmentTests.java
Created November 19, 2012 21:40
JPA Department Test Client
package nl.amis.jpa.tuning.tests;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import nl.amis.jpa.tuning.model.entities.Departments;
@biemond
biemond / Departments.java
Created November 19, 2012 21:00
JPA Tuning
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@biemond
biemond / assembly.xml
Created November 11, 2012 17:33
maven assembly
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
@biemond
biemond / helper.java
Created October 28, 2012 11:24
JSONArray and JSONObject in ADF Mobile
package nl.amis.rest.model;
import nl.amis.rest.model.maps.AddressDetails;
import nl.amis.rest.model.maps.GeocodeResponse;
import nl.amis.rest.model.maps.GeocoderGeometry;
import nl.amis.rest.model.maps.GeocoderResult;
@biemond
biemond / RestServiceAdapter.java
Created October 28, 2012 11:13
RestServiceAdapter in ADF Mobile
package nl.amis.rest.model;
import oracle.adfmf.dc.ws.rest.RestServiceAdapter;
import oracle.adfmf.framework.api.Model;
import com.sun.util.logging.Level;
import nl.amis.rest.model.maps.GeocoderResultList;
@biemond
biemond / pom.xml
Created October 7, 2012 14:42
Maven pom for building and deploying OSB projects
<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>biemond</groupId>
<artifactId>osb.all.projects</artifactId>
<version>1.3.7-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<scm>