Blog Archives

♦ 11 Spring boot interview questions & answers

11 Spring boot interview questions & answers with tutorials for easy setup of new Spring applications. Spring boot helps you get started quickly. Q1. What is the key benefit of using Spring boot? A1. The key benefit is that you

Posted in FAQs Spring, Spring boot Tagged with:

♦ 8+ JMeter performance testing interview Q&As

Performance testing is an important process of any software development. You can bring this up yourself to many open-ended questions like — Tell me about yourself? What are some of your recent accomplishments that you are proud of? Setting up…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Code Quality, JMeter, JMeter Tutorial, member-paid, Performance, Performance Testing Q&A

00: ♦ 11 Spring MVC Interview Q&As

Q1. Can you describe the Spring Web MVC framework architecture? A1. Spring Web MVC framework provides a Model View Controller architecture to develop loosely coupled 1) web applications 2) RESTful web services. Here is the high level diagram. Step 1:…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring MVC

01: ♥♦ Q01 – Q07 Hibernate interview questions & answers

Q1. What is an Object-to-Relational Mapping (i.e. ORM) tool? A1. There are several ways to persist data to a database from your Java applications. 1) Direct JDBC SQL statements for the CRUD (Create, Read, Update, and Delete) operations. Direct JDBC

Posted in FAQs Free, FAQs Hibernate, Hibernate Tagged with: , ,

01: ♥♦ Q01 – Q07 Spring interview questions & answers

Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container? A1. The differences are very subtle and can be hard to understand. Hence, explained via code samples. 1) Dependency

Posted in FAQs Free, FAQs Spring, Spring Core Tagged with:

01: ♥♦ Spring DI & IoC interview Q&As

Video: Spring DIP, DI, and IoC. This extends 13 Spring interview questions & answers. Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container? A1. Dependency Inversion Principle (DIP)

Posted in FAQs Free, FAQs Spring, Spring Core Tagged with: , , , ,

01: ♦ 8 Git Source control system interview questions & answers

Q1. How does Git differ from SVN? A1. #1. Git is a distributed source control system meaning that there will be multiple client repositories. SVN is one repository with lots of clients. GIT is decentralized to a point where people…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Git & SVN, member-paid

01: 12 Maven interview Questions & Answers

Q1. What is the difference between snapshot versions and release versions? A1. The term “SNAPSHOT” means the build is a snapshot of your code at a given time, which means downloading 1.0-SNAPSHOT today might give a different file than downloading…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Maven, member-paid Tagged with: ,

01: Simple Spring Boot Tutorial in 8 steps

Assumes that your Java, Maven, and eclipse are set up as per: Setting up Java, Maven, and eclipse Step 1: Create a simple maven project using the maven “archetype” plugin. The above command creates a folder “simple-spring-boot” Step 2: import…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring boot, Spring Boot Tutorial

01: Spring MVC beginner tutorial step by step

This tutorial extends Getting started with Apache Tomcat application server by deploying a simple JEE Application to introduce Spring MVC. Spring dependencies via Maven Step 1: Modify the pom.xml file in the simpleWeb project to bring in the Spring web

Posted in Spring MVC

01b: ♦ Q08 – Q13 Spring interview Q&As

This extends 13 Spring basics Q1 – Q7 interview questions & answers. Q8. Can you describe the high level Spring architecture? A8. A Spring Bean represents a POJO (Plain Old Java Object) performing useful operation(s). All Spring Beans reside within…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring Core Tagged with:

01b: ♦ Q08 – Q15 Hibernate interview Q&As

Extends 15+ Hibernate interview questions & answers – Q1 – Q7. Hibernate interview questions & answers with diagrams & code snippets to not only prepare for the job interviews, but also to easily grasp the concepts Q9. Explain hibernate object…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Hibernate, Hibernate, member-paid

02: 6 More Git interview Q&As

Extending 8 Git Source control system interview questions & answers. Q1. What do you understand by the term patch or pull request? A1. A patch means change sets you want to communicate and apply to another repository. Nowadays, the GitHub…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Git & SVN, member-paid

02: 7 More Maven interview Questions & Answers

