DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.

Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.

Threat Detection: Learn core practices for managing security risks and vulnerabilities in your organization — don't regret those threats!

Managing API integrations: Assess your use case and needs — plus learn patterns for the design, build, and maintenance of your integrations.

Avatar

Martin Farrell

Java Developer at www.javabullets.com

Edinburgh, GB

Joined Jul 2009

https://www.javabullets.com

About

Martin is an experienced designer/developer with 18 years experience delivering projects from requirements to implementation, and support phases. He has worked in a range of industries including banking, financial services, communications, media and government sector. @javabullets Consultancy Services at www.glenware.com

Stats

Reputation: 1923
Pageviews: 1.5M
Articles: 22
Comments: 43
  • Articles
  • Comments

Articles

article thumbnail
Would You Use JSF for Your Next Project?
With JavaScript-based frameworks dominating much of the web development world these days, is Java EE's JSF still relevant, and should you use it for your next project?
January 17, 2018
· 40,890 Views · 41 Likes
article thumbnail
Spring Boot as a Windows Service in 5 Minutes
We take a look at how you can get up and running quickly using Spring Boot to create a Windows service as well as pass configuration details.
December 18, 2017
· 86,763 Views · 27 Likes
article thumbnail
Java 9 on Java EE 8 Using Eclipse and Open Liberty
Here we take a look at how to get started with Java 9 using Java EE 8 in Eclipse and Open Liberty for those looking to get started with this combo.
Updated December 18, 2017
· 21,715 Views · 16 Likes
article thumbnail
Spring Data REST and Projections
This overview of projections in Spring Data REST shows how we can use Projections in a similarly to Data Transfer Objects to control what clients see.
November 29, 2017
· 41,520 Views · 6 Likes
article thumbnail
Accessing the EntityManager From Spring Data JPA
Learn how to access your EntityManager using a custom interface with Spring Data JPA as well as the benefits and drawbacks involved.
November 9, 2017
· 193,862 Views · 16 Likes
article thumbnail
Java 9 Streams API Using JShell
Let's dive into JShell and, in particular, see how it's used to interact with some of Java 9's newest features, including the updates to the Streams API.
Updated November 7, 2017
· 11,837 Views · 10 Likes
article thumbnail
JShell in Five Minutes
This primer for Java 9's REPL, JShell, will help you get started with variables, My Top Java 9 Features
Updated October 13, 2017
· 18,470 Views · 10 Likes
article thumbnail
Java 9: HTTP Client and Process API in JShell
Take a look at what you can do with Java 9's new HTTP/2 Client and the Process API all through JShell, the new REPL for Java!
Updated October 11, 2017
· 17,337 Views · 17 Likes
article thumbnail
Adding EntityManager.refresh to All Spring Data Repositories
Bring EntityManager.refresh to all of your Spring Data repositories with this quick, simple implementation while making sure you clear the hurdles.
September 25, 2017
· 38,206 Views · 6 Likes
article thumbnail
The JPA Entity Lifecycle
This look at the JPA entity lifecycle explores the lifecycle itself, the five stages of entity management, and callback methods on entity objects.
September 6, 2017
· 35,816 Views · 21 Likes
article thumbnail
4 Ways to Control Access to Spring Data REST
This article looks at four ways to allow or restrict access to Spring Data REST using RepositoryDetectionStrategies methods.
June 29, 2017
· 13,617 Views · 5 Likes
article thumbnail
Data Hiding Using JsonIgnore and Spring Data JPA
Take a look at a couple of annotations you can use to hide fields from a Jackson parser. We cover how to do it and the security concerns involved.
June 20, 2017
· 79,796 Views · 3 Likes
article thumbnail
Securing Spring Data REST With PreAuthorize
In this post we take a look at how to secure a Spring Data REST using Spring Security and Spring Boot. Come find out how straight forward this is!
June 11, 2017
· 61,804 Views · 5 Likes
article thumbnail
What Does Spring DelegatingFilterProxy Do?
You might see Spring's DelegatingFilterProxy crop up sometimes. It's actually a proxy for a standard Servlet Filter. Let's see an example in action with Spring Security.
May 30, 2017
· 34,361 Views · 9 Likes
article thumbnail
A Java 8 Streams Cookbook
If you're looking for a quick breakdown of Streams, look no further. This cookbook covers Streams' chief advantages, its operations, and a comprehensive example.
February 13, 2017
· 51,709 Views · 100 Likes
article thumbnail
How Lambdas And Anonymous Inner Classes Work
Anonymous Inner Classes and lambdas have some similarities, but their differences are important to know if you're going to use them in your work.
February 8, 2017
· 55,314 Views · 31 Likes
article thumbnail
Securing URLs Using Spring Security
Securing URLs using Spring Security is a pretty straight forward job. Read on to find out how to do it!
November 19, 2016
· 106,497 Views · 12 Likes
article thumbnail
Java Programs as Windows Services
Here's a step-by-step example of how to run a Java program as a Windows service.
November 1, 2016
· 56,447 Views · 16 Likes
article thumbnail
Solving Spring NoClassDefFoundError, ClassNotFoundException, and MethodNotFoundExceptions Errors
We take a look at some common Spring Boot questions when it comes to some popular exceptions. Read on to find out how to deal with them.
September 13, 2016
· 16,070 Views · 3 Likes
article thumbnail
Using @Named vs. @ManagedBean
Determining the best annotations to use for controlling JSF apps using different web containers.
August 29, 2016
· 28,894 Views · 3 Likes
article thumbnail
My Favorite Spring Data JPA Feature
I’m impressed by the complexity of query you can write using Spring Data. My favourite feature is returning the first or top records from a table.
July 1, 2016
· 46,901 Views · 26 Likes
article thumbnail
Calling Stored Procedures From Spring Data JPA
It is a common requirement to JPA connect to stored procedures or database functions. This article looks at how you can do this using Spring Data JPA.
November 30, 2015
· 239,685 Views · 21 Likes

