Tag Archives: Java

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.

 

“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.

RXTX PortInUseException on Mac OSX

This was my first serial programming experience on Mac OS X with Java and it was painful. There is no official library for Java for writing/reading from serial interface. Open source libraries available but those depends on OS, and OS architecture and java versions. After required libs installed, I had to get list of all port on my mac using rxtx however, had to deal with with PortInUseException while opening a port. Thanks to this guy; solution is to set up a folder and required permissions at location /var/lock, then everything went very well.

After a few years I returned back to java, it still same java nothing much here :) I can handle it.

A Delayed Post

I don’t know why it takes so long to post something but significant things happened in last few weeks which made my entire life to change. I’m not going to share it at the moment, may be in time.

So, I want to mention some events that I wanted to write about but I couldn’t.
JavaDay Istanbul ’09, yes, I was there and events were based on JavaFX as JavaOne ’09. Some photos from the day.
25062009031
I liked touch wall (I made this word) JavaFX demonstration, it was funny and I also, admired the women who has spoken very fast and without any break in one hour about mysql.
25062009033
I know, many things happened about technology but the last one is Google Chrome OS. An OS with annoying features for Microsoft and Apple. I support you guys go ahead you really force some old guys to improve their products like Microsoft IE.

Software Development & Deployment with Google App Engine

I have been developing applications for 5 years and worked on wide range of programming languages and platforms. If we exclude my undergraduate studies (like; tiny applications working on embedded devices or cross platform compiled iphone apps … etc.) briefly my experience on software development;

  • php on unix/linux
  • java/j2ee using hibernate on unix/linux
  • java/jee using glassfish on unix/linux
  • asp/asp.net on windows
  • python using django unix/linux
  • python using django on google app engine

So, far I have dealt with many programming languages, platforms and most of them have painful development/deployment processes except one.  Google App Engine is the only platform that I have never had problems with software deployment.  I doesn’t matter which box you have (mac, win, linux ..etc)  for development, deployed application works as it in your local. You don’t have to worry about changes about model, app engine handles it smoothly. It is amazing. I have never seen such a thing before. Even I had problems with php but not with app engine. That’s why Google like companies must exits, they are the real innovators.

Tell Me Again, What was The Semantic Web?

My semantic web interest is almost two years old however, I haven’t focused it enough till this year. It was something like a magazine or a blog that I like to read or follow but never involved. Somehow, my viewpoint on semantic web extremely changed and I’ve started scientific (also business) researches on semantic web.

Today, I felt much better when I saw the following videos. It was a right choice to make investments on semantic web. I hope, it will much better… Thanks Cas for sharing these nice videos:


Future Internet Video from Castemelijn on Vimeo

Impressed Kevin Kelly’s presentation and the quote about web: “Have to get better in believing the impossible”

Tomorrow, I have a meeting with my advisers about Semantic Web for P2P networks and if it goes successfully, I’ll start build my project in the following weeks. First, I want to up and running simplest p2p network in my local machine using twisted on python or jxta on java. Then give this thing a mining: semantic …