tchangu's blog
Glassfish - Role Based Access Control (Part 1)
Recently I have been exploring the various security features in Glassfish AS. In this blog entry, I hope to share some of my initial findings related to role based access control.
Glassfish Persistence (Part #2)
Switching the Java Persistence provider is straight forward and seamless if project /product uses Java Persistence API (EJB3.0) either as a standalone framework component or in a container managed environment.
Glassfish Persistance API
Lately I have been tinkering with Glassfish and happened to look at the persistence API. The persistence API is based on the EJB 3.0 specification and is made available as a standalone component. I must admit that it’s fairly straight forward and a pleasure to use.
A simple utility
Often we see code like this.
Connection conn = DriverManager
.getConnection("jdbc:mysql://localhost/springdao?user=vk&password=password");
As it can be seen above, the password is embedded in the source as clear text.
Open Office Java API
When I worked for a consulting firm I got an opportunity to work on a Strategy & Operations pursuit. The task was to fill up a 20 page MS Word report template with lots of data from MS Access and Oracle (which was backend to some ERP system).
Dealing with Command Line Parameters
One of the things that keep popping up often is a need to write batch programs that is started from command line. Every single time its always been either reinvent the wheel or copy/paste from old code. So recently decided to put an end to this practice by looking at CLI solution from Apache.
Hashmap Implementation
Always thought that the Hash implementations (table & map) used buckets that are prime in number. But recently, after digging around the source code to see what that default size resulted in a bit of a puzzling situation...
So let me start with a bit of rambling of my understanding about hashtables.