Comments

Have It Your Way With MicroProfile GraphQL

Jul 17, 2020 · Lauren Forbes

My issue with GraphQL over REST is that with a REST service I can have an optimised query to a database to retrieve the data as efficiently as possible. But when I move to a graphQL the client can then pick and choose what fields they request and retrieving the data requested may be more efficient running different queries based on those selection.

The Complete Tutorial on the Top 5 Ways to Query Your Relational Database in JavaScript - Part 2

Jun 09, 2020 · Michael Bogan

I ended up using node-postgres since im generally talking to microsevices with smaller schema's and you can push code faster

Why Is Software Development So Hard?

Apr 14, 2020 · Michael Bogan

Great article. A lot of the problem with "Keeping up with technology" is that the underlying ideas dont change that much on a year to year basis, but you are learning new API's or syntax to solve the same problems.

Its like someone rearranging my garage a few times a year, and i spend the next few months finding out where they have put things before starting again

Spring Boot Best Practices for Microservices

Jan 06, 2020 · Charleigh Smith

I thought -

management.endpoint.shutdown.enabletrue

Would only enable the shutdown endpoint?

Microservices With GraphQL

Jun 06, 2019 · Arun Pandey

Problem with graphQL is that its not as simple to use as REST - you have to structure a GQL query/mutation to access the data. While REST is just call an endpoint - then use the data. I also think REST is easier to document

I can see why a high volume service like FB would use GQL - but for smaller sites I think REST is simpler

What Is the Difference Between Hibernate and Spring Data JPA?

Jan 24, 2019 · Duncan Brown

One thing I've found with microservice development is that I'm not mapping entity models as extensively as I once did with say JSF development. With the MS model it makes more sense to map the key relationships I need for each call, then use spring data repositories for access, rather than traversing a JPA model. Has anyone else found this?

When (Not) to Use Java Abstract Classes

Oct 29, 2018 · Dave Taubler

I think we'll see abstract classes used less in favour of interfaces with default methods

Multi-Release JARs: Good or Bad Idea?

Jan 04, 2018 · Mike Gates

This is a really good post - Im inclined to agree with you on MRJAR's being a bad idea. Just seems to pollute a codebase

