For BE/B.Tech/BCA/MCA/ME/M.Tech Major/Minor Project for CS/IT branch at minimum price Text Message @ 9424820157

ActiveMQ Interview Questions

 ActiveMQ Interview Questions



1. What is Activemq?

Apache ActiveMQ is an open source message broker written in Java together with a full Java Message Service (JMS) client. It provides "Enterprise Features" which in this case means fostering the communication from more than one client or server.


2. What is JMS?

Java Message Service (JMS) is an application program interface (API) from Sun Microsystems that supports the formal communication known as messaging between computers in a network. Sun's JMS provides a common interface to standard messaging protocols and also to special messaging services in support of Java programs. ActiveMQ is based on JMS.


3. What is Message-oriented middleware?

Message-oriented middleware (MOM) is software or hardware infrastructure supporting sending and receiving messages between distributed systems. MOM allows application modules to be distributed over heterogeneous platforms and reduces the complexity of developing applications that span multiple operating systems and network protocols. The middleware creates a distributed communications layer that insulates the application developer from the details of the various operating systems and network interfaces.


4. What are the advantages of using ActiveMQ over other databases?

The biggest advantage of using ActiveMQ over other databases is that it is one of the most reliable open sources to communicate and transfer information between different distributed processes.


5. List some of the components used in JMS.

Some of the components available in JMS include:

Native clients

JMS client

Administered objects

JMS provider

Messages


6. What are the core objects required by a JMS – enabled application?

The core objectives required by a JMS – enabled application include the following:

1)A connection object

2)An appropriate sender or receiver or publisher inside a particular session

3)One or more sessions that have the ability to provide context specific to message sending as well as receiving

4)A queue object within sessions representing destinations within brokers


7. Enlist some of the essential parts of JMS applications.

Some essential parts of JMS applications include:


1)Message

2)Message provider

3)Message receiver

4)Connection

5)Server

6)Connection factory

7)Connection destination


8. What is the difference between ActiveMQ and AMQP?

AMQP is an acronym for Advanced Message Queue Protocol. It is a description of how clients can send messages and how brokers can interpret and exchange information. It follows a wire-level protocol between brokers and clients for effective and efficient communication. It is not entirely a messaging system alike ActiveMQ, however, it is only a messaging protocol.


9. What are some of the platforms supported by ActiveMQ?

Some of the common platforms supported by ActiveMQ include:

Any java platform that has an update of 5.0 or more.

J2EE 1.4 is another platform

JMS 1.1

JCA 1.5 resource adaptor


10. What is the difference between ActiveMQ and Fuse Message Broker?

Fuse Message Broker is an affirmed dispersion of Apache ActiveMQ given by FuseSource. FuseSource does the majority of its improvement and settles bugs as a component of the Apache ActiveMQ community, so there are no practical contrasts between the two. FuseSource may accomplish more successive discharges than Apache may, so it is conceivable to get bug fixes from a Fuse Message Broker discharge sooner than from an official Apache ActiveMQ discharge.


11. What is the procedure involved in handling an application server using the JMS connections?

With the assistance of an application server, the server session is made and it stores them within a pool

In order to place messages in JMS sessions, an association buyer utilizes the server’s session

A server session is the one that makes the JMS session

Application composed by Application software engineers makes the message audience.


12. Explain the working of JMS in association with J2EE

The customer using the application such as the JavaBeans firstly parts and segments the web in order to be able to send or receive JMS message synchronously. In addition to that, the customer using the application can also likewise get message non – concurrently. With the assistance of message-driven beans, JMS supplier can alternatively execute the preparation of messages. The message-driven beans are a kind of big business bean that empowers the offbeat utilization of various kinds of messages. The task of sending and accepting message is completed and is in conveyed, which then permits JMS tasks and database to get inside a solitary exchange.


13. Explain what is MOM in connection with JMS

he MOM (Message Oriented Middleware) is a service that fills in as a transition between two conveying segments. MOM is kept in between the customer and server so that it gives the office of passing message by utilizing the procedure lining. Until the customer does not demand to peruse the message, the messages will be kept away in line. By utilizing this procedure, the product segment can work freely of time.


14. How is ActiveMQ different from the spread toolkit?

