YouTube Icon

Interview Questions.

Top 100+ Java Ee Connector Architecture (jca) Interview Questions And Answers - May 31, 2020

fluid

Top 100+ Java Ee Connector Architecture (jca) Interview Questions And Answers

Question 1. How Jca And J2ee Compare To Eai Products?

Answer :

With that background in thoughts, let's bear in mind how the modern-day version of the JCA specification -- in addition to J2EE in popular -- degree as much as a number of the features found in EAI companies' merchandise.

Many EAI vendors, Vitria and Tibco for example, have both announced JCA support, or are in the procedure of liberating merchandise that comprise JCA-based adapters. Because the JCA 1.Zero specification turned into finalized in July 2001, don't assume JCA in its preliminary launch to healthy feature for function to an EAI seller's product, nor is that the purpose. (Many functions of the J2EE platform additionally examine to functions in many EAI products.)

Question 2. What Is Resource Adapters In Jca?

Answer :

Most EAI vendors consist of proprietary adapters built to paintings with their products. Most proprietary adapters allow for synchronous and asynchronous conversation to an EIS. JCA adapters closely resemble the ones adapters, besides JCA adapters consist of best a synchronous verbal exchange channel. Resource adapters constitute the EAI feature JCA most without delay matches, even though most EAI providers' adapters provide a larger function set (for example asynchronous capability) than JCA adapters.

Adv Java Interview Questions
Question 3. What Is Data Mapping?

Answer :