Spring Boot as a Windows Service in 5 Minutes

Dec 30, 2017 · Duncan Brown

I might look at this too for an evaluation of options for spring boot

Spring Boot as a Windows Service in 5 Minutes

Dec 22, 2017 · Duncan Brown

Probably needs profiling - one of the advantages I see running this as a service is I can schedule a daily restart to clear memory leaks if any. It might be an unpopular approach - but it buys time to solve the real problem

Spring Boot as a Windows Service in 5 Minutes

Dec 22, 2017 · Duncan Brown

i dont think so - you can do that with procrun but its harder to implement

Spring Boot as a Windows Service in 5 Minutes

Dec 22, 2017 · Duncan Brown

i dont think so - you can do that with procrun but its harder to implement

Spring Boot as a Windows Service in 5 Minutes

Dec 19, 2017 · Duncan Brown

Im not sure I would run VisualVM in production - pre-prod environments yes, but not production

Spring Boot as a Windows Service in 5 Minutes

Dec 19, 2017 · Duncan Brown

as a general wrapper or with spring boot?

Spring Boot as a Windows Service in 5 Minutes

Dec 19, 2017 · Duncan Brown

yes - i normally have a directory per deployment

An Intro to JSP, JSF, and EL

Nov 29, 2017 · Mike Gates

I always liked the sql taglib on JSP best

Spring Batch CSV Processing

Nov 21, 2017 · Mike Gates

Nice article, but Im coming to the conclusion that external tables are a better way to load CSV's into databases than Spring Batch, even in circumstances where we want to process the data once loaded. Its simpler and quicker in my experience

Java 9 Streams API Using JShell

Nov 08, 2017 · Mike Gates

Well if you mean it returns all elements that satisfy the predicate, and in the case of ordered lists this is the elements to the left of the predicate.

What you are asking for is dropWhile - the opposite -

Stream.of(1,2,3,4,5).dropWhile(p -> p < 4).forEach(System.out::print);

Sneakily Throwing Exceptions in Lambda Expressions

Oct 03, 2017 · Grzegorz Piwowarek

Good post - is the reasoning something to do with the lambda compiling to a static method, so making all Exceptions unchecked means the calling methods signatures dont have to be changed?

Adding EntityManager.refresh to All Spring Data Repositories

Sep 26, 2017 · Mike Gates

Thanks Oliver. I based this post on a genuine issue I had and needed to expose the refresh method. The reason for doing it like this was this post http://forum.spring.io/forum/spring-projects/data/104364-entity-refresh-using-spring-data-jpa-module where you advise to expose refresh on a Repository.

Its a 2011 post, so things may have changed, but I felt it was a reasonable approach, but thanks for your feedback

A Clarified String Formatting Cheatsheet

Sep 22, 2017 · Mike Gates

Nice article - documentation marginally better in Java 9 - https://docs.oracle.com/javase/9/docs/api/java/util/Formatter.html

The JPA Entity Lifecycle

Sep 08, 2017 · Mike Gates

Thanks - Ive fixed the typo

Scala vs. Kotlin: Multiple Inheritance and the Diamond Problem

Jul 12, 2017 · Mike Gates

It looks like it - i wonder if there are any nuances

A Look at Spring Boot Admin

Jun 21, 2017 · Grzegorz Ziemoński

I was looking at this project last week as a spring version of django admin - looks a good project. I couldnt see how it would work at a microservice level as you would need it to be more centralised

How Passwordless Authentication Works

Jun 21, 2017 · Jordan Baker

I dont understand how its passwordless? You need a password to access your email - so its more a delegated password. 2FA sounds better

Data Hiding Using JsonIgnore and Spring Data JPA

Jun 21, 2017 · Mike Gates

My next post is conclusions and design considerations of using Spring Data REST, and one of the downsides is the level of access that exposing a Repository leaves, and whether you are better using a DTO approach.

Everything About Method Overloading vs. Method Overriding

Jun 15, 2017 · Mike Gates

You can also override default methods in interfaces -

interface Def1 {
public default String getString() {
return "Def1";
}
}

