Hi,
I have a  jboss4.2.2, which run under windows for dev and linux for production.
All my jboss configurations files are same under linux (unbuntu) or windows.
I ve a strange difference
My EJB is with a int field;
I use a query ( Query q = em.createNativeQuery(request);)
Under windows I get my field as this 
 photoId=((Integer) rs[8]).intValue();
But it doesnt works under linux and i need to get a BigInteger.
photoId=((java.math.BigInteger)rs[8]).intValue();

So temporarly i do:
if(rs[8] instanceof java.math.BigInteger){
  |                     photoId=((java.math.BigInteger)rs[8]).intValue();
  |     }else{
  |             photoId=((Integer) rs[8]).intValue();
  |                     }

There is anybody who have an idea?
Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200820#4200820

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200820
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to