Q1. How will you go about creating master builds or releases using Maven? A1. Step 1: Log into the server that has maven set up to perform release builds. Step 2: You need to checkout the fresh copy of the…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Maven, member-paid Tagged with: ,

02: Simple Spring Boot Restful Web Service Tutorial

This tutorial extends Simple Spring Boot Tutorial in 8 steps. Step 1: The pom.xml file that was created in the previous Spring boot tutorial needs to be changed from “spring-boot-starter-actuator” to “spring-boot-starter-web” Step 2: Add additional logic to the “App.java”…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring boot, Spring Boot Tutorial

02: Spring MVC form submission tutorial step by step

This tutorial extends Spring MVC beginner tutorial step by step. Maven project structure Model class to capture login form details Step 1: Create a POJO “Login.java” in the package “com.mytutorial.model” under “src/main/java” to capture login form details like “user” &

Posted in Spring MVC

02: Understanding Hibernate proxy objects and avoiding potential pitfalls

Q. How does hibernate support lazy loading? A. Hibernate uses a proxy object to support lazy loading. Basically as soon as you reference a child or lookup object via the accessor/getter methods, if the linked entity is not in the…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, member-paid

03: ♥ Understanding Git terms origin, master, and head

Q1. What is a .git folder? A1. Like .SVN folder for subversion holding the metat data, .git folder holds the Git meta data like remote repository, branch names, etc. If you do it shows that you are on the branch

Posted in Git & SVN

03: ♦ Spring Boot Web & Actuator Beginner Tutorial Step by Step

Step 1: Create a simple maven project using the maven “archetype” plugin. Step 2: Import it as an “existing maven project” into eclipse. Step 3: The pom.xml file to bring in the Spring boot dependencies & plugins. Step 4: The

Posted in Spring boot

03: Identifying and fixing NonUniqueObjectException in Hibernate

NonUniqueObjectException is thrown when there is an object already associated with the session with the same id (primary key) (i.e. a duplicate). It is important to understand the concept of a “detached” object in Hibernate. This is one of the

Posted in Hibernate, Java Debugging Tagged with:

03: Spring MVC with Java Configs instead of XML configs step by step

This tutorial extends Spring MVC form submission tutorial step by step. This tutorial gets rid of web.xml and applicationContext.xml files. pom.xml changes Step 1: Add “JSTL” (i.e. JSP Standard Tag Library ) jar dependency, and also override default “maven-war-plugin” by

Posted in Spring MVC

03a: ⏯ Spring Boot Web & Actuator Beginner Video Tutorial

Related Links 1. Spring Boot Web & Actuator Beginner Tutorial Step by Step. 2. Simple Spring Boot Tutorial in 8 steps. Spring Boot Interview Q&As 11 Spring boot interview questions & answers....

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in ► Videos on Spring Boot Tutorials, member-paid, Spring boot

04 ♦ 17 Spring bean life cycles & scopes FAQ interview Questions & Answers

Q1. Does Spring dependency injection happen during compile time or runtime? A1. Runtime during creating an object. Q2. What is the difference between prototype scope and singleton scope? Which one is the default? A2.Singleton means single bean instance per IoC…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring Core Tagged with: , ,

04: Identifying and fixing LazyInitializationException in Hibernate

LazyInitializationException is thrown when an object becomes detached, and if you try to access associated (i.e. proxied) object(s) of a detached object. Q. What is a detached object in Hibernate? When you close an individual Hibernate Session, the persistent objects

Posted in Hibernate, Java Debugging Tagged with:

04: ♥ Merging Vs rebasing on Git questions and answers

Q1. What do you understand by the terms merging and rebasing? Can you explain both with a daiagram? A1. Both of these commands are designed to integrate changes from one branch into another branch—they just do it in very different

Posted in Git & SVN, SDLC Tagged with:

04: Spring boot MVC tutorial with thymeleaf & bean validation

Step 1: Create a “simple-spring-mvc” maven project. Step 2: Import the project into eclipse. File > Import -> Existing Maven Projects and select “C:\Users\java-_000\projects\simple-spring-mvc”. Step 3: The pom.xml file should look like: “spring-boot-starter-thymeleaf” is used instead of “spring-boot-starter-web” as it…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring boot, Spring Boot Tutorial

