Description: Java source code examples to localize the error message is displayed, in the preparation of the support program, always need to display some wrong information, support internationalization and localization program needs based on the information provided by the operating system to use the user s local character set to display appropriate error message. This program specifies an appropriate error message is displayed in accordance with the appropriate exception handling, it provides an appropriate error message for each exception.
Implementation and general ideas:
In the resource file to build an appropriate error message for each exception type, load these resources in the program which, as in the use of Errors
Resources were looking for roots, and use the exception object s class name as the resource name.
To Search:
File list (Check if you may need any files):
Count\.classpath
.....\.project
.....\bin\myejb\Count.class
.....\...\.....\CountBean.class
.....\...\.....\CountClient.class
.....\...\.....\CountHome.class
.....\META-INF\ejb-jar.xml
.....\src\myejb\Count.java
.....\...\.....\CountBean.java
.....\...\.....\CountClient.java
.....\...\.....\CountHome.java
.....\bin\myejb
.....\src\myejb
.....\bin
.....\META-INF
.....\src
Count