Sunday 1 February 2015

jboss admin interview questions answers pdf free download

41. How do you monitor JBoss and detect the bottleneck of an application?
The first step is to measure the different components of your app to see where the degradation is.  Is it an external resource (database, message server, etc.)?  Is it internal?  Where is the app spending all its time?
So the first step could be to to use JBoss JMX agents and monitor the components deployed to the application server. Once it's clear which component or library takes most of the time or most of resource you can use a more specialized tool like JProbe and examine the single method or the single objects loaded in memory.

42. What's the difference between JAX-WS and JAX-RPC ?
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:
•         JAX-WS maps to Java 5.0 and relies on many of the features new in Java 5.0 like Web Service annotations.
•         JAX-RPC has its own data mapping model, JAX-WS's data mapping model is JAXB. JAXB promises mappings for all XML schemas.
•         JAX-WS introduces message-oriented functionality, dynamic asynchronous functionality which are missing in JAX-RPC.
•         JAX-WS also add support, via JAXB, for MTOM, the new attachment specification.

43. What is the difference between JAX--WS and JAX-RPC?
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:
? JAX-WS maps to Java 5.0 and relies on many of the features new in Java 5.0 like Web Service annotations.
? JAX-RPC has its own data mapping model, JAX-WS's data mapping model is JAXB. JAXB promises mappings for all XML schemas.
? JAX-WS introduces message-oriented functionality, dynamic asynchronous functionality which are missing in JAX-RPC.
? JAX-WS also add support, via JAXB, for MTOM, the new attachment specification.

44. What do you think about BPEL and BPM ? How do they compare?
In my opinion BPEL and BPM are quite different things so they cannot even be compared. The problems boils down to the fact that these years maybe BPEL has been marketed for something which isn't: that is a Business Process Management framework.
BPEL is made up for service orchestration, that is publishing new services as a function of other services.
while BPM si needed for handling human task management functionalities and subprocess management.

45. Which JDK is needed to run Seam?
Seam only works on JDK 5.0 and above. It uses annotations and other JDK 5.0 features.
More Questions & Answers :-
Part1  Part2  Part3  Part4  Part5

No comments:

Post a Comment