Ubuntu 8.10 – A Productive Java Development Environment

I recently started using Ubuntu 8.10 at my workplace as well. Till then, I have been using Ubuntu only at home. For me, Ubuntu@Work was very different from Ubuntu@Home. I mostly surf, blog, listen to music and play some games at home. But Ubuntu@Work was a completely different scenario.

Since I’m new to this linux stuff, it took me some time to configure things like static ip address, host names etc. But once everything was setup, things started moving quickly. I initially had doubt in my minds about the font rendering of NetBeans (or any swing app for that . . . → Read More: Ubuntu 8.10 – A Productive Java Development Environment

And now NetBeans 6.5 is there in my Ubuntu-8.10

NetBeans is my favourite IDE for java development. I’ve been using NetBeans from version 4.1 onwards and I can’t believe that it has progressed and transformed itself so well. Right from version 5.0 onwards, NetBeans has been making amazing strides in terms of developer adoption. And the recent 6.5 release is really fantastic. It’s fast, it’s responsive and got many new cool features. Though I use NetBeans at office which runs on Windows XP, I haven’t tried that yet on my Ubuntu-8.10. So, I thought it’s time to give it a go.

Installing NetBeans in Ubuntu in very easy. . . . → Read More: And now NetBeans 6.5 is there in my Ubuntu-8.10

Subversion and NetBeans – A quick start guide

Introduction:

Subversion is arguably the most popular version control system as of now. No wonder NetBeans has very good support for Subversion. I personally feel that a java developer must be familiar with both these tools. This article shall help you to get started with both these tools.

Objectives:

- To create a simple java project in NetBeans.

- To import the java project into the subversion repository.

- To commit the changes made in a java source file.

- To view the revision history of a java source file which was changed.

- To rollback to the . . . → Read More: Subversion and NetBeans – A quick start guide

Must have tools for a Java Developer

Apart from your favourite IDE, I feel, a Java Developer might be very productive with the following tools (in no particular order):

- Firefox (Do I need to say anything about it?)

- Apache Ant (Not needed, if you use NetBeans. NetBeans has got bundled ant)

- JEdit (Mainly for it’s wide range of plugins. I use it’s LogViewer and HexViewer plugin frequently. Also it has got excellent syntax highlighting for your properties file, java files, nsis scripts etc)

- Subversion Version Control System(Got excellent integration with NetBeans and Eclipse. You must consider it atleast for your personal development.) . . . → Read More: Must have tools for a Java Developer

Connecting to a database from a java web application

In these days of numerous java frameworks, we often forget or don’t care about some simple things. Though this post might not be very interesting to most of you, it might help some of those to whom this might be the information they are looking for. So bear with me.

Pre-requisites:

- Latest version of Tomcat (currently 6.0.16)

- A database (In my case, it’s mysql 5.0)

- Appropriate jdbc “driver” jar file for your database. (In my case, it’s mysql jdbc driverr)

. . . → Read More: Connecting to a database from a java web application

New features in EJB 3.1

Did you use EJB 2.x before moving to EJB 3.0? If so, you might be well informed about the “waves” of changes that EJB 3.0 brought in.

EJB was hated by the programmers because of it’s complex programming model and a “heavy weight approach” for developing applications. Yes, you know about the pain, might have experienced it and would have vowed never to use ejb again. Chances are there that you might have considered or even moved to alternate “light weight” frameworks like Spring.

Fortunately, the ejb spec designers listened to the community and came out with a much . . . → Read More: New features in EJB 3.1

NetBeans 6.1 stands up to its promise

NetBeans team just released their 6.1 Beta release and I was itching my hands to try it out. I’ve been using NetBeans from 5.0 release onwards (Matisse converted me from Intellij IDEA to NetBeans). I can see the progress NetBeans is making at an astonishing rate. (That too as an open source project)

Though I like and use NetBeans 6.0 a lot, I found it to be very slow when compared to Eclipse 3.3. I have explained about it here.

Especially I felt that code completion needed improvement. Eclipse beats NetBeans hands down in this area for sure.

So . . . → Read More: NetBeans 6.1 stands up to its promise

Continuous Integration with Hudson

Need for Continuous Integration:

If you have a reasonably big project with many users working on different modules, then you must use some continuous integration server to aid you in your project builds.

It’s really tedious to build, run unit tests and code coverage tests manually. One of the nice benefit provided by continuous integration servers is that they can build your source upon changes in your source repository.

Popular Continuous Integration Servers: 

Fortunately, there are many continuous integration servers out there to help you. Some of them are opensource and some of them commericial.

A few noteworthy open . . . → Read More: Continuous Integration with Hudson

Implementing session timeout in swing apps

If you are working in a web based project, the term “session” must be a frequently used one. “I want to implement a HttpSessionListener”, “How do I access http session?”, “Should i store my user state in http session or in a session bean?”.

But I just wondered, how to implement that in a swing application? (Sorry, i haven’t learn swing application framework yet)

Consider this typical scenario: A user has logged into the swing application and has opened some 2 or three windows (JFrames). Now the user goes somewhere leaving the system idle. How can we logout the . . . → Read More: Implementing session timeout in swing apps

Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.