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.
| 1. |
Which Is The Best Tool For Monitoring Weblogic Server(wls8)? |
|
Answer» WLS8 supports JMX but it uses weblogic IMPLEMENTATION of JMX server. It does not supports generalise sun javax API which can be used with any JVM. There are some PATCHES available which can be used with WLS8 which will enabled JMX BASED monitoring. Once JMX is enable there are many monitoring tools available in the MARKET. One can even GO for custom JMX utilities which can be used for server monitoring. WLS8 supports JMX but it uses weblogic implementation of JMX server. It does not supports generalise sun javax API which can be used with any JVM. There are some patches available which can be used with WLS8 which will enabled JMX based monitoring. Once JMX is enable there are many monitoring tools available in the market. One can even go for custom JMX utilities which can be used for server monitoring. |
|
| 2. |
What Is The Use Of Object Factories? |
|
Answer» FACTORY METHODS that will be used to create OBJECTS just LIKE in a static way. Factory methods that will be used to create objects just like in a static way. |
|
| 3. |
Explain Jmx Concepts And Architecture? |
|
Answer» JMX is conceptually simple, yet BEARS the fruit of years of DOMAIN EXPERIENCE and research. In a nutshell, JMX defines a standard MEANS for APPLICATIONS to expose management functionality
JMX is conceptually simple, yet bears the fruit of years of domain experience and research. In a nutshell, JMX defines a standard means for applications to expose management functionality |
|
| 4. |
What Is Jmx? |
|
Answer» JMX is native to the JAVA programming language. As a result, it offers natural, efficient, and lightweight management extensions to Java-based FUNCTIONS. It consists of a set of specifications and development tools for managing Java environments and developing state-of-the-art management solutions for applications and SERVICES. JMX is native to the Java programming language. As a result, it offers natural, efficient, and lightweight management extensions to Java-based functions. It consists of a set of specifications and development tools for managing Java environments and developing state-of-the-art management solutions for applications and services. |
|
| 5. |
What Is Jmx Architecture? |
|
Answer» JMX is based on a 3-LEVEL architecture:
JMX is based on a 3-level architecture: |
|
| 6. |
What Is Managed Bean Or Mbean? |
|
Answer» A managed bean - sometimes simply referred to as an MBEAN - is a type of JavaBean, CREATED with dependency injection. Managed Beans are particularly used in the Java MANAGEMENT Extensions technology. But, with the Java EE 6 specification provides for a more DETAILED meaning of a managed bean. A managed bean - sometimes simply referred to as an MBean - is a type of JavaBean, created with dependency injection. Managed Beans are particularly used in the Java Management Extensions technology. But, with the Java EE 6 specification provides for a more detailed meaning of a managed bean. |
|
| 7. |
How To Connect To Multiple Jmx Instances Using Splunk For Jmx? |
|
Answer» Install Splunk 6 on your server which contains about 6 DIFFERENT JMX instances. you want to hook all of them up into our Splunk JMX PLUGIN. It is as easy as EDITING the config.xml file and adding a NEW jmx server host? Currently this is: <jmxserver host="[[system name]]" jvmDescription="common_raw" jmxport="53632"> Install Splunk 6 on your server which contains about 6 different JMX instances. you want to hook all of them up into our Splunk JMX plugin. It is as easy as editing the config.xml file and adding a new jmx server host? Currently this is: <jmxserver host="[[system name]]" jvmDescription="common_raw" jmxport="53632"> |
|
| 8. |
What If There Is No Jmx Data? |
|
Answer» No JMX-related output in the logs. I can connect to the JVM with JCONSOLE using the supplied credentials, browse to the configured mbean, jackhammer the Refresh button and get new VALUES. Splunk, however, gets nothing, and leaves no indication as to why. Searching for "host=redacted" or "source='jmx://redacted'" yields nothing. This is not a complicated setup, nor is it a complicated app. Single server test environment, just TRYING to get JMX data into Splunk directly instead of having to do some NASTY search-time field extraction after indexing data output from JMXTrans text files. It's currently running on JDK 1.7, I tried 1.6 for science to no AVAIL. No JMX-related output in the logs. I can connect to the JVM with jconsole using the supplied credentials, browse to the configured mbean, jackhammer the Refresh button and get new values. Splunk, however, gets nothing, and leaves no indication as to why. Searching for "host=redacted" or "source='jmx://redacted'" yields nothing. This is not a complicated setup, nor is it a complicated app. Single server test environment, just trying to get JMX data into Splunk directly instead of having to do some nasty search-time field extraction after indexing data output from JMXTrans text files. It's currently running on JDK 1.7, I tried 1.6 for science to no avail. |
|
| 9. |
How Will You Check If Jmx Agent Is Working In Tomcat? |
|
Answer» When Tomcat is running as a SERVICE on Windows, you do not NEED setenv.bat, you need to use tomcat8w.exe and GUI toll for ADDING OPTIONS. When Tomcat is running as a service on Windows, you do not need setenv.bat, you need to use tomcat8w.exe and GUI toll for adding options. |
|
| 10. |
How To Run Jmx Java Application In Udeploy Process? |
|
Answer» Copy {WLHOME}/wlserver_**/server/lib/wlfullclient.jar file into {AGENT home}/opt/groovy-1.8.8/lib Then the Groovy script (that MIGRATED from my JMX Java APPLICATION) works. Copy {WLHOME}/wlserver_**/server/lib/wlfullclient.jar file into {agent home}/opt/groovy-1.8.8/lib Then the Groovy script (that migrated from my JMX Java application) works. |
|
| 11. |
Why Is Dependency Injection Useful? |
|
Answer» Different collaborators for different environments can be injected - test, production, test-database, REAL database. This allows classes to be tested INDEPENDENT of its collaborators (MAKES it easy to pass in stub or MOCK objects). Different collaborators for different environments can be injected - test, production, test-database, real database. This allows classes to be tested independent of its collaborators (makes it easy to pass in stub or mock objects). |
|
| 12. |
How Is Dependency Injection Performed In The Bean-file Xml? |
|
Answer» There are NESTED ELEMENTS WITHIN each BEAN DEFINITION. There are nested elements within each bean definition. |
|
| 13. |
How Is Setter Dependency Injection Specified A Configuration File? |
|
Answer» <constructor-arg… and <property… <constructor-arg… and <property… |
|
| 14. |
What Is The Advantage Of Constructor Dependency Injection? |
|
Answer» Here are a few ADVANTAGES: Here are a few advantages: |
|
| 15. |
How Does A Spring Factory Bean Work? |
|
Answer» It is created by SPRING AUTOMATICALLY, any SETTERS are called on the factory then its getObject() METHOD is called to allocate the actual bean. It is created by Spring automatically, any setters are called on the factory then its getObject() method is called to allocate the actual bean. |
|
| 16. |
What Are The 5 Scopes Defined In Spring? |
|
Answer» 5 scopes defined in Spring: 5 scopes defined in Spring: |
|
| 17. |
List 2 Examples Of Anonymous Bean? |
|
Answer» TWO examples:
Two examples: |
|
| 18. |
What Is A Nested Bean? |
|
Answer» SCOPES the BEAN within the bean that USES it. One LESS bean id in the SET of bean names. Scopes the bean within the bean that uses it. One less bean id in the set of bean names. |
|
| 19. |
What Is Lazy Initialization? |
|
Answer» BEAN is not allocated until it is actually needed - dependency injected - or requested via getBean(). specify lazy="true" (FALSE by default). Only useful if bean GENUINELY may never be used in most runs of the APPLICATION. Bean is not allocated until it is actually needed - dependency injected - or requested via getBean(). specify lazy="true" (false by default). Only useful if bean genuinely may never be used in most runs of the application. |
|
| 20. |
What Is A Cross-cutting Concern? |
|
Answer» A requirement that cuts ACROSS all the natural MODULES of your application. Examples:
A requirement that cuts across all the natural modules of your application. Examples: |
|
| 21. |
What Is A Join-point? |
|
Answer» Joint-point is an EXPRESSION that DEFINES ZERO or more join-points. Joint-point is an expression that defines zero or more join-points. |
|
| 22. |
What Is An Advice In Jmx? |
|
Answer» The CODE that IMPLEMENTS the CROSS cutting-concern that will be INSERTED at each join-point. The code that implements the cross cutting-concern that will be inserted at each join-point. |
|
| 23. |
List Some Types Of Advice? |
Answer»
Types of advice: |
|
| 24. |
What Is A Named Pointcut And Why To Use One? |
|
Answer» A point cut EXPRESSION that has a name so it can be REUSED. RESONS To use:
A point cut expression that has a name so it can be reused. Resons To use: |
|
| 25. |
What Are The Various Actions Performed When An Application Context Is Created? |
|
Answer» Here are 5 steps:
Here are 5 steps: |
|
| 26. |
How To Access Jmx (java Beans) From A Process Running In Docker Container? |
|
Answer» You have to EXPOSE the JMX port to the host and even used Sun specific options while RUNNING the Java process. You are able to telnet to the host ip and the exposed JMX port, which tells that it is accessible. But I can't figure out a way to USE JConsole and CONNECT to the JMX service running in the container.
You have to expose the JMX port to the host and even used Sun specific options while running the Java process. You are able to telnet to the host ip and the exposed JMX port, which tells that it is accessible. But I can't figure out a way to use JConsole and connect to the JMX service running in the container. |
|
| 27. |
What Are The Advantages Of Setter Dependency Injection? |
|
Answer» Here are a few advantages of Setter:
Here are a few advantages of Setter: |
|
| 28. |
How Is The Application Jvm Configured? |
|
Answer» The APPLICATION JVM is CONFIGURED with the FOLLOWING OPTIONS:
The application JVM is configured with the following options: |
|