With the subsequent EAI function -- statistics mapping -- facts obtained in a single layout (for example inside the EIS's local format) through the resource adapter need to be converted into the format required for the enterprise item. Mapping statistics from one gadget to any other often proves the most time consuming issue of gadget integration because you must map every business object in both systems. In response, most EAI providers provide visible tools to enable a developer to set up such mapping.

Question 4. What Is Message Broker?

Answer :

Messaging agents, some other feature not unusual to many EAI merchandise, commonly permit both point-to-point and put up/subscribe messaging. EAI merchandise frequently hire messaging because the connectivity layer to tie collectively disparate structures.

Currently JCA does no longer address connectivity to an EIS in a message-orientated manner. It is feasible, however, to put in force a number of a message dealer's characteristic set in an EAI product by using JMS (Java Messaging Service), that's part of J2EE.

Adv Java Tutorial
Question five. What Is Workflow?

Answer :

Workflow is the management of business tactics. Think of workflow as a coordinator. In and of itself, workflow lacks the functionality to do anything, however alternatively relies on commercial enterprise items, messages, and different external entities to perform functionality (as an instance developing a user object in a database). Workflow coordinates the usage of business objects, messages, and so forth to carry out enterprise processes.

JCA does not cope with workflow. However, search for something inside the J2EE arena to address workflow, because it serves as an vital factor whilst growing a complicated device.

Having mentioned how JCA (and J2EE) examine with EAI tools, it is now essential to have a look at how JCA suits into an usual integration method.

J2EE Interview Questions
Question 6. What Is Jca And A General Integration Strategy?

Answer :

These days, many structures ought to combine with other systems. We describe diverse integration sorts and where JCA suits into them. Integration falls into two essential buckets:

Inbound integration: out of doors systems initiate statistics requests to your gadget.
Outbound integration: your gadget initiates statistics requests to other systems.
All of the subsequent integration kinds can be implemented in each an inbound and an outbound manner.

Question 7. What Is User Interface Integration?

Answer :

User interface (UI) integration represents the maximum coarse-grain form of integration. UI-level integration means that the data passed between systems will exist within the form of a UI representation. An outbound integration at the UI level entails requesting the UI (maximum probably a Webpage) from a far flung device, then possibly manipulating it before displaying it as if it had been part of your system's UI. An inbound integration at the UI stage includes allowing an outside machine to request UI pages in your gadget for inclusion on a far flung machine.

Prefer UI integration over other options whilst it is unimportant to differentiate the facts type being retrieved. UI integration regularly calls for the least attempt to enforce.

J2EE Tutorial Core Java Interview Questions
Question eight. What Is Message Integration?

Answer :

Message-degree integration, all of the rage with the arrival of Web offerings, implies that the statistics handed among systems can be within the form of a message (a defined, facts-driven textual content format). An outbound message integration entails requesting information from a far off gadget in a message shape (most probably a SOAP (Simple Object Access Protocol) message). With an inbound integration, your gadget receives a request for data through a message and responds with a message.

Message-oriented integration lends itself to loose coupling between structures due to the fact the structures continue to be blind to the item kinds that exist at the far off gadget. That sort of unfastened coupling works nicely with applications that wish to speak over the Internet.

Question 9. What Is Object/rpc Integration?

Answer :

Object/RPC (remote method call) integration implies integrating systems the use of dispensed objects (this is, the usage of EJB calls to integrate). With object-stage integration, statistics passes among systems as parameters to method calls. In an outbound object-degree integration, your gadget invokes items on far flung structures, even as in an inbound object-degree integration, a remote system calls items for your machine to retrieve information.

One of an item-level integration's essential benefits is that you could name special APIs with full kind safety and easily propagate the mistake codes and exceptions between structures.

JSP Interview Questions
Question 10. What Is Data Integration?

Answer :

Lastly, data-degree integration means that the data handed among systems may be in a facts/report-orientated way. In an outbound records-stage integration, your system requests records in a document-oriented style from other structures. With an inbound statistics-stage integration, a far flung gadget requests records from your device in a record-oriented manner.

The advantage of a facts degree integration: it lends itself to information mapping from one machine onto the commercial enterprise items in some other gadget. JCA falls into the information-stage integration class and consequently has the strengths and weaknesses of this integration kind.

Now that we have blanketed in which JCA suits into the general integration puzzle, we are geared up to speak about the JCA's structure.

Core Java Tutorial
Question 11. What Is Jca's Structure?

Answer :

JCA evaluate: Its predominant additives consist of the resource adapter, machine contracts, and the Common Client Interface (CCI), which together deliver JCA the energy to get right of entry to information in organization systems.

Java-Springs Interview Questions
Question 12. What Is Resource Adapter?

Answer :

In order to apply JCA in a J2EE box, you first need to have a JCA aid adapter, which resembles a JDBC motive force. A JCA adapter is specific to an EIS (for instance SAP or PeopleSoft) and is contained in a Resource Adapter Archive (RAR) record composed of the jar files and native libraries important to deploy the aid adapter on a J2EE box. A JCA adapter interacts with a J2EE server with gadget contracts. They allow the J2EE server to propagate the context wherein a JCA adapter is being called.

You'll locate 3 kinds of system contracts:

Connection management
Transaction control
Security
Adv Java Interview Questions
Question 13. What Is Connection Management Contracts?

Answer :

The connection management contract describes the understanding a J2EE field has with the adapter concerning establishing, pooling, and tearing down connections. The connection control agreement additionally allows listeners created on a connection to respond to occasions (for example if the connection will become misplaced or reports an errors). Also notice that the underlying protocol an adapter makes use of to hook up with an EIS is out of doors the scope of the JCA specification.

All JCA resource adapters need to deliver  implementations with the adapter. First, a ConnectionFactor affords a vehicle for growing connections. Second, the Connection magnificence represents this specific aid adapter's underlying connection.

JSP Tutorial
Question 14. What Is Transaction Management Contract?

Answer :

The transaction control contract controls transactions in  specific ways. First, it allows dispensed transactions, which give a mechanism to propagate transactions that originate from inside an utility server to an EIS system.

For example: in an EJB, a transaction can be created. If this EJB then employs a JCA useful resource adapter, the transaction management contract permits the transaction to propagate to the EIS (through the utility server invoking the useful resource adapter's X/Open XA interfaces). In that scenario, the transaction supervisor at the utility server would manipulate a couple of sources to conduct distributed transaction coordination (i.E., -phase dedicate).

Second, the transaction management contract can manage transactions by using creating neighborhood transactions. Local transactions are neighborhood within the experience that they exist most effective on a specific EIS resource. The transaction settlement permits those transactions to be managed, however they're related to any transaction that exists at the utility server wherein the JCA resource adapter is going for walks.

Also be aware that the useful resource adapter want no longer put in force the the transaction management settlement. Making this elective permits for aid adapters in non transaction sources.

Question 15. What Is Security Contract?

Answer :

The protection contract allows the utility server to connect to an EIS gadget the usage of protection houses. The software server authenticates with the EIS machine by using using protection houses composed of a precept (a user id) and credentials (a password, a certificates, and so forth). An application server can rent two strategies to authenticate to an EIS device (via a aid adapter). With the first technique, box-managed signal-on, the safety credentials configure when the useful resource adapter is deployed at the software server. You can select from numerous approaches to configure protection homes while the usage of field-controlled signal-on. First, with Configured Identity, all useful resource adapter connections use the equal identification while connecting to the EIS system.

Second, with Principal Mapping, the most important used whilst connecting to the EIS gadget is primarily based on a combination of the contemporary main within the application server and the mapping (which maps how the primary within the software server will map to a major in the EIS system). The 0.33 is Caller Impersonation, wherein the fundamental used inside the EIS machine precisely suits the major in the utility server. The fourth is Credentials Mapping, that's just like Caller Impersonation, except the form of credentials ought to be mapped from application server credentials to EIS credentials.

While it is easiest to configure the security residences at deployment time, this kind of method proves barely less bendy due to the fact the safety homes can not change at runtime. As an opportunity, you may configure security residences by using thing-controlled sign-on, which lets in you to skip protection properties every time a connection is obtained from the useful resource adapter.

JMS(Java Message Service) Interview Questions
Question 16. What Is Cci?

Answer :

To retrieve and replace statistics, you rent JCA's CCI layer, a technique resembling using JDBC to call stored approaches. A JCA aid adapter isn't required to aid the CCI layer (the resource adapter creators can pick their very own API set), and, even though the aid adapter does assist CCI, it could additionally assist an API unique for that unique adapter.

The CCI APIs can be divided into four sections: First, the APIs associated with organising a connection to an EIS, additionally known as the Connection Interfaces. The 2d region of the CCI APIs cover command execution on an EIS, referred to as theInteraction Interfaces. Third is the Record/ResultSet Interfaces,which encapsulate the question results to an EIS. The fourth place, referred to as the Metadata Interfaces, lets in EIS's metadata (the form of data) to be queried.

After this quick overview of the CCI APIs, it's far beneficial to look at an example that indicates the query of an worker matter from an EIS:

intcount; 
strive
 
ConnectionSpec spec =newCciConnectionSpec(user, password);
Connection con = cf.GetConnection(spec);
Interaction ix = con.CreateInteraction(); 
CciInteractionSpec iSpec = new CciInteractionSpec();
iSpec.SetSchema(user); iSpec.SetFunctionName("EMPLOYEECOUNT");
RecordFactory rf =cf.GetRecordFactory(); 
IndexedRecord iRec =rf.CreateIndexedRecord("InputRecord"); 
Record rec =ix.Execute(iSpec, iRec); 
Iterator iter =((IndexedRecord)rec).Iterator();
at the same time as(iter.HasNext())
 
Object obj = iter.Subsequent();
if(obj instanceof Integer)
 
depend = ((Integer)obj).IntValue();
 
 
con.Close(); 
 
seize(Exception e) 
 
e.PrintStackTrace(); 

System.Out.Println("Employee remember is: " + matter);...

Java-Springs Tutorial
Question 17. What Is Limitations Of The Jca 1.0 And Its Future?

Answer :

The JCA, as its single biggest weak spot, lacks an asynchronous communication automobile. As a consequence, pulling records out of an EIS proves sincere, but having an EIS send information (for instance data updates) on your gadget isn't currently in the JCA specification.

In some other major weak spot, the JCA specification lacks a commonplace API for records get admission to. The CCI cited above is optional, so no reliable mechanism exists that a developer can use to get entry to facts the use of JCA (simplest the gadget contracts are guaranteed to be constant).

The excellent news is that most of the modern JCA's barriers may be addressed within the specification's subsequent model, JCA 2.Zero, presently in improvement as JSR (Java Specification Request) 112. Version 2.Zero will deal with asynchronous competencies, JMS integration with JCA, metadata for the CCI layer, and XML use inside the CCI layer.

Java applet Interview Questions
Question 18. What Is Java Ee Connector Architecture (jca) ?

Answer :

(JCA) is a Java-based totally era solution for connecting software servers and enterprise data systems (EIS) as a part of organisation application integration (EAI) answers. While JDBC is particularly used to connect Java EE packages to databases, JCA is a extra generic architecture for connection to legacy structures. JCA was developed under the Java Community Process as JSR sixteen (JCA 1.Zero), JSR 112 (JCA 1.5) and JSR 322 (JCA 1.6).

J2EE Interview Questions
Question 19. What Is Contracts?

Answer :

The Java EE Connector Architecture defines a fashionable for connecting a compliant utility server to an EIS. It defines a standard set of gadget-stage contracts between the Java EE application server and a aid adapter. The machine contracts described by Version 1.Zero of the Java EE Connector Architecture are described by way of the specification as follows:

Connection management : Connection control allows an application server to pool connections to the underlying EIS and permits application additives to connect. This leads to a scalable application surroundings that can help a massive number of customers.
Transaction control : Transaction control enables an utility server to apply a transaction supervisor to manage transactions throughout a couple of useful resource managers. This contract also supports transactions which can be controlled inner to an EIS aid supervisor without the need of related to an external transaction manager.
Security control: Security control reduces safety threats to the EIS and protects precious facts resources controlled by using the EIS. JCA Version 1.5 provides system contracts to the specification as follows:
Life cycle control : Life cycle control enables an application server to manage the lifestyles cycle of a aid adapter from initiation via enhancements to obsolescence. This settlement presents a mechanism for the utility server to bootstrap a useful resource adapter instance in the course of its deployment or software server startup, and to notify the aid adapter example throughout its dedeployment or at some stage in an orderly shutdown.
Work control : Work management allows a useful resource adapter to do work (display community endpoints, invoke utility additives, and so on) by means of filing paintings instances to an software server for execution. The software server dispatches threads to execute submitted work instances. This allows a useful resource adapter to keep away from developing or handling threads directly, and allows an application server to correctly pool threads and feature extra manipulate over its runtime surroundings. The aid adapter can manage the transaction context with which work times are finished.
Transaction inflow control : Transaction inflow management permits a aid adapter to propagate an imported transaction to an software server. This contract also permits a useful resource adapter to transmit transaction of entirety and crash healing calls initiated through an EIS, and guarantees that the Atomicity, Consistency, Isolation and Durability (ACID) residences of the imported transaction are preserved.
Message influx control : Message inflow control permits a aid adapter to asynchronously deliver messages to message endpoints living inside the utility server, impartial of the particular messaging style, messaging semantics and messaging infrastructure used to deliver messages. This contract also serves as the standard message company pluggability settlement that lets in a extensive variety of message providers (Java Message Service (JMS), Java API for XML Messaging (JAXM), and so forth) to be plugged into any Java EE well matched utility server with a useful resource adapter.
Java Tutorial
Question 20. What Is Eis Integration?

Answer :

JCA adapters can be constructed to combine with diverse Enterprise Information System which includes Siebel Systems, SAP AG, Great Plains Systems, Oracle Applications, etc. Siebel affords API to combine with various structures like Java, C++, .Net, Visual Basic, etc. For Java it provides an interface known as 'Java Data Bean' (JDB). The Siebel adaptor offers data get right of entry to via the JDB API. Great Plains Systems presents an interface called eConnect to combine with different systems. SAP gives an interface for Java known as SAP Java Connector (SAP JCo).

Java Interview Questions
Question 21. Configure The Java Connector Architecture (jca) Subsystem?

Answer :

The JCA subsystem inside the JBoss Enterprise Application Platform 6 configuration document controls the general settings for the JCA field and resource adapter deployments.

Key factors of the JCA subsystem
Archive validation.
This setting whether archive validation can be finished on the deployment units.
The following table describes the attributes you may set for archive validation.
Question 22. What Is Common Config?

Answer :

The Common Config tab consists of settings for the cached connection supervisor, archive validation and bean validation ((JSR-303). Each of these is contained of their very own tab as properly. These settings may be modified by means of starting the proper tab, clicking the edit button, making the required changes, after which clicking on the save button.

Java eight Tutorial
Question 23. What Is Work Managers?

Answer :

The Work Manager tab consists of the list of configured Work Managers. New Work Managers may be added, removed, and their thread pools configured here. Each Work Manager will have one short-walking thread pool and an optional long-going for walks thread pool.

Java eight Interview Questions
Question 24. What Is Bootstrap Contexts?

Answer :

The Bootstrap Contexts tab incorporates the list of configured Bootstrap Contexts. New Bootstrap Context objects may be brought, removed, and configured. Each Bootstrap Context need to be assigned a Work Manager.

Core Java Interview Questions
Question 25. What Is Cached Connection Manager?

Answer :

Used for debugging connections and supporting lazy enlistment of a connection in a transaction, tracking whether or not they are used and released properly with the aid of the application.

Question 26. What Is Bean Validation?

Answer :

This setting determines whether bean validation (JSR-303) can be achieved on the deployment units.

Java Programmer Interview Questions
Question 27. What Are Thread Pool Attributes?

Answer :

allow-core-timeout:Boolean placing that determines whether or not middle threads may time out. The default fee is fake.
Center-threads:The center thread pool length. This must be smaller than the most thread pool length.
Queue-length:The most queue length.
Max-thread:The most thread pool size.
Keepalive-time:Specifies the quantity of time that pool threads need to be saved after doing work.
Thread-manufacturing unit:Reference to the thread manufacturing unit .
JSP Interview Questions
Question 28. What Is Bootstrap Contexts?What Are Bootstrap Context Attributes?

Answer :

Bootstrap contexts: Used to outline custom bootstrap contexts.

Attributes:

call:Specifies the name of the bootstrap context.
Workmanager:Specifies the name of the paintings supervisor to apply for this context.
Question 29. What Is The Procedure To Configure The Jca Subsystem Using The Management Console?

Answer :

The JCA subsystem of JBoss Enterprise Application Platform 6 can be configured in the Management Console. The JCA configuration options are positioned in barely distinctive locations inside the Management Console depending on how the server is being run.

If the server is walking as a Standalone Server, follow these steps:

Click at the Profile hyperlink at the pinnacle right to replace to the Profile view.
Ensure the Profile section within the navigation panel to the left is accelerated.
Click on Connector to increase it, after which click on on JCA.
If the server is jogging as part of a Managed Domain, observe these steps:
Click at the Profile link on the pinnacle proper to replace to the Profile view
Select the profile you are enhancing from the Profile menu at the pinnacle of the navigation panel on the left.
Click on Connector to extend it, and then click on JCA.
Configure the settings for the JCA subsystem the use of the 3 tabs.




CFG