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