InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 2. |
What’s The Difference Between A Tar File And A War File? |
Answer»
|
|
| 3. |
What Is A .war, .ear Or A .jar File?? |
Answer»
|
|
| 4. |
What Is The Directory Structure In Jboss? |
|
Answer» The following directories are available after JBoss is installed. The following directories are available after JBoss is installed. |
|
| 5. |
What Are The Logging Levels Available? |
|
Answer» There is five POSSIBLE level: There is five possible level: |
|
| 6. |
Which Component Is Responsible For Handling Clustering? |
|
Answer» JBOSS clustering is on top of JGroups toolkit which helps to create, delete, membership DETECTION, NOTIFICATION, etc. in the cluster. JBoss clustering is on top of JGroups toolkit which helps to create, delete, membership detection, notification, etc. in the cluster. |
|
| 7. |
How To Install Jboss On Linux Server? |
|
Answer» JBoss installation is very STRAIGHTFORWARD. You need to download the desired version from JBoss official download PAGE in zip or gz format. Once downloaded, just extract the file to the location you WANT to INSTALL. If you downloaded zip format, then you can use unzip command to extract it. unzip jboss-as-7.1.1.Final.zip JBoss installation is very straightforward. You need to download the desired version from JBoss official download page in zip or gz format. Once downloaded, just extract the file to the location you want to install. If you downloaded zip format, then you can use unzip command to extract it. unzip jboss-as-7.1.1.Final.zip |
|
| 8. |
What’s The Default Port To Access Administration Console In Jboss 7? |
|
Answer» 9990 is the DEFAULT PORT. If it’s installed on SERVER1 then you NEED to access like: 9990 is the default port. If it’s installed on server1 then you need to access like: |
|
| 9. |
What Must Be Done To Access Admin Console? |
|
Answer» The USER must be created under “ManagementRealm” to have console OPERATIONAL. To CREATE the user, you can go to bin folder and EXECUTE add-user.sh script. The user must be created under “ManagementRealm” to have console operational. To create the user, you can go to bin folder and execute add-user.sh script. |
|
| 10. |
How To Start Jboss In Standalone Mode? |
|
Answer» GO to BIN folder where JBOSS is installed and start with the FOLLOWING COMMAND. ./standalone.sh Go to bin folder where JBoss is installed and start with the following command. ./standalone.sh |
|
| 11. |
How To Increase Java Heap Memory In Jboss 7? |
|
Answer» Heap Memory can be INCREASED in a respective conf file. To increase memory for STANDALONE;
In a similar WAY, you can adjust the memory for a domain in domain.conf file Heap Memory can be increased in a respective conf file. To increase memory for standalone; In a similar way, you can adjust the memory for a domain in domain.conf file |
|
| 12. |
What Is The Difference Between Standalone And Domain Mode? |
| Answer» | |
| 13. |
Can You Create A Cluster In Standalone Mode? |
|
Answer» Yes, CLUSTERING is POSSIBLE in STANDALONE mode. However, an application MUST be deployed on each server/JVM in standalone mode. Yes, clustering is possible in standalone mode. However, an application must be deployed on each server/JVM in standalone mode. |
|
| 14. |
What Is Difference Between <validate-on-match> And <background-validation>? |
Answer»
|
|
| 15. |
What Module Needed To Integrate Apache With Jboss? |
|
Answer» There are two MODULES you can use to connect JBOSS with APACHE.
There are two modules you can use to connect JBoss with Apache. |
|
| 16. |
What Are The File Types You Can Deploy In Jboss? |
|
Answer» You can deploy almost any kind of JAVA/J2EE application, and it SUPPORTS the following file FORMAT.
You can deploy almost any kind of Java/J2EE application, and it supports the following file format. |
|
| 17. |
How Can You Deploy An Application? |
|
Answer» There are three POSSIBLE ways to deploy an application in JBoss application server.
There are three possible ways to deploy an application in JBoss application server. |
|
| 18. |
What Marker File Type Is Required To Instruct Jboss To Deploy? |
|
Answer» .dodeploy FILE SUFFIX is NEEDED for JBOSS to DEPLOY or redeploy an application. .dodeploy file suffix is needed for JBoss to deploy or redeploy an application. |
|
| 19. |
What Are The Important Types Available For Marker File Deployment? |
Answer»
|
|
| 20. |
What Does Mgmt-user.properties Contain? |
|
Answer» All ADMIN CONSOLE USERS and password (ENCRYPTED) are STORED in mgmt.-user.properties file. All admin console users and password (encrypted) are stored in mgmt.-user.properties file. |
|
| 21. |
How Do You Deploy An Application To Jboss? |
|
Answer» Choose the server profile to which you want to DEPLOY the APPLICATION
Choose the server profile to which you want to deploy the application |
|
| 22. |
What Is Jboss Eap? |
|
Answer» JBoss Enterprise Application PLATFORM is an OPEN source IMPLEMENTATION of the Java EE suite of SERVICES JBoss Enterprise Application Platform is an open source implementation of the Java EE suite of services |
|
| 23. |
How Do You Enable/disable A Hot Deployment? |
Answer»
|
|
| 24. |
How Do You Perform A Hot Deployment? |
|
Answer» JBoss has a built-in hot DEPLOYER which can:
JBoss has a built-in hot deployer which can: |
|
| 25. |
Is It True That Seam Only Works With Jsf? |
|
Answer» Seam only supports JSF as a view framework at this time. We plan to support other web frameworks in the future. We like JSF because it is a component-based UI framework, which fits REALLY WELL with Seam’s component-based approach to business OBJECTS and persistence objects. Seam made a MAJOR improvement to JSF by eliminating almost all XML configuration for backing beans — you can now DEFINE back beans from POJOs or EJB3 components using simple annotations. We recommend you use Facelets, instead of JSP, with JSF. Facelets provide a powerful templating framework, better appplication performance, and allows us to write much simpler JSF pages. Please see the Seam booking example application for an example on how to use Facelets. Seam only supports JSF as a view framework at this time. We plan to support other web frameworks in the future. We like JSF because it is a component-based UI framework, which fits really well with Seam’s component-based approach to business objects and persistence objects. Seam made a major improvement to JSF by eliminating almost all XML configuration for backing beans — you can now define back beans from POJOs or EJB3 components using simple annotations. We recommend you use Facelets, instead of JSP, with JSF. Facelets provide a powerful templating framework, better appplication performance, and allows us to write much simpler JSF pages. Please see the Seam booking example application for an example on how to use Facelets. |
|
| 26. |
What Version Of Jboss As Do I Need To Run Seam? |
|
Answer» For Seam 1.3: Seam was developed against JBoss 4.2. Seam can still be run against JBoss 4.0. The seam documentation CONTAINS instructions for configuring JBoss 4.0. For Seam 1.2: Since Seam requires the latest EDITION of EJB3, you need to INSTALL JBoss AS from the latest JEMS installer. Make sure that you select the “ejb3” or “ejb3+clustering” profile to include EJB3 support. Also, the jboss-seam.jar library file from the Seam distribution must be included in each Seam application you deploy. For Seam 1.3: Seam was developed against JBoss 4.2. Seam can still be run against JBoss 4.0. The seam documentation contains instructions for configuring JBoss 4.0. For Seam 1.2: Since Seam requires the latest edition of EJB3, you need to install JBoss AS from the latest JEMS installer. Make sure that you select the “ejb3” or “ejb3+clustering” profile to include EJB3 support. Also, the jboss-seam.jar library file from the Seam distribution must be included in each Seam application you deploy. |
|
| 27. |
Do You Know How You Could Add Support For Web Service Transactions? |
|
Answer» JBossTS supports Web Services transactions, including extended transaction models designed specifically for loosely-coupled, long running BUSINESS processes. J2EE transactions can integrate seamlessly with Web Services transactions using our INTEGRATED, bi-directional transaction bridge. Interoperability with many other vendors is PROVIDED out-of-the-box and JBoss is an active participant in these STANDARDS. JBossTS supports Web Services transactions, including extended transaction models designed specifically for loosely-coupled, long running business processes. J2EE transactions can integrate seamlessly with Web Services transactions using our integrated, bi-directional transaction bridge. Interoperability with many other vendors is provided out-of-the-box and JBoss is an active participant in these standards. |
|
| 28. |
What Is The Difference Between Jax–ws And Jax-rpc? |
|
Answer» Java API for XML-Based RPC (JAX-RPC) is a LEGACY Web Services Java API, it uses SOAP and HTTP to do RPCs over the network and enables building of Web services and Web applications based on the SOAP 1.1 specification, Java SE 1.4 or lower.JAX-WS 2.0 is the successor to JAX-RPC 1.1. JAX-WS still supports SOAP 1.1 over HTTP 1.1, so interoperability will not be affected. However there are lots of differences:
Java API for XML-Based RPC (JAX-RPC) is a Legacy Web Services Java API, it uses SOAP and HTTP to do RPCs over the network and enables building of Web services and Web applications based on the SOAP 1.1 specification, Java SE 1.4 or lower.JAX-WS 2.0 is the successor to JAX-RPC 1.1. JAX-WS still supports SOAP 1.1 over HTTP 1.1, so interoperability will not be affected. However there are lots of differences: |
|
| 29. |
What Do You Think About Bpel And Bpm ? How Do They Compare? |
Answer»
|
|
| 30. |
How Would You Convince My It Department To Adopt Soa? |
|
Answer» In my opinion one of the biggest obstacle in the movement towards SOA adoption is the organization own IT department.Too many people in the IT organization conceive SOA as a technology concept only, and as such think of SOA as just a set of technologies and infrastructure for exposing, securing, running, and managing Services. Put it this way, SOA is nothing more than Web Services and standardized middleware. The critical flaw in thinking is confusing the technology that sits BENEATH the Services level of abstraction and the mechanism by which Services are accessed with the ARCHITECTURAL approach that aims to decouple the implementation from the consumption and focus on SUSTAINABLE architecture that allows for continuous CHANGE. Successful SOA adoption requires a CULTURAL shift in the way IT is done. The Service-oriented movement to agility and loose coupling demands a shift from traditional, waterfall styles of development (design-build-test-deploy-manage) to iterative approaches to continuous Service modeling In my opinion one of the biggest obstacle in the movement towards SOA adoption is the organization own IT department.Too many people in the IT organization conceive SOA as a technology concept only, and as such think of SOA as just a set of technologies and infrastructure for exposing, securing, running, and managing Services. Put it this way, SOA is nothing more than Web Services and standardized middleware. The critical flaw in thinking is confusing the technology that sits beneath the Services level of abstraction and the mechanism by which Services are accessed with the architectural approach that aims to decouple the implementation from the consumption and focus on sustainable architecture that allows for continuous change. Successful SOA adoption requires a cultural shift in the way IT is done. The Service-oriented movement to agility and loose coupling demands a shift from traditional, waterfall styles of development (design-build-test-deploy-manage) to iterative approaches to continuous Service modeling |
|
| 31. |
Which Jdk Is Needed To Run Seam? |
|
Answer» SEAM only works on JDK 5.0 and above. It uses ANNOTATIONS and other JDK 5.0 FEATURES. Seam only works on JDK 5.0 and above. It uses annotations and other JDK 5.0 features. |
|
| 32. |
Does Seam Run On Other Application Servers Besides Jboss? |
|
Answer» Seam runs BEAUTIFULLY on other APPLICATION servers – just like everything else the HIBERNATE team does, this is not a JBoss-only thing. Seam runs beautifully on other application servers – just like everything else the Hibernate team does, this is not a JBoss-only thing. |
|
| 33. |
What Do You Know About Seam? |
|
Answer» Built on the standards Java SERVER Faces and EJB 3.0, JBoss Seam unifies component and programming models and delivers a consistent and powerful framework for rapid creation of WEB applications with Java EE 5.0. Seam simplifies web application development and enables new functionality that was difficult to IMPLEMENT by hand before, such as stateful conversations, multi-window operation, and HANDLING concurrent fine-grained AJAX requests. Seam also unifies and integrates popular open source technologies like Facelets, Hibernate, iText, and Lucene. Built on the standards Java Server Faces and EJB 3.0, JBoss Seam unifies component and programming models and delivers a consistent and powerful framework for rapid creation of web applications with Java EE 5.0. Seam simplifies web application development and enables new functionality that was difficult to implement by hand before, such as stateful conversations, multi-window operation, and handling concurrent fine-grained AJAX requests. Seam also unifies and integrates popular open source technologies like Facelets, Hibernate, iText, and Lucene. |
|
| 34. |
Is It Possible To Put A Jboss Server Instance Into Multiple Cluster At The Same Time? |
|
Answer» 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. 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. |
|
| 35. |
Which Component Handles Cluster Communication In Jboss? |
|
Answer» 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. 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. |
|
| 36. |
What Optimization Could I Use If The Ejb Container Is The Only Point Of Write Access To The Database? |
|
Answer» You could activate the “COMMIT Option A” that is the CONTAINER caches entity bean state between transactions. This option assumes that the container has EXCLUSIVE access to the persistent store and therefore it doesnt need to SYNCHRONIZE the in-memory bean state from the persistent store at the beginning of each TRANSACTION. You could activate the “Commit Option A” that is the container caches entity bean state between transactions. This option assumes that the container has exclusive access to the persistent store and therefore it doesnt need to synchronize the in-memory bean state from the persistent store at the beginning of each transaction. |
|
| 37. |
What Do You Need To Set-up A Cluster With Jboss? |
|
Answer» Basically starting JBOSS with the CONFIGURATION contains everything needed for clustering: It has all the libraries for clustering:
Basically starting JBoss with the configuration contains everything needed for clustering: It has all the libraries for clustering: |
|
| 38. |
What Is The Difference Between A Local-tx-datasource And A Xa-datasource? Can You Use Transactions In Both? |
|
Answer» A local-tx-datasource identifies a data source that uses transactions, even distributed TRANS actions within the local application SERVER, but doesnt use distributed transactions among MULTIPLE application servers. An xa-datasource on the other hand identifies a data source that uses distributed TRANSACTION among multiple application servers. A local-tx-datasource identifies a data source that uses transactions, even distributed trans actions within the local application server, but doesnt use distributed transactions among multiple application servers. An xa-datasource on the other hand identifies a data source that uses distributed transaction among multiple application servers. |
|
| 39. |
What Are The Differences Between Ejb 3.0 And Ejb 2.0? |
|
Answer» EJBS are now plain old Java objects (POJO) that expose regular business interfaces (POJI), and there is no requirement for HOME interfaces.
EJBs are now plain old Java objects (POJO) that expose regular business interfaces (POJI), and there is no requirement for home interfaces. |
|
| 40. |
What If You Need To Span Your Transaction Across Multiple Servlet Invocations? |
|
Answer» You can’t with a Servlet. A JTA transaction MUST start and FINISH within a single invocation (of the SERVICE() method). You should consider using a Stateful SB. In a SFSB with a JTA transaction, the association between the bean instance and the transaction is retained across multiple client calls. You can’t with a Servlet. A JTA transaction must start and finish within a single invocation (of the service() method). You should consider using a Stateful SB. In a SFSB with a JTA transaction, the association between the bean instance and the transaction is retained across multiple client calls. |
|
| 41. |
How Can You Start A Jta Transaction From A Servlet Deployed On Jboss? |
|
Answer» JBOSS registers in the JNDI tree a JTA UserTransaction Object which can be USER to manage a DISTRIBUTED transaction. JBoss registers in the JNDI tree a JTA UserTransaction Object which can be user to manage a distributed transaction. |
|
| 42. |
Is The Session Factory Thread Safe? |
|
Answer» YES, that is many threads can access it concurrently and request for sessions. It HOLDS cached data that has been READ in one unit of work and may be reused in a future unit of work. Good PRACTICE is to create it when the APPLICATION is initialized. Yes, that is many threads can access it concurrently and request for sessions. It holds cached data that has been read in one unit of work and may be reused in a future unit of work. Good practice is to create it when the application is initialized. |
|
| 43. |
Which Hibernate Object Wraps The Jdbc Connection? |
|
Answer» The Session INTERFACE wraps a JDBC Connection. This interface is a single threaded object which REPRESENTS a single unit of work with application and persistent database. It’s RETRIEVED by the SESSIONFACTORY’s openSession() method The Session interface wraps a JDBC Connection. This interface is a single threaded object which represents a single unit of work with application and persistent database. It’s retrieved by the SessionFactory’s openSession() method |
|
| 44. |
What Is The Difference Between Hibernate And Ejb 3? Do Not You Think Ejb 3 Is Just A Clone Of Hibernate? |
|
Answer» The perception of EJB3 as being a simple clone of Hibernate is PRIMARILY based on developer familiarity with Hibernate and a SIMILARITY of naming, as well as common purpose, and that Hibernate is morphing itself into an EJB3 implementation based on the work going into the specification, not the other way around. EJBs are supposed to be components, in the sense that they’re not just one CLASS, but a set of classes, descriptors and usage and management contracts. All of this in order to ALLOW a container (JBoss, Weblogic, etc.) to provide services to those components, and to be able to reuse and distribute this components. This services are, among others, transactions, concurrent access control, security, instance pooling, etc. Hibernate is “just” an ORM (Object/Relational Mapping) tool. Quick and dirty, this means you can store an object tree belonging to an class hierarchy in a relational DB without writing a single SQL query. Quite cool, IMO. But no transaction control, no instance pooling, no concurrency control, and certainly no security. The perception of EJB3 as being a simple clone of Hibernate is primarily based on developer familiarity with Hibernate and a similarity of naming, as well as common purpose, and that Hibernate is morphing itself into an EJB3 implementation based on the work going into the specification, not the other way around. EJBs are supposed to be components, in the sense that they’re not just one class, but a set of classes, descriptors and usage and management contracts. All of this in order to allow a container (JBoss, Weblogic, etc.) to provide services to those components, and to be able to reuse and distribute this components. This services are, among others, transactions, concurrent access control, security, instance pooling, etc. Hibernate is “just” an ORM (Object/Relational Mapping) tool. Quick and dirty, this means you can store an object tree belonging to an class hierarchy in a relational DB without writing a single SQL query. Quite cool, IMO. But no transaction control, no instance pooling, no concurrency control, and certainly no security. |
|
| 45. |
How Do You Monitor Jboss And Detect The Bottleneck Of An Application? |
|
Answer» Different components of the application are to be measured. This step is to find where the degradation is, whether it is external or internal and where is the application spending all the time. Using Jboss JMX AGENTS and monitoring the deployed components to the application SERVER involves in the first step. After FINDING the most of the time spent by specific components or libraries or most of the resources, one can USE Jprobe a specialized TOOL for examining the single object or the objects loaded in the memory. Different components of the application are to be measured. This step is to find where the degradation is, whether it is external or internal and where is the application spending all the time. Using Jboss JMX agents and monitoring the deployed components to the application server involves in the first step. After finding the most of the time spent by specific components or libraries or most of the resources, one can use Jprobe a specialized tool for examining the single object or the objects loaded in the memory. |
|
| 46. |
What Is Jboss Jbpm? |
|
Answer» JBoss JBPM is a WORKFLOW and BPM engine. Enabling the creation of business PROCESSES that coordinates between people, applications and services is the functionality of BPM engine. The combination of workflow applications development with process design is a feature of JBoss jBPM. The business process is graphically represented to facilitate a STRONG LINK between the business analyst and technical developer. This feature is provided by the JBoss jBPM process designer. JBoss JBPM is a workflow and BPM engine. Enabling the creation of business processes that coordinates between people, applications and services is the functionality of BPM engine. The combination of workflow applications development with process design is a feature of JBoss jBPM. The business process is graphically represented to facilitate a strong link between the business analyst and technical developer. This feature is provided by the JBoss jBPM process designer. |
|
| 47. |
What Is Jboss Cache In Short? |
|
Answer» 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. FULLY transactional features and highly configurable set of options which are to deal with concurrent data access, are provided by JBoss cache in an efficient manner POSSIBLE for the applications. 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. Fully transactional features and highly configurable set of options which are to deal with concurrent data access, are provided by JBoss cache in an efficient manner possible for the applications. |
|