WebRes.java 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import java.util.*;
  2. // recover Res.java
  3. public class WebRes extends java.util.ListResourceBundle {
  4. private static final Object[][] contents = new String[][]{
  5. { "CALC", "This is an example of stateless session bean.<br>" +
  6. "this is a sort of modeling for a calculator.<br>" +
  7. "a calculator must be initialized with 0.0 before every operation.<br>" +
  8. "so the calculator is proper for stateless session bean because of no needs for keeping the calculated result.<br>" +
  9. "this EJB has four business methods. those are add, subtract, multifly, and divide.<br><br>" },
  10. { "COUNTER", "This is an example of stateful session bean.<br>" +
  11. "this is a sort of modeling for a counter.<br>" +
  12. "a counter must keep the count value before every operation.<br>" +
  13. "if it doesn't, you can't expect the right value during sequential operations.<br>" +
  14. "so the counter is proper for stateful session bean because it must keep the count value.<br>" +
  15. "you can see two counters, counter1 and counter2.<br>" +
  16. "during sequential increasing and decreasing operations, <br>" +
  17. "CounterEJB gets the count value considering the former value.<br><br>" },
  18. { "PRODUCT", "This is an example of bean managed persistence EJB (BMP).<br>" +
  19. "contrast to container managed persistence EJB(CMP), in case of developing an EJB as BMP,<br>" +
  20. "you have to write the persistence logic by yourself.<br>" +
  21. "you can see the full source by clicking the view source link of this page.<br>" +
  22. "<br>" },
  23. { "CMP11", "Hhis is an example of container managed bean 1.1 (CMP 1.1).<br>" +
  24. "JEUS supports both CMP 1.1 and CMP 2.0.<br>" +
  25. "but CMP 2.0 has improved in many ways ( local interface, CMR, EJBQL etc..).<br>" +
  26. "we recommend CMP 2.0 instead of CMP 1.1.<br>" +
  27. "this sample is to manage books using the BookEJB complied with CMP 1.1.<br><br>"},
  28. { "CMP20", "This is an example of container managed bean 2.0 (CMP 2.0).<br>" +
  29. "JEUS supports both CMP 1.1 and CMP 2.0.<br>" +
  30. "but CMP 2.0 has improved in many ways ( local interface, CMR, EJBQL etc..).<br>" +
  31. "we recommends CMP 2.0 instead of CMP 1.1.<br>" +
  32. "this sample is to manage books using the BookEJB complied with CMP 2.0.<br><br>" },
  33. { "OTM", "This is an example of container managed relatinship which is newly entered in EJB Spec 2.0.<br>" +
  34. "it is similar to joining tables in the RDB.<br>" +
  35. "the relationship used this example is simply described as follows.<br>" +
  36. "a ship has many cruises but a cruise is only included in a ship.<br>" +
  37. "that is a typical one to many relationship.<br>" +
  38. "you can select the cruises information from a ShipEJB. also can select the ship information from a CruiseEJB <br>" +
  39. "without any hard coding only but stating the relationship in ejb-jar.xml.<br>" +
  40. "the relationship must be clearly described within an relationship element tag in ejb-jar.xml.<br><br>" },
  41. { "EJBQL", "This is an example of JEUS EJBQL extension.<br>" +
  42. "JEUS added various extensions as followings. <br>" +
  43. "-- JEUS EJBQL extension Keyword such as ORDER BY, ASC, ORACLEHINT, GROUP BY .. <br>" +
  44. "-- JEUS EJBQL extension Subquery <br>" +
  45. "-- JEUS EJBQL extension aggregate functions such as MIN, MAX, AVG, SUM, COUNT ..<br>" +
  46. "-- JEUS EJBQL extension additional functions such as CONCAT, SUBSTRING, ABS, SQRT .. <br>" +
  47. "you can see the detailed information in 11.4 chapter of JEUS Enterprise Java Beans Guide manual.<br>" +
  48. "in this sample, BookEJB uses aggregate functions.<br><br>" },
  49. { "MDB", "This is an example of message driven bean which is one of new features in the J2EE Spec 1.4.<br>" +
  50. "this sample is to make a file in your local file system.<br>" +
  51. "the words you entered below the text box are wrapped into a JMS Message.<br>" +
  52. "and your message driven bean captures the message and makes the file including your message.<br>" +
  53. "the file path is %JEUS_HOME%\\samples\\{hostname}.txt <br>" +
  54. "Write the message and see whether the file is created in the right path ! <br><br>" +
  55. "Make sure that JMS Home directry already exists and in that directory, JMSMain.xml exists.<br>" +
  56. "generally JMS Home directory is located in %JEUS_HOME%\\config\\{hostname}\\{hostname}_jms_{enginename}. <br>" +
  57. "please refer to ejb-jar.xml, jeus-ejb-dd_{modulename}.xml and JMSMain.xml.<br>" +
  58. "{xxx} is replaced with your real xxx name.<br><br>" },
  59. {"WARN", "Warining!! if you didn't deploy samples, EJB samples are not showed up right!"},
  60. {"MORE_EXAM","More EJB samples in %JEUS_HOME%\\samples directory. <br>" +
  61. "&nbsp;&nbsp;&nbsp;&nbsp;More Servlet and JSP samples in %JEUS_HOME%\\webhome\\servlet_home\\webapps\\examples"},
  62. { "CHARSET", "UTF-8" }};
  63. public Object[][] getContents() {
  64. return contents;
  65. }
  66. }