Spread Toolkit is a C++ library for informing and just has incomplete help for JMS. It does not bolster sturdy informing, exchanges, XA or full JMS 1.1. It is likewise reliant on a local code Spread inspiration running on the machine. While on the other hand, Apache ActiveMQ is the JMS supplier utilized in Apache Geronimo and is J2EE 1.4 affirmed in Geronimo and is 100% unadulterated version of Java programming language. ActiveMQ underpins transient and sturdy informing, exchanges, XA, J2EE 1.4, JMS 1.1, JCA 1.5 just as loads of various highlights like Message Groups and Clustering.


15. What can one do to monitor the connection between a client and a broker?

In order to monitor the connection between the broker and the client, one needs to monitor the state of the connection using the “addTransportListener()” method.

No comments:

Post a Comment



Please go through below tutorials:


Mule 4 Tutorials

DEPLOY TO CLOUDHUB C4E CLIENT ID ENFORCEMENT CUSTOM POLICY RABBIT MQ INTEGRATION
XML TO JSON WEBSERVICE CONSUMER VM CONNECTOR VALIDATION UNTIL SUCCESSFUL
SUB FLOW SET & REMOVE VARIABLE TRANSACTION ID SCATTER GATHER ROUND ROBIN
CONSUME REST WEBSERVICE CRUD OPERATIONS PARSE TEMPLATE OBJECT TO JSON LOAD STATIC RESOURCE
JSON TO XML INVOKE IDEMPOTENT FILTER FOR EACH FLAT TO JSON
FIXWIDTH TO JSON FIRST SUCCESSFUL FILE OPERATIONS EXECUTE ERROR HANDLING
EMAIL FUNCTIONALITY DYNAMIC EVALUATE CUSTOM BUSINESS EVENT CSV TO JSON COPYBOOK TO JSON
CHOICE ASYNC

Widely used Connectors in Mule 3

CMIS JETTY VM CONNECTOR SALESFORCE POP3
JMS TCP/IP WEBSERVICE CONSUMER QUARTZ MONGO DB
FILE CONNECTOR DATABASE CONNECTOR


Widely used Scopes in Mule 3

SUB FLOW REQUEST REPLY PROCESSOR CHAIN FOR EACH CACHE
ASYNC TCP/IP COMPOSITE SOURCE POLL UNTIL SUCCESSFUL
TRANSACTIONAL FLOW

Widely used Components in Mule 3

EXPRESSION CXF SCRIPT RUBY PYTHON
JAVASCRIPT JAVA INVOKE CUSTOM BUSINESS EVENT GROOVY
ECHO LOGGER


Widely used Transformers in Mule 3

MONGO DB XSLT TRANSFORMER REFERENCE SCRIPT RUBY
PYTHON MESSAGE PROPERTIES JAVA TRANSFORMER GZIP COMPRESS/UNCOMPRESS GROOVY
EXPRESSION DOM TO XML STRING VALIDATION COMBINE COLLECTIONS BYTE ARRAY TO STRING
ATTACHMENT TRANSFORMER FILE TO STRING XML TO DOM APPEND STRING JAVASCRIPT
JSON TO JAVA COPYBOOK TO JSON MAP TO JSON JSON TO XML FLATFILE TO JSON
FIXWIDTH TO JSON CSV TO JSON


Widely used Filters in Mule 3

WILDCARD SCHEMA VALIDATION REGEX PAYLOAD OR
NOT MESSAGE PROPERTY MESSAGE IDEMPOTENT FILTER REFERNCE
EXPRESSION EXCEPTION CUSTOM AND


Exception Strategy in Mule 3

REFERENCE EXCEPTION STRATEGY CUSTOM EXCEPTION STRATEGY CHOICE EXCEPTION STRATEGY CATCH EXCEPTION STRATEGY GLOBAL EXCEPTION STRATEGY


Flow Control in Mule 3

CHOICE COLLECTION AGGREGATOR COLLECTION SPLITTER CUSTOM AGGREGATOR FIRST SUCCESSFUL
MESSAGE CHUNK AGGREGATOR MESSAGE CHUNK SPLITTER RESEQUENCER ROUND ROBIN SOAP ROUTER