Hi All,
I am facing strange issue with queryForList API.
String sql="select name from emp where empId=10";
List list = queryForList(sql);
Iterator itr= list.iterator();
if(itr.hasNext()){
map = (Map)itr.next();
LOG.info("name:" + map.get("name"));
}
Now this works as long as I deploy my application as WAR on webserver. But it stops working when I deploy it as packaged EAR.
When packaged as EAR
- map.get("name") returns null. But it works when i use uppercase.....i.e.
map.get("NAME")
When packaged as WAR
- it works for map.get("name") and map.get("NAME") also.
How come? whats the issue? Isnt it case -sensitive? is there any way to make it case-insensitive.
Thanks,
Shriram


Reply With Quote