简体   繁体   中英

GlassFish regional settings - JPQL query ORDER BY

My JPQL query contains ORDER BY on column which contains national characters (polish). On test machine ordering is ok, but when I deploy to production names with polish characters are at the end of the list.

Both machines use the same Glassfish version and connect to the same remote db (oracle 11). The difference is testing machine has Windows XP Polish, JDK 7u3 32bit, production has Windows 2008 Server English, JDK 7u3 64bit.

I suppose Java uses language from OS and this affects db connection. How can I change regional settings that Glassfish use?

尝试像这样在启动文件中设置jvm参数:

java -Duser.language=pl -Duser.region=PL .....

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM