JBPM is a flexible business process management that stands as a bridge between developers and business analysts. Both the Java developers and business analysts who are going to seek job profile in the companies that work on Java platform needs to have a sound knowledge of JBPM. Here are some JBPM interview questions and answers at wisdomjobs.com portal to help to gain the subject knowledge before you attend the interview. Going through these job interview questions and answers as a part of your interview preparation will help you stand out from the crowd in the competition. The well-researched JBPM interview questions and answers at wisdom jobs.com will give you information on the skill set you need to polish on to become a preferred choice for the employer.
Answer :
BPM stands for Business Process Management. There are 2 different aspects of BPM: BPM as management discipline and BPM as software engineering. The BPM vendors have long time tried to make abstraction of those 2 distinct aspects. That path lead to more confusion then anything else.BPM as a management discipline is the responsibility of every strategic executive manager. It’s to ensure that the organization performs well in their core business processes. This involves understanding what values the organization delivers and how those are achieved. This means analyzing, documenting and improving the way that people and systems work together. As part of that work, it’s useful to work with models and diagrams. BPMN diagrams express the execution flow of the steps to accomplish a certain goal. Important to note that these models are used for people to people communication. They can be underspecified, which means that they can contain valuable high level information without including unnecessary details. Such underspecified process models are also known as abstract business processes.
Answer :
jBPM is a flexible Business Process Management (BPM) Suite. It makes the bridge between business analysts and developers. Traditional BPM engines have a focus that is limited to non-technical people only. JBPM has a dual focus: it offers process management features in a way that both business users and developers like it.
Question 3. What Does Jbpm Do?
Answer :
This business process allows you to model your business goals by describing the steps that need to be executed to achieve that goal and the order, using a flow chart. This greatly improves the visibility and agility of your business logic, results in higher-level and domain-specific representations that can be understood by business users and is easier to monitor.The core of jBPM is a light-weight, extensible workflow engine written in pure Java that allows you to execute business processes using the latest BPMN 2.0 specification. It can run in any Java environment, embedded in your application or as a service.
Question 4. Mention The Main Features Of Jbpm5?
Answer :
Question 5. What Are The Advantages Of Jbpm5?
Answer :
jBPM5 provides a different computational model for business process and rule. This model is based on a knowledge-oriented approach, where the application is not process-oriented or rules-oriented, but the end users can simply select between different paradigms to represent their business logic. All tools and interfaces the user is confronted with support this idea of a unified environment throughout the entire knowledge life cycle.
Answer :
The jBPM GPD is an eclipse plugin that targets usage by multiple roles. Both the business analyst and developer are able to use the same tool in different ways. The main reason why we think it is important to integrate those two in one single environment is because in many teams, these two roles are done by one person. Then it becomes very important that the tool can support both roles and gradually shift from being a diagramming tool to an implementation tool.
Question 7. What Is A Rule Engine?
Answer :
A rule engine may be viewed as a sophisticated if/then statement interpreter. The if/then statements that are interpreted are called rules.
Question 8. What Are The Advantages Of Rule Engine?
Answer :
Advantages of Rule Engines:
Greater flexibility: keeping your rules into a Knowledge base let you adapt easily your decisions when they are changing.
Easier to grasp: Rules are easier to understand than procedural code so they can be effectively used to bridge the gap between business analyst and developers.
Reduced complexity: When embedding lots of decision points to your procedural codes it can easily turn your application into a nightmare. On the other hand rules can handle much better increasing complexity because they use a consistent representation of business rules.
Reusability: By keeping rules are kept in one place leads to a greater reusability of your business rules. Also, traditional procedural code often impose unnecessary variations of base rules which are therefore more difficult to reuse in other contexts.
Question 9. What Is Global In Drl File?
Answer :
Global is the keyword used in drools to define a global variable. Global variable is the one which will be visible to all the rules inside a DRL file.
Globals must be used very carefully in a DRL file, since the changes in a global variable are not notified to the working memory. For example, you are using a list variable as a global and in any rule you are adding a value in a list and in one particular rule, you are checking if list size() > 0, then in this case rule may not fire. Global variable can be used for any type of object.
Question 10. Where To Use Global Variable?
Answer :
Consider a scenario, where in the rules there is a requirement for database connection object. In this case, the DB Connection object can be inserted as a global variable in the working memory and the connection object will be visible to all the rules in that DRL file.
Question 11. What Are Needed To Set-up A Cluster With Jboss ?
Answer :
Basically starting JBoss with the ’all’ configuration contains everything needed for clustering:
It has all the libraries for clustering:
Question 12. 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.
Question 13. 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.
Question 14. What Is Jboss Cache In Short?
Answer :
JBossCache enables easy distribution of datasets across your computing environments. It is based on JGroups and enables clustering and high availability of that data. You may choose to distribute the data with JBoss Messaging to move it where it is needed for computation or event-based programming.
Question 15. How Do You Monitor Jboss And Detect The Bottleneck Of An Application?
Answer :
Answer :
Java Transaction API (JTA) specifies standard Java interfaces between a transaction manager and the parties involved in a distributed transaction system: the resource manager, the application server, and the transactional applications.
The Javaâ„¢ Transaction API (JTA) allows applications to perform distributed transactions, that is, transactions that access and update data on two or more networked computer resources.
The Java Transaction API consists of three elements: a high-level application transaction demarcation interface, a high-level transaction manager interface intended for an application server, and a standard Java mapping of the X/Open XA protocol intended for a transactional resource manager.
Answer :
Hibernat 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.
Question 18. 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.
Question 19. Is The Session Factory Thread Safe?
Answer :
Yes: that is many threads can access it cuncurrentely 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.
Question 20. 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.
Question 21. 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.
Question 22. What Are The Differences Between Ejb 3.0 And Ejb 2.0?
Answer :
Answer :
A local-tx-datasource identifies a data source that uses transactions, even distributed trans actions within the local application server, but doesn’t use distributed transactions among multiple application servers. An xa-datasource on the other hand identifies a data source that uses distributed transaction among multi-ple application servers.
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 persistentstore and therefore it doesn’t need to synchronize the in-memory bean state from the persistent store at the beginning of each transaction.
Question 25. What Do You Know About Seam?
Answer :
Built on the standards JavaServer 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.
Question 26. 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.
Question 27. 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.
Question 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:
Question 29. 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.
Question 30. 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. Refer to examples in Seam distribution (inside the examples directory) to see how to build and package Seam applications.
Question 31. Can I Run Seam In A J2ee Environment?
Answer :
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.
Question 32. Can I Run Seam With Jdk 1.4 And Earlier?
Answer :
No, Seam only works on JDK 5.0 and above. It uses annotations and other JDK 5.0 features.
Question 33. Where Can I Find Seam Examples And Documentation?
Answer :
The source code and build script of all Seam example applications are included in the examples directory of the Seam distribution.
Question 34. 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 application performance, and allows us to write much simpler JSF pages.
Question 35. Can I Use Ajax With Seam?
Answer :
Yes, Seam provides excellent support for AJAX. First, Seam supports the ICEfaces and Ajax4JSF Ajax component libraries for JSF. If you prefer a more “old fashioned” approach, Seam provides a complete JavaScript remoting framework which lets you call Seam components and subscribe to JMS topics directly from the client. Please refer to the Seam remoting example application on how to use AJAX remoting to implement a chat room.
Question 36. Can I Unit Test Seam Applications Without Starting The Application Server?
Answer :
Yes, Seam provides its own integration test framework based on TestNG. You can easily mock all Seam services using those facilities without ever loading an application server or a database. Refer to the test example ANT target in the Seam booking example application for more details.
Answer :
Drools is a Business Rules Management System (BRMS) solution. It provides a core Business Rules Engine (BRE), a web authoring and rules management application (Drools Workbench) and an Eclipse IDE plugin for core development.
Answer :
The jBPM GPD is an eclipse plugin that targets usage by multiple roles. Both the business analyst and developer are able to use the same tool in different ways. The main reason why we think it is important to integrate those two in one single environment is because in many teams, these two roles are done by one person. Then it becomes very important that the tool can support both roles and gradually shift from being a diagramming tool to an implementation tool.
Question 39. Explain The Difference Between Stringbuilder And Stringbuffer Class?
Answer :
StringBuilder is unsynchronized whereas StringBuffer is synchronized. So when the application needs to be run only in a single thread then it is better to use StringBuilder. StringBuilder is more efficient than StringBuffer.
jBPM Related Tutorials |
|
---|---|
Core Java Tutorial | JDBC Tutorial |
Java Tutorial | Drools Tutorial |
Java 8 Tutorial | JAVA Persistence API (JPA) Tutorial |
jBPM Related Practice Tests |
|
---|---|
Core Java Practice Tests | JDBC Practice Tests |
JMS(Java Message Service) Practice Tests | Java 8 Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.