Skip to content

Instantly share code, notes, and snippets.

EJLP ejlp12

Block or report user

Report or block ejlp12

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ejlp12
ejlp12 / gist:a85634d78eec3eed55ce
Last active Sep 4, 2015
BPMN LAB Resources (Philippine Workshop 13-14 Apr 2015)
View gist:a85634d78eec3eed55ce
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.
View fuse
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
View EA_Oracle_JDBC_Connection_Error.md

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

View JDV_Teiid PREVIEW Data Source is not available.md

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:

View EA_ODBC_on_Mac OS.md

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
View mod_cluster Advertise test.md
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 Nov 23, 2015
Create a simple Java EE Web App Sample and deploy to JBoss cluster
View EA_JBoss_EAP_JavaEE_WebApp_Simple_Example.md

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/
View JBoss_A-MQ_AMQP_Demo.md

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

View EA_JBoss_Fuse_6.X_Port_List.md
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
View EA_JBoss_EAP_WebService_Quickstart.md

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
You can’t perform that action at this time.