What is JBoss?
– JBoss is a popular open source application server based on Java EE technology. Being Java EE
based, the JBoss supports cross-platform java applications.
What is jboss EAP?
– JBoss Enterprise Application Platform is an open source implementation of the Java EE suite of
services.
How do you deploy an application to JBoss?
– Choose the server profile to which you want to deploy the application.
Copy your application (for example: .war or .ear or a .jar file) to
JBOSS_HOME/server/<profilename>/deploy folder.
Start the server.
JBoss will deploy your application when it boots up.
How do you perform a hot deployment?
– JBoss has a built-in hot deployer which can:
o Detect new applications in the deploy folder and trigger an application deployment
o Detect an application which was removed from the deploy folder and trigger an application
undeployment
o Detect that the deployment descriptor of an application (for example, the web.xml of .war or
application.xml of .ear) has changed and trigger an application redeployment
How do you enable/disable a hot deployment?
– To enable, put file hdscanner-jboss-beans.xml in JBOSS_HOME/server/<profilename>/deploy
– To disable hot deployment, remove the hdscanner-jboss-beans. xml from the deploy folder or
rename it to hdscanner-jbossbeans. xml.bak (.bak files are ignored).
How can you configure the time for the hot deployer?
– “scanPeriod” in hdscanner-jboss-beans.xml
How do you setup JBoss cluster??
– Getting started with JBoss clustering is very simple. If two JBoss server instances using the all
configuration are started on the same network, those servers will detect each other and automatically
form a cluster.
– Two application servers running on the same network detect each other auto and form cluster.
What are needed to set-up a cluster with JBoss ?
– Basically starting JBoss with the \'all\' configuration contains everything needed for clustering:
Which component handles cluster communication in JBoss?
– The JGroups framework provides services to enable peer-to-peer communications between
nodes in a cluster. It is built on top a stack of network communication protocols that provide transport,
discovery, reliability and failure detection, and cluster membership management services.
What do you check if you are having problems starting up JBoss?
– First thing to check is whether JAVA_HOME variable is set, then check the server logs.
How do you monitor JBoss and detect the bottleneck of an application?
– The first step is to measure the different components of your app to see where the degradation
is. Is it an external resource (database, message server, etc.)? Is it internal? Where is the app spending
all its time?
So the first step could be to to use JBoss JMX agents and monitor the components deployed to the
application server. Once it\'s clear which component or library takes most of the time or most of
resource you can use a more specialized tool like JProbe and examine the single method or the single
objects loaded in memory.
Is it possible to put a JBoss server instance into multiple cluster at the same time?
– It is technically possible to put a JBoss server instance into multiple clusters at the same time, this
practice is generally not recommended, as it increases the management complexity.
What is JBoss cache in short?
– JBoss cache is a product. Frequently accessed Java objects are cached by utilzing JBoss cache to
improve the performance of e-business applications. JBoss decreases the network traffic and increases
the scalability of applications by eliminating unnecessary database access.