interface Def2 extends Def1 {
public default String getString() {
return "Def2";
}
}

Deploying Spring Boot Apps as Windows Services

Jun 12, 2017 · Matthew Casperson

Its also worth a look at procrun - https://www.javabullets.com/procrun-java-programs-as-windows-services/ - the advantage being procrun is used by apache projects

Spring Data JPA Auditing: Automatically Saving the Good Stuff

May 26, 2017 · Mike Gates

How does this compare to hibernate-envers?

EC Rejects Jigsaw

May 11, 2017 · Mike Gates

Good summary. I read the discussion on Hackernews and a lot of people were implying that IBM and JBOSS were purely motivated by politics and support of OSGI. But if you read the JBOSS blog the main issue was backward compatability being lost through Jigsaw, and their no vote was to allow time for this issue to be addressed. This was also the main objection of the London Java Community

Simple Spring Boot: Post

Apr 11, 2017 · Duncan Brown

Good article - I would have used the Spring Data framework for persistence - your implementation just leaves it to the implementer to decide. If that was the case I would have considered moving the data access to your PersonService?

Interface Enhancement in Java 8

Feb 24, 2017 · Arun Pandey

Yes that was the specific problem they wanted to solve - how to introduce API changes to an API structure that may not be under your control - and they would have struggled to solve it any other way. My concern is that default methods will be prone to misuse - but then again thats how languages evolve

Interface Enhancement in Java 8

Feb 23, 2017 · Arun Pandey

I cant decide if default methods are a great step forward or potential hazard. It depends on the usage as the use case for default methods is backward compatability in API's. I fear it will get misused

An Interview Question on Spring Singletons

Feb 20, 2017 · Shamik Mitra

Good explanation - but you can understand the confusion -

Java - One per Classloader

Spring - one spring bean per id per spring container

Integrate an H2 Database in Your Spring Boot App

Jan 12, 2017 · Jose Praveen

I was using this approach recently with spring security its worth a look on configuring 2 levels of security

CDI-JSF: Using the CDI @Observes

Nov 16, 2016 · Mike Gates

Good tutorial. Got a bit confused by the javax.enterprise.event.Event.fire method - and was trying to place it in the FireStation concept in your example, not the Event object

Why Java Is a Purely Object-Oriented Language... Or Why Not

Jun 16, 2016 · Naresh Joshi

Its not purely OO - but pragmatic OO - like you observe it uses primitives for compiler optimizations

10 Classic Books Every Serious Programmer Should Read

Mar 01, 2016 · Deepak Karanth

disappointed you used amazon referral links

Stack Overflow Driven Development (SODD) — It's Really A Thing

Jan 14, 2016 · John Vester

I dont think its that big an issue. Stackoverflow is the place to go to get quick answers to smaller problems - an example being best practice in a new version of a library or language, or to clarify syntax. But the moment the problem gets more involved then you are back hunting for blogs or reading the manual to understand how to implement the code. That said the best posts on stackoverflow are in the form of blog posts.

Calling Stored Procedures From Spring Data JPA

Dec 09, 2015 · Martin Farrell

Thanks for your feedback - The point i was trying to make is that to use this approach you must associate the annotation to a JPA object

A Developer's Perspective on Spring vs. JavaEE

Jun 18, 2015 · James Sugrue

I can work with both - but prefer spring simply because i can hit the ground running with it. You have projects like -

> spring boot for a quick start

> spring data allow you to quickly define your core DAO's

> Spring Loaded for hot deploy - you can get this for JEE but you have to pay

I also agree with the criticism of JSF - its ok but i find it too abstracted

3 Gifts for User Interface in CSS3

Aug 15, 2014 · Tony Thomas

I have the same issue with Lombok that you have cited - i like to know whats going on. The annotations seem like a good idea, but I like to see my equals, hashcode's and toStrings. I also think its important for developers to see this code as they apply a number of important rules in Java. With this in mind I just let the IDE create the methods


iphone gui testing

Oct 28, 2013 · Mr B Loid

Id also include androidkickstartr - great to get a base application integrating a number of the above projects (robojuice, sherlock)

User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: