Spring Framework & Java EE Part 2

This is the second part of the my post on Spring & JEE first impressions. This part is a quick glance to development environments. Netbeans 7.2 is used for JEE and IntelliJ IDEA 12 is used for Spring Framework. IntelliJ IDEA is a general purpose IDE for Android, Java, J2ME, JEE, Spring ..etc.

Netbeans provides best integration with Java EE technology stack, it handles configuration automatically and helps developers with suggestions. Whenever an entity class is annotated Netbeans checks for persistent unit, if not available it makes suggestions for persistence unit.

netbeans-jpu

Also, It has also code generators for entity classes, especially ones from database tables. It generates necessary classes and named JPA queries.

netbenas-generated

netbeans-generated

Netbeans comes with Glassfish bundle, application can be deployed to the app server through one click. Everything is handled by IDE.

If you are on Spring Framework which is generally developed by Eclipse, you have to generate maven configuration and related dependencies for spring and sub spring projects. After having Spring libraries, there are configurations need to be set up for the application. Sometimes its annoying to define datasource, transactions, beans … etc. At this point IntelliJ IDEA helps to handle configurations easily. It can detect enabled modules in applications.

xml-beans

Syntax highlighting is amazing, it is available in almost any files, java, xml … etc. It can suggest which actions to take against problems.

xml-error

entityEntity generators work smoothly with any given datasource.

generation

No doubt that ORM is a power tool for managing data through OOP manner however, some times specific OOP queries needed. But, writing and testing these queries a little harder when compared to SQL since, there are no ORM manager. IntelliJ IDEA helps it with built in console for executing object queries inside the IDE without deploying application. The most amazing tool in the IDE (personal opinion).

jpa

This post is about comparing IDEs than technology stack. Next parts will focus on more related to technologies like Persistence, MVC, JSF and Security on Spring and JEE.


Spring Framework & Java EE Part 1

I’ve worked with Java Enterprise Edition 5 in a real enterprise environment but never had a chance for Java EE 6. Java EE is getting better in every release Java EE 7 is on the way and supports from companies increasing every year. A few months a go I started to use Spring Framework as my primary web framework for Java, It is too early to make comparisons but I can tell my first impressions on these two technologies.

Both two are open source and have a big community to support enterprise application development, spring seems more developers than JEE for now. Things that I like JEE ecosystem is , all components are developed (lead) by one company. The language itself Java, framework JEE, IDE Netbeans even database MySQL and the application server Glassfish. It provides really nice integration. Spring has STS but never used it and I haven’t seen anyone using it either. One thing that I don’t like Spring is configurations…. There are uncountable XML files and tags, in general I lost my self in it. This gap can be closed by Intellij IDEA which has better support for Spring than others. I’ll try to share my thoughts here for Spring + Intellij IDEA combination.

 


Cool Presentation

One day I’m planning to prepare a presentation like this which is belongs to Adam Bien. Its is really cool or geeky 🙂


“Secure Java For Web Application Development”

“Foundations of Security” kitabının arkasından okumaya başladığım “Secure Java For Web Application Development” kitabın sonua geldim. Kitap 300+ sayfa anlatılan içerik 100 sayfaya rahat sığar. Bazı konular çok kez tekrar edilmiş. Konular örnek bir uygulama üzerinden anlatılmış, yeni başlayanlar için oldukça ideal. Kitaptan beklediğim ve ismindede geçen Java’yı görmekti, malesef Java’dan pek fazla bahsedilmiyor  ve hatta Java Enterprise’ın ismi bile geçmiyor desem abartmış olmam. Çok detaylı teknik bilgi bulmak zor, bu yüzden genel bir kesime hitap ediyor.

Dr. Emin İslam Tatlı tarafından incelenen iki güvenlik kitabı da okunacaklar listemde yerini aldı. Okumaya başlayacağım birinci kitap “Architecting Secure Software Sytesm”.

 

 


“Foundations of Security” Hakkında

Geçtiğimiz hafta boş zamanlarımda okumaya başladığım “Fundation of Security: What Every Programmer Needs to Know” kitabı, an itibarı ile bitirmiş durumdayım. İsmindende anlaşılacağı gibi güvenlik ile ilgili temel bilgiler vermekte. Özellikle uygulama güvenliği açısından bir çok konu başlığını açıklamışlar. Kendi adıma konuşacak olursam, kitaptan herhangi bir şey öğrendim diyemem. Fakat, genel bir tekrar yapmış oldum. Bazı bilgileri kavramları yeniden hatırladım. Yazılım geliştirmeye yeni başlayan arkadaşlar için kesinlikle tavsiye ediyorum. Önümüzdeki hafta uygulama güvenliği üzerine (Java platformu tercihimdir) yeni bir kitap bitirmeyi planlıyorum.