Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JBoss Interview Questions and Answers

Ques 11. Can I run Seam outside of JBoss AS?

Ans. Yes, you can run Seam applications in plain Tomcat 5.5+ or in the Sun GlassFish application server. To run Seam application in Tomcat, you need a number of additional library files and a few configuration files to bootstrap the JBoss EJB3 inside Tomcat. Please refer to the deploy.tomcat ANT build target for the Seam booking example (in the examples/booking directory of the Seam distribution) for more on how to build a Tomcat WAR for Seam applications. Refer to this blog post on how to run Seam in Sunís Glassfish application server.

Is it helpful? Add Comment View Comments
Ques 12. Can I run Seam in a J2EE environment?
Ans. Yes, as of Seam 1.1, you can use Seam in any J2EE application server, with one caveat: you will not be able to use EJB 3.0 session beans. However, you can use either Hibernate or JPA for persistence, and you can use Seam JavaBean components instead of session beans.
Is it helpful? Add Comment View Comments
Ques 13. Can I run Seam with JDK 1.4 and earlier?
Ans. No, Seam only works on JDK 5.0 and above. It uses annotations and other JDK 5.0 features.
Is it helpful? Add Comment View Comments
Ques 14. How to build clusters in JBoss?
Ans. here is a nutshell summary from the example given in the .org quick start:

from your jboss bin directory:
$ ./ -c all -g DocsPartition -u -b -Djboss.messaging.ServerPeerID=1

./ = the executable
-c all = use server in jboss_home/server/all directory
-g DocsPartition = this is the partition name, use whatever but should be the same across nodes
-u = this is the multicast address, ususally just pick anything in the 239.255.x.y range and you should be ok
-b = this is the ip of the machine the node is on
-Djboss.messaging.ServerPeerID=1 = this is the peerid, it must be unique for each node,

so the start script that you would run on your second machine for the second node would look like:
$ ./ -c all-node2 -g DocsPartition -u -b -Djboss.messaging.ServerPeerID=2

you can also use nohup to send the process to the background...

now that both nodes should be running, you have to enable and configure the sticky sessions on thw webserver and each server.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2020 WithoutBook