04: Spring MVC with Thymeleaf and JavaConfigs

Project structure pom.xml to bring-in Thymeleaf & Spring jars Step 1: Add “Thymeleaf“jar dependency, and also override default “maven-war-plugin” by explicitly adding the”failOnMissingWebXml” to false to not have web.xml as we will be using JavaConfigs and AbstractAnnotationConfigDispatcherServletInitializer. Define the model

Posted in Spring MVC

05: ♥ Git & Maven for releasing software artifacts Q&A

Q1. What are the general steps involved in making a software release? A1. #1: Checking out the software artifacts to you build serevr or local box from a source control management (i.e. SCM) system. #2: Giving it a version so

Posted in Git & SVN, Maven, SDLC Tagged with:

05: ♦ 9 Spring Bean scopes interview Q&A

Q1. Does Spring dependency injection happen during compile time or runtime? A1. Runtime during creating an object. Q2. What is the difference between prototype scope and singleton scope? Which one is the default? A2. Singleton means single bean instance per…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring Core Tagged with:

05: Debugging Hibernate & getting a better handle on the 4 most common issues

#1. Enable Logging in your log4j.xml, log4j.properties, or myapp-logback.xml In the log4j.properties file, you can enable Hibernate SQL logging as shown below or in your log4j.xml or myapp-logback.xml as You can then check your logs for the SQLs executed and…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, Java Debugging, member-paid

05: Spring 4 MVC RESTful Web Service Beginner Tutorial step by step

Install RESTClient from WizTools.org Step 1: RESTClient is required to test the RESful web services. Go to http://download.wiztools.org/rest-client/archive/index.html Download the latest version of “restclient-ui-3.2.2-jar-with-dependencies.jar” file. Copy it to “c:\tools” and run it by Double-Clicking if you are running on windows.

Posted in Spring MVC

06: ♥ Debugging NoSuchBeanDefinitionException in Spring

#1. Adding the @Named annotation to the interface instead of the implementation Adding the @Named, @Component, @Repository, etc annotation on the interface as opposed to the implementation class. The code below can throw “NoSuchBeanDefinitionException” FIX: The @Named annotation is now

Posted in Java Debugging, Spring

06: Hibernate First & second level cache interview questions and answers

Q. What is a first-level cache in Hibernate? A. First-level cache always is associated with a “Session” object. Hibernate uses this cache by default. You can’t turn it off. Hibernate caches the SQL statements like insert, update, delete, etc in…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Hibernate, Hibernate, member-paid

06: Spring 4 MVC RESTful GET & POST methods Web Services Tutorial

This tutorial extends Spring 4 MVC RESTful Web Service Beginner Tutorial step by step. Controller that supports GET with path variable & POST methods Step 1: The “AccountController.java” that has two additional methods to support requests like GET: http://localhost:8080/simpleWeb/entry/v1/forecasting/account/123 POST:

Posted in Spring MVC

07: Debugging Spring Transaction Management

Never just trust that adding @Transactional annotation is going to create a transactional boundary for your service layer. EventRestController –> EventMergeProcesorImpl –> EventControlDAOImpl The @Transactional annotations added to “public” methods of the EventMergeProcesorImpl. Spring creates a proxy around the “EventMergeProcesorImpl”.…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Java Debugging, member-paid, Spring, Transaction Management

07: Hibernate mistakes – accessing objects outside of a transaction

Hibernate does require the same EntityManager to be available in order to lazily load objects. If you have no EntityManager, then you have no knowledge of the datastore. Once the transaction is committed the objects become detached, and you can’t…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, member-paid

07. ♥⏯ Spring DI with Maven beginner video tutorial

Related Links 1. Spring DIP, DI & IoC in detail interview Q&As.

Posted in ► Videos on Java Beginner Tutorials, ► Videos on Spring Core Tutorials, Setting up & getting started tutorials, Spring Core Tagged with:

08: Hibernate automatic dirty checking of persistent objects and handling detached objects

Q1. What do you understand by automatic dirty checking in Hibernate? A1. Dirty checking is a feature of hibernate that saves time and effort to update the database when states of objects are modified inside a transaction. All persistent objects…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, member-paid

09: Hibernate entities with auditable, soft delete & optimistic locking fields

