Ashik Uzzaman

Ranch Hand
+ Follow
since Jul 05, 2001
Ashik likes ...
Java MySQL Database Spring
I live with my wife Shusmita, son Ahyan and daughter Suhaila in Fremont since 2005, shortly before joining Salesforce.com in San Francisco, California, USA. Although studied Economics in University of Dhaka, Bangladesh, I chose Software Engineering as my career with focus on Java and Object Oriented Programming. I am a passionate chess player and hold USCF Candidate Master title. I love to travel around with my family, read books, listen to music and write blogs. Read my IT thoughts at http://ashikuzzaman.wordpress.com, online diary of regular events at http://ashikuzzaman.blogspot.com and chess endeavors at http://dragonbishop.blogspot.com .
Fremont, CA, USA
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ashik Uzzaman

Hi,

I am evaluating a few template engines for a non-web based java processing program. There are so many available that I woould like to see what's your experience if using the template engines.

I liked Rythm (http://rythmengine.org/doc/feature#rich-function) but dont know if any large application have been using this successfully. Velocity was good when I used it more than 10 years back. But is it in active development any more? The last news I see in Apache Velocity home page is from 2010. What other ones would you recommend me to check considering I dont need any "View" layer at all for this? Its all macro based replacement of content.
thank you Jesper. Yes I saw it. But I preferred command line tools and hence went the other route.
2 years ago
I wrote a step by step instruction list while playing around with Spring Boot. Sharing with you hoping you will find it useful to quickly ramp up with Spring -

https://ashikuzzaman.wordpress.com/2015/06/04/spring-with-maven-using-spring-boot/
2 years ago
Hi,

I believe this topic has been discussed several times already but I want to blend a few more things from my perspective and see your recommendations here.

In my company I am in the server side Java/JEE and Cloud Computing platform (Proprietary Java like language) and don;t see scope in near future to work on mobile application development. However, for my personal development and to stay in touch with where the mobile and handheld device market is going on to prepare myself for the next phase, I thought to start developing some small applications.

Naturally, as I start looking into different places I see I have to choose between (or sequence between one after another) JME / Android / iPhone development. The first 2 are close but the 3rd one is also very popular. I have to start somewhere. Where do I start? Please let me know something other than "just start, choose any of this 3 to start with". My preference is something where the market is moving in next 3 to 5 years!

What was your starting point? What do you recommend me?
6 years ago
Oh that's wonderful! So, if all the deprecated methods are still supported from the birth of Java, I don't have any reason to be worried. Yes, with JRE6, my application still works. I am good then. Thank you all!
7 years ago
Thank you so much for the responses. It helps a lot!

Also from this http://tomcat.apache.org/whichversion.html it looks like Tomcat 7 needs at least Java 6. So my code written in Java 5 may or may not work. I will test quickly by deploying it in a Java 6 JRE with my existing Tomcat 6 to confirm I don't have too deprecated methods that won't be backward compatible in Java 6.
7 years ago
Thank you Tim. So looks like I am good. I will test in a Tomcat 7 container anyway to make sure the app is functional once deployed.

As I have figured out the servlet version that my app is using, I am confused if there is an easy way to find out the JSP version my app is using. Any idea how I can find it?
7 years ago
Hi,

Sorry of it sounds too trivial a question. I maintain a JEE web application running in Tomcat 6.0.29 container. My security team asked me to see if it would be a quick work to upgrade to Tomcat 7 without touching my webappp (or with minimal touching if I have to).

So I thought let's check what JRE version, Servlet spec and JSP spec Tomcat 7 supports in this link - http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html

* First looking into it, I think JRE 5 would be good enough. We are running 5.0.15 version.
* Is the Servlet API version it supports 3.0? Is it the minimal? What if my webapps is written in servlet 2.4?
* Is the JSP API version it supports 2.1? Is it the minimal? What if my webapps is written in JSP 2.0?

And now I wanted to check what my webapp is written in. For that I opened the web.xml file of my app and see the root element has a version attribute that says 2.5. This makes me think our application supports Servlet spec 2.5. Please correct me if I am wrong.

I am not sure how I can check the JSP version. Can you please help me with that?

* Are these version supports forward compatible (a 3.0 servlet container will support servlets written in 2.5 as well or a JSP page written in 2.0 will be working fine in a 2.1 JSP container)?
* Are these version backward compatible otherwise?
* Do I need to update my JRE also for Tomcat 7?

Any guidelines will be appreciated. Thanks in advance.



7 years ago
I have a few questions regarding connecting Tomcat to Apache.

In our system we have a hardware load balancer that talks to our different Tomcat servers, let's say Tomcat1, Tomcat2, Tomcat3 and Tomcat4. We are introducing session replication in it and hence, we are planning to add Apache Web Server in between hardware load balancer and tomcat.

We have tested that it works if we have 1 Apache server or 4 apache servers containing mod_jk module so that Apache can do the session replication between tomcats.

My first question is, can this be done the other way round? Can Apache run in the background and Tomcat stay in between load balancer and apache? I thought it's not possible but I wanted to be sure. In this case load balancer will forward the request to Tomcat and tomcat will forward the request.

If the answer to the above question is NO, in the first case do you prefer 1 apache server bs 2 apache servers vs 4 apache servers? I like the 2 apache approach.



7 years ago
Yes, Paul. I am really looking forward to it. Once I stayed a night in a hotel at 12000 feet height in Mammoth Lakes (1oo miles forward from Yosemite) where my wife was feeling the headache causing from lower oxygen level at that height. But I didn't feel any thing. So from that I am thinking may be 14500 feet would also be not too serious for me. Instead the cold is what I am very afraid of and I have get over it for this hike. My only thinking is that if my other 3 friends can do and if hundreds of people are attempting everyday during summer then I can attempt too.
8 years ago
Thanks Paul for the nice link.

One thing we already did was applying for hiking in four weekends of June and we are expecting we will get permit for one of those (Fen 15 was last date to apply for this year). We deliberately chose June so that we get a little bit of snow. Looks like hiking half dome successfully has made me a little bit over-confident. But as the arrow has been shot out of bow, I can't do much any more for this year.

We will know the exact date first week of April as part of the lottery result. But I have confronted a few issues in between that I have to sort out how to manage (production deployment in office at third weekend of June and how to manage things for my wife and son so that they are okay the 2/3 days I won't be at home). Considering i have managed those, my plan is to start hard training once I get the lottery results and the date. For now it's just Sunday morning one hike even that irregularly which I am not happy with myself.

I believe I can do this with adequate preparation. I am looking for advise from people who earlier attempted and passed or failed. In fact the most valuable advise would be people who attempted but could not make it either because of reduced oxygen or height fobia or problem with endurance for the 22 miles hike. I want to learn from them.

8 years ago
Is there any hiker here from West Coast, USA? I am a new weekend hiker in San Francisco Bay Area and last year completed Half Dome of Yosemite. Here are some details on that hike.

http://ashikuzzaman.blogspot.com/2009/10/victory-over-half-dome-of-yosemite.html

Our next mission is Mount Whitney where 4 of our friends decided to hike the one day trip there (start at 2 AM and come by evening). I have gone throiugh this book already but yet not sure how difficult is hiking Mount Whitney.

http://www.amazon.com/One-Best-Hike-Mt-Whitney/dp/0899974643/ref=sr_1_2?ie=UTF8&s=books&qid=1269199372&sr=1-2

I have heard only one out of every 2 people succeeds in hiking it. Is it so? Any good resource or pointers for me?
8 years ago
Is their any built in memory usage limitation for Tomcat 5? For example, we can add a JAVA_OPTS and specify -Xms and -Xmx to tell the JVM the maximum memory space that can be used. But if I have 8 GB RAM in my server and I tell Xms to be 4 GB and Xmx to be 8 GB to Tomcat 5, will it be able to utilize 8 GB memory if required? Is there a limitation around it for Tomcat 5 (like maximum 2 GB will be used)? And for Tomcat 6? I tried to find the answer in tomcat documentation without success.

Your comments will be appreciated.
8 years ago
I am using Redhat Linux Enterprise 4 that has Java version 1.4.2 installed. I downloaded the eclipse-java-galileo-SR1-linux-gtk.tar.gz file from Eclipse site and decompressed and put it into /us/local/eclipse location. But when I try to run it using ./eclipse & I see it gives me the error below. Any idea why and how I can resolve any library dependency issue that may be here?

8 years ago
In my Linux RedHat Enterprise 4.7/Tomcat 6/JDK 1.5.0.20 environment, I am seeing an error at runtime from my webapplication that tries to compile some java rules in XML file. I only have JDK 1.5 installed in my machine which I have indicated in ,.bash_profile as JAVA_HOME so that I don't use any other variable by mistake. Redhat installation came with JDK 1.4 whih I am not using. However, I don't know how come 1.2 is coming as per the log below. When I look at my ant build file, I see there are couple of eclipse related target, but those doidn't seem to be vulnerable to me. I don't have Eclipse installed and hence there should be no side effect of that.

Any idea if I am missing something very obvious?


8 years ago