Skip to main content

[JBOSS]Installation and running

JBoss is an Application Server, which is support fully JEE (known as formally J2EE) specifications. It support EJB2/3, JSP/Servlet, JMS, JSF and other Java Enterprise Environment technologies. Other Application servers are WebLogic(Oracle), WebSphere(IBM), GlassFish(Oracel) and so on.

At this time I am writing, you can download JBOSS stable version and latest versions from the following site:


I downloaded JBoss 6.0.0 Final (stable version). Latest version 7.0.0.Beta3 at the moment.

And then upzip the downloaded file under c drive(Any folder you want) and then you will get the C:\jboss-6.0.0.Final directory. You can see several folders under it. Web root directory is install_dir/server/default and you can find install_dir/server/default/ROOT.war. When you goto http://localhost:8080, JBoos will display install_dir/server/default/ROOT.war/index.html.

Main directories in JBoss are like following:

  • bin: contains startup and shutdown and other system-specific scripts. 
  • client: stores configuration and JAR files which may be needed by a Java client application or an external web containor. You can select archives as required or use jbossall-client.jar
  • docs: contains the XML DTDs used in JBoss for reference (these are also a useful source of documentation on JBoss configuration specifics). There are other examples.
  • lib: JAR files which are needed to run the JBoss microkernel. Do not add your own JAR files here.
  • server: web root directory. Each of the subdirectories in here is a different server configuration. This configuration is selected by passing -c <config-name> to the run script.

In the index page, you can visit admin page clicking link or http://localhost:8080/admin-console/login.seam. Default admin id and password is admin.

Comments

Popular posts from this blog

Apply Kotlin DataBinding to Android Studio Generated Main Activity

I posted how to setup Kotlin and DataBinding in Android Stuido in the last blog (http://marksunghunpark.blogspot.com.au/2017/04/kotlin-binding-library-setup-in-android.html). In this post, I am going to how to use DataBiding in the MainActivity when you create a navigation drawer project from Android Studio templates. Layouts You will have four layouts in app/src/res/layout folder: app/src/main/res/layout/activity_main.xml app/src/main/res/layout/app_bar_main.xml app/src/main/res/layout/content_main.xml app/src/main/res/layout/nav_header_main.xml And activity_main.xml contains all other layout using include layout. You need to have tag in activity_main.xml , app_bar_main.xml and content_main.xml . If you don't have the tag, Binding library cannot recognise the sub layouts properly. Binding library doesn't support toolbar and navigation drawer yet, so you can use using BindingAdapter if you want to use binding library.(But I'm gong to skip this part for simplici...

How to test AsyncTask in Android

In Android, test is not as easy as any other platform. Because Android test cannot be run without emulator. Particulary when it comes to AsyncTask or Service, it is difficult to test because they are different type of thread and hard to check their result. Then, how can we ensure the result of AsyncTask valid? AsyncTask is a thread and an asynchnorous as the name means. So, we need to wait for it finishes its job and need to capture the event. Then, when it happens in AsyncTask. It can be one of onBackground() and onPostExecute() methods. It doesn't matter you use onBackground() or onPostExecute() but I prefer onPostExecute(). Anyway, we can test an AsyncTask if we can hook it. Then, how can we hook it? For that, we can use callback pattern. But we need to delay main thread to wait for the AsyncTask's job done because we want to check the result. So the structure for the test would be like: 1. Create AsyncTask A 2. Injection a callback into A 3. Wait until A finish 4....

How to setup Kotlin in Android Studio

Brief about Kotlin What I am impressed in Kotlin is Android Extensions. It enables you to remove boiler plate code of setting views. You have bind your view object by calling findViewbyId() but Kotlin supports it just importing kotlinx.android.synthetic. .* package. Let's have a look at an example: res/layout/login.xml LoginActivity.kt package com.ispark.kotlin.login import kotlinx.android.synthetic.login.* import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.text.TextUtils import android.util.Log import android.widget.TextView import android.widget.Toast import com.ispark.kotlin.R import kotlin.String public class LoginActivity : AppCompatActivity() { private val LOG_TAG: kotlin.String = "LoginActivity" override fun onCreate(savedInstanceState : Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.login) setTitle(R.string.pleaseSignIn) log...