Skip to content

Instantly share code, notes, and snippets.

View ejlp12's full-sized avatar

EJLP ejlp12

  • Indonesia
View GitHub Profile
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/
@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

JBoss EAP REST Quickstart

Mendemonstrasikan sebuah aplikasi REST web service yang dibuat menggunakan JAX-RS (Java EE6).

Sebagai informasi, saya menggunakan JBoss EAP 6.4.3, Java 1.8. Maven dan Git juga sudah harus terinstal..

Clone Quickstart Project

Jika belum melakukan cloning project di github berikut maka lakukan dulu langkah berikut, jika sudah anda bisa lanjut langsung ke langkah berikutnya [Observasi source code]

@ejlp12
ejlp12 / install_maven.sh
Last active December 23, 2022 14:37
Install Maven Script
JAVA_VERSION=1.8
MAVEN_DIR=`pwd`/maven
MAVEN_FILE=apache-maven-3.3.9-bin.tar.gz
MAVEN_URL=http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
printf "Checking JRE..\n"
JRE_VERSION=`java -version 2>&1 >/dev/null |grep "1.8" |grep $JAVA_VERSION`
if [ -n "$JRE_VERSION" ]; then
printf "Installed: $JRE_VERSION\n"
else

Install JBoss EWS HTTP Server + mod_cluster

INSTALL_FILE=jboss-ews-httpd-2.1.0-RHEL7-x86_64.zip
EWS_VERSION=2.1
INSTALL_DIR=/jboss
HTTPD_HOME=/jboss/httpd
WEBSERVER_CONNECTOR_FILE=jboss-eap-native-webserver-connectors-6.4.0-RHEL7-x86_64.zip
JBOSS_HOME=/jboss/jboss-eap-6.4
@ejlp12
ejlp12 / EA_JBoss_Trying_Windup.md
Last active December 11, 2015 09:48
JBoss Windup

Trying Windup (a JBoss migration tool)

unzip jboss-migrationtoolkit-windup-2.4.0.GA.zip
cd jboss-migrationtoolkit-windup-2.4.0.GA/bin
./windup --updateRuleset

Hercules - the Mainframe Emulator

Hercules is an open source software implementation of the mainframe System/370 and ESA/390 architectures, in addition to the new 64-bit z/Architecture.

Website: http://www.hercules-390.org/

My system info:

uname -a
Darwin ejlp-macbook 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
@ejlp12
ejlp12 / EA_JBoss_JDV_Excel_DS.md
Last active December 3, 2015 23:21
Connect to MS Excel File as Datasource in JDV/Teiid