Skip to content

Instantly share code, notes, and snippets.

View ejlp12's full-sized avatar

EJLP ejlp12

  • Indonesia
View GitHub Profile
@ejlp12
ejlp12 / gist:a85634d78eec3eed55ce
Last active September 4, 2015 23:10
BPMN LAB Resources (Philippine Workshop 13-14 Apr 2015)
LAB X1 - BPMN2 Simulation http://goo.gl/MnxaOv
Simple exercise to run simulation. You just need to import the BPMN2 files and follow the LAB instruction.
@ejlp12
ejlp12 / fuse
Last active October 16, 2015 07:49
container-create-child --profile ejlp12-fuse-full --jvm-opts '-Xms1024m -Xmx1024m -XX:MaxPermSize=256M -Xloggc:gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/jboss/fuse/support/dump/fusechild01_root1' root1 fusechild01_root1
## MQ
container-create-child --jvm-opts '-Xms1024m -Xmx1024m -XX:MaxPermSize=256M -Xloggc:gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/jboss/fuse/support/dump/amqchild01_root3' root3 amqchild01_root3
fabric:mq-create --group brokergroup1 --data /jboss/fuse/amqshared/amqchild01_root3 --assign-container amqchild01_root3 broker1

Got error like this when trying to connect to Oracle DB using ojdbc14.jar

java.lang.ArrayIndexOutOfBoundsException: -1 at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:972)

It is because of security policy of JRE, I have to change the policy by editing java.policy file

When trying to preview a source/view model, the data source is not created with error:

org.teiid.runtime.client.TeiidClientException: java.lang.RuntimeException: 
Remote org.teiid.api.exception.query.QueryPlannerException: TEIID30498 Capabilities for SOURCE_MODEL_NAME were not avaialable.  
The command could not be planned properly.

and found in the Teiid log something like:

unixODBC is a ODBC implementation for non MS Windows platforms

unixODBC Installation

________________________________________________________________________________
| ejlp12 @ ejlp-macbook:~
| => brew install unixodbc
==> Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.2_1.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring unixodbc-2.3.2_1.yosemite.bottle.1.tar.gz
cat > Advertize.sh << __EOF__
#!/bin/bash
if [ ! -f "Advertize.class" ]
then
  curl https://raw.githubusercontent.com/modcluster/mod_cluster/master/test/java/Advertize.java > Advertize.java
  javac Advertize.java
fi
java Advertize 224.0.1.105 23364
__EOF__
@ejlp12
ejlp12 / EA_JBoss_EAP_JavaEE_WebApp_Simple_Example.md
Last active November 23, 2015 03:54
Create a simple Java EE Web App Sample and deploy to JBoss cluster

Create simple Java EE Web Application Maven project in directory ~/playground/

cd ~/playground

mvn archetype:generate -DgroupId=ejlp12.jee6 \
 -DartifactId=HelloWebApp \
 -DarchetypeArtifactId=maven-archetype-webapp \
 -DinteractiveMode=false \
 -Dmaven.repo.remote=https://repository.apache.org/content/groups/public/

Demo AMQP dengan menggunakan JBoss A-MQ 6.2

Tambahakan baris berikut di file etc/activemq.xml

<transportConnector name="amqp" uri="amqp://0.0.0.0:5672"/>

atau

@ejlp12
ejlp12 / EA_JBoss_Fuse_6.X_Port_List.md
Last active November 25, 2015 04:42
JBoss EAP Port List
Usage                               Port range
----------------------------------- ------------------
ActiveMQ                            61600 – 61700
RMI registry                        1000 – 1400
RMI server                          44444 – 65535
SSH                                 8100 – 8180
Fuse Management Console + Jolokia   8181 – 8582
Zookeeper                           2181 – 2200
Fabric server 2888 – 3888

JBoss EAP Web Service Quickstart

Demontrating SOAP web service application using JAX-WS (Java EE6).

FYI: I'm using JBoss EAP 6.4.3, Java 1.8. Maven and Git should be also installed.

Clone the quickstart project, I cloned the 6.4.x branch:

git clone -b 6.4.x --single-branch https://github.com/jboss-developer/jboss-eap-quickstarts.git