There are certain generic columns that database tables have like Auto generated identity columns. Auditing columns like createdDtTm, createdBy, modifiedDtTm, and modifiedBy. Soft delete or logical delete flags like inactive ‘Y’ or ‘N’. Optimistic locking detection based on columns like…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, member-paid

10: Spring, JavaConfig (i.e @Configuration), JPA & Hibernate by example

Example #1 Wiring JDBC Datasource application.yml where the datasource properties are read from. Example #2 Wiring JDBC Datasource with JNDI Example #3 Wiring the JPA persistence unit processors Callback interface for post-processing a JPA PersistenceUnitInfo. This is useful for auto…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, JPA, member-paid, Spring JavaConfig

11: Hibernate dependency jars and plugins

Here is a sample maven pom.xml snippets containing the dependency jars.  The above snippet defines the version numbers. The snippet below defines the dependencies. If you want to auto-generate your hibernate entities from DDL then. Finally, the plugin that is…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Hibernate, member-paid

12: Hibernate custom data type : Blob type example

There are times you want to define a custom data type in Hibernate. Here is an example of using a custom ImageType defined as a Blob databse type to store images, excel files, etc. Step 1: Define the custom Hibernate

Posted in Hibernate

JMeter for performance testing REST services with BeanShell

This post extends 8 JMeter Performance testing Interview Q&As to cover JSON HTTP post. Now a days, a single page interactive web sites are very popular, and they post JSON based data back to the server to create a new…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in JMeter, JMeter Tutorial, member-paid, Performance, Performance Testing Q&A

Setting up Cygwin with Git Tutorial

Step 1: Download and install Cygwin. Add additional packages to the Cygwin setup. Advance through the setup wizard accepting all default options until the “Select Pages” dialog is reached. Enter the word git into the Search input field and from

Posted in Git & SVN

Spring boot with Spring MVC, JPA, Hibernate & MySQL tutorial in 10 steps

This assumes that you that you have set up Java, Maven, and MySQL as per the previous tutorials. Spring boot dependencies in pom.xml The entries for the Spring boot pom.xml can be determined via “https://start.spring.io/“. If it is a new

Posted in Spring boot

Spring IO tutorial in 6 steps

Spring IO Platform is all about “list of dependencies and their versions that work well together”. It is implemented as a Maven POM file via Maven Bill-of-Materials dependency that you can import into your projects to set the versions for…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring IO, Spring IO Tutorial

Spring loading property files & properties

conf/db.properties # jdbc.X jdbc.driverClassName=org.hsqldb.jdbcDriver jdbc.url=jdbc:hsqldb:hsql://localhost/mytestdb jdbc.user=SA jdbc.pass= # hibernate.X hibernate.dialect=org.hibernate.dialect.HSQLDialect hibernate.show_sql=false hibernate.hbm2ddl.auto= #1. Register a Properties File in Application Context XML The “<property-placeholder>” tag. OR #2. Register a Properties File via Java configuration The @PropertySource annotation. OR

Posted in Spring

Spring, JavaConfig (@Configuration), and TransactionManager

This extedns configuring JDBC and JPA to configure the TransactionManager. Example #1 Wiring JDBC Transaction Manager Note: @EnableTransactionManagement annotation If you want to create a mock transaction manager, then you can do Also, the unit test classes need to extend

Posted in Spring JavaConfig, Transaction Management

Spring, JavaConfig (i.e @Configuration) & JDBC by example

Example #1 Wiring JDBC Datasource application.yml where the datasource properties are read. Example #2 Wiring JDBC Datasource with JNDI Example #3 Wiring JDBC Embedded Datasource for integration testing Example #4 Wiring up the JdbcTemplate by passing in the datasource Example…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in JDBC, member-paid, Spring JavaConfig

Spring, JavaConfig (i.e @Configuration) & JMS by example

Step 1: Define the messaging system connectivity, destination (e.g. topic or queue) and message selector properties via a YAML or .properties file. Here is an example of application.yml file. Step 2: MQTopicConnectionFactory The Java based Spring configuration defining the connection…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring JavaConfig

Learn by Java topics ♥Free | ♦FAQs

open all | close all

100+ Java Tutorials by topics

open all | close all