Copy jboss-eap-6.2.0.zip and unzip the file in that directory. You might as well want to change the group permissions:
chmod -R g-w jboss-eap-6.2
I have also had consistently good results with using the installer:
java -jar ~/Downloads/jboss-eap-6.2.0-installer.jarThe installer also gives you the nice option to configure standard and administrative ports at a convenient offset (e.g. +1, +2 or +100) At any rate, following the above, cd into the jboss-eap-6.2 directory for the subsequent instructions.
cp standalone/configuration/standalone-full.xml standalone/configuration/standalone-full-original.xml
./bin/add-user.sh… and go with the flow.
For datasources which roll-over, add the following parameter:
I used something along the below lines to configure a Sybase datasource (yes, that zombie just won't die)
This is only for reasons of backwards compatibility if you wish to change some names and at the same time allow old code to continue using the old names.
In such a case, you can add the following to the naming subsystems:
I've verified that with the above, you can use the below code to obtain a datasource (from a Web application) using e.g. either java:jboss/datasources/someNameB or java:/someName.
InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new RuntimeException("Uh oh -- no context!"); } DataSource ds = (DataSource) cxt.lookup( "java:jboss/datasources/someNameB" ); // you can use "java:/someName" as well
mkdir -p modules/com/sybase/main
… subsequently, copy jconn4.jar in there.
Following that, create a file module.xml with the below content:
I've also had success in using the open-source JTDS driver instead (jtds-1.3.1.jar).
Add the following in subsystem urn:jboss:domain:web:1.5 after <connector... />:
NB: access logging is buffered and writes the access logs in chunks.
If you're that kind of person you might wish to further customize logging in urn:jboss:domain:logging:1.3:
I have done a more thorough writeup specifically on logging here.
./bin/standalone.sh -c standalone-full.xml >& /dev/null &