Deploying To Tomcat using WAR files

When you deploy your Java web apps, you can make use of a Web Application Archive (WAR) file. The Web Application Archive (WAR) file is a compressed version of your web application. It uses the zip file format but the file has the .war extension. The best way to visualize it is think of your "webapp" directory being compressed as [...]

By |2020-12-26T06:56:23-05:00December 26, 2020|How-To, Java|Comments Off on Deploying To Tomcat using WAR files

Advanced Servlets: Servlet Filters Tutorial

As a Java web developer, I recommend that you take advantage of an advanced servlet component: the Servlet Filter.   A Servlet filter is an object that can intercept HTTP requests targeted at your web application.   This article from journaldev.com does a good job of walking you through the development process. Enjoy!   Java Servlet Filters Tutorial http://www.journaldev.com/1933/java-servlet-filter-example-tutorial  

By |2018-06-01T10:30:58-04:00June 1, 2018|Java, Uncategorized|Comments Off on Advanced Servlets: Servlet Filters Tutorial

MongoDB Java Tutorials

MongoDB ... NoSQL ... buzzwords buzzwords buzzwords!   Well, it seems that MongoDB is all the rage. I personally still like MySQL but more and more, I've been getting requests to use MongoDB on my client Java projects.   Here are some useful resources that I used to spin up on MongoDB. Now, I can't promise to make you a [...]

By |2018-04-03T10:39:57-04:00April 3, 2018|Java, Tips|Comments Off on MongoDB Java Tutorials

Spring and Hibernate Interview Questions

Here's a list of questions to help you prepare for a Spring and Hibernate interview. Spring MVC Interview Questions https://howtodoinjava.com/interview-questions/spring-mvc-interview-questions-with-answers/   Spring AOP Interview Questions https://www.dineshonjava.com/spring-aop-interview-questions-and-answers/   Spring REST Interview Questions https://www.dineshonjava.com/spring-rest-web-services-interview-questions-and-answers/   Spring Boot Interview Questions https://www.journaldev.com/8611/spring-boot-interview-questions   Hibernate Interview Questions https://www.journaldev.com/3633/hibernate-interview-questions-and-answers --- If you need to brush up on core Java, JSP and JDBC topics, see my post [...]

By |2018-04-03T10:13:37-04:00April 3, 2018|Hibernate, Java, Spring|Comments Off on Spring and Hibernate Interview Questions

Java Interview Questions

If you have an upcoming Java interview, here are some interview questions that can help you get prepared. Java Interview Questions https://www.javatpoint.com/corejava-interview-questions JSP Interview Questions https://www.javatpoint.com/jspinterview JDBC Interview Questions https://www.javatpoint.com/jdbc-interview-questions --- If you are preparing for Spring and Hibernate, be sure to see my other post. Good luck on your interview :-)

By |2018-04-03T10:11:33-04:00April 3, 2018|Java|Comments Off on Java Interview Questions

Java IDEs: Which IDE is in Most Demand in the Job Market?

Hi All, A lot of new students ask me which Java IDE should they use. Eclipse, IntelliJ, NetBeans etc. My answer is ... which ever tool you are comfortable with and most productive. However, I also tell them to pick an IDE that is in demand in the job market. Now granted, another IDE may be better on technical merits, [...]

By |2017-06-10T10:55:56-04:00June 10, 2017|Java|2 Comments

JMS Tutorial Resources

Hi All, I've had a number of students ask me about Java Message Service (JMS). They are eager to learn how to send/recieve messages using JMS. I've put together a list of free tutorial resources. Enjoys! JMS Tutorial from Java EE 7 Tutorial https://docs.oracle.com/javaee/7/tutorial/jms-concepts.htm#BNCDQ JMS Tutorial with ActiveMQ https://dzone.com/articles/jms-activemq And, if you are interested in using JMS with Spring then [...]

By |2017-06-01T10:52:49-04:00June 1, 2017|Java, jms|Comments Off on JMS Tutorial Resources

How To View Hibernate SQL Parameter Values

When using Hibernate, if you log the Hibernate SQL statements, you will see this: Hibernate: insert into student (email, first_name, last_name, id) values (?, ?, ?, ?) However, for debugging your application, you want to see the actual parameter values in the Hibernate logs. Basically, you want to get rid of the question marks in the Hibernate logs. You can [...]

By |2016-07-05T18:27:50-04:00July 5, 2016|Hibernate, How-To, Java|Comments Off on How To View Hibernate SQL Parameter Values

JDBC and MySQL: Getting rid of the dreaded message – WARN: Establishing SSL connection without server’s identity verification is not recommended

When connecting to a MySQL database, you may encounter this scary warning message. Thu Feb 04 14:49:25 IST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate [...]

By |2016-05-20T20:34:58-04:00May 20, 2016|How-To, Java, JDBC, MySQL|Comments Off on JDBC and MySQL: Getting rid of the dreaded message – WARN: Establishing SSL connection without server’s identity verification is not recommended
Go to Top