remulaktomcat

所属分类:书籍源码
开发工具:Java
文件大小:527KB
下载次数:6
上传日期:2005-07-29 16:48:17
上 传 者libra1073
说明:  《Developing Applications with Java and UML》一书的源代码。

文件列表:
RemulakWebApp\images (0, 2001-12-30)
RemulakWebApp\images\add.gif (979, 2001-05-24)
RemulakWebApp\images\delete.gif (1027, 2001-05-24)
RemulakWebApp\images\edit.GIF (990, 2001-05-24)
RemulakWebApp\index.html (384, 2001-05-22)
RemulakWebApp\remulak.ddl (1964, 2001-12-29)
RemulakWebApp\rltnCustomer.jsp (2626, 2001-06-02)
RemulakWebApp\rltnEntry.html (384, 2001-05-22)
RemulakWebApp\rltnInquiry.jsp (5864, 2001-12-18)
RemulakWebApp\src (0, 2001-12-30)
RemulakWebApp\src\com (0, 2001-12-30)
RemulakWebApp\src\com\jacksonreed (0, 2001-12-30)
RemulakWebApp\src\com\jacksonreed\AddressValue.java (1288, 2001-05-25)
RemulakWebApp\src\com\jacksonreed\CustomerBean.java (9507, 2001-05-30)
RemulakWebApp\src\com\jacksonreed\CustomerDAO.java (10734, 2001-12-23)
RemulakWebApp\src\com\jacksonreed\CustomerDAO.java.bak (10708, 2001-12-23)
RemulakWebApp\src\com\jacksonreed\CustomerDAOAppException.java (596, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\CustomerDAODBUpdateException.java (630, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\CustomerDAOFinderException.java (627, 2001-12-01)
RemulakWebApp\src\com\jacksonreed\CustomerDAOSysException.java (650, 2001-12-01)
RemulakWebApp\src\com\jacksonreed\CustomerValue.java (2109, 2001-05-30)
RemulakWebApp\src\com\jacksonreed\DAOAppException.java (565, 2001-05-30)
RemulakWebApp\src\com\jacksonreed\DAODBUpdateException.java (595, 2001-05-30)
RemulakWebApp\src\com\jacksonreed\DAOFinderException.java (568, 2001-05-30)
RemulakWebApp\src\com\jacksonreed\DAOSysException.java (554, 2001-05-30)
RemulakWebApp\src\com\jacksonreed\DataAccess.java (1020, 2001-05-31)
RemulakWebApp\src\com\jacksonreed\index.html (384, 2001-05-22)
RemulakWebApp\src\com\jacksonreed\RemulakFinderException.java (552, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\RemulakServlet.java (18266, 2001-12-18)
RemulakWebApp\src\com\jacksonreed\rltnCustomer.jsp (2626, 2001-06-02)
RemulakWebApp\src\com\jacksonreed\rltnentry.html (384, 2001-05-22)
RemulakWebApp\src\com\jacksonreed\rltnInquiry.jsp (5864, 2001-12-18)
RemulakWebApp\src\com\jacksonreed\RoleValue.java (832, 2001-05-21)
RemulakWebApp\src\com\jacksonreed\TranAppException.java (576, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\TranBeginException.java (480, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\TranCommitException.java (590, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\TranRollBackException.java (598, 2001-05-29)
RemulakWebApp\src\com\jacksonreed\TransactionContext.java (5671, 2001-12-23)
RemulakWebApp\src\com\jacksonreed\TranSysException.java (593, 2001-05-29)
... ...

************************************************************************ Update Log: ======================================================================== Updated 12/29/2001-Changed code to use HypersonicSQL Java Database engine Updated 12/18/2001-Initial Placement ======================================================================== These instructions are for implementing the non-EJB implementation of the samples found in the book. This will work with any product that provides Servlet container services (i.e., Tomcat, Resin, Weblogic, Websphere). Remember, you don't need to use EJBs to use popular EJB-container products like Weblogic and Websphere to exercise the non-EJB parts of the code. These instructions are geared towards Tomcat which can be downloaded for free from the Apache Group at http://jakarta.apache.org. However, this non-EJB implementation should work in any servlet container product, you just might have to tweak the installation a bit for your unique environment. The DBMS Saga: ============== For those who care about history, I Initially planned to implement all the samples using the cloudscape Java DBMS. However, this proved dicey at best because it is no longer a free product after being bought out by IBM. Although it still ships with some products (i.e., Weblogic from BEA), but even then, the license's duration is questionable. So, for a brief time, just to get the code out there for review, I supported it with Microsoft Access. I know, this wasn't fair to the Unix folks so I went on a hunt. I didn't want a C-based engine as that would have required unique downloads based on the platform. I want to thank Floyd Marinescu at theserverside.com for recommending a non-supported, freeware, all Java DBMS, called HypersonicSQL. It is really cool and is very lightweight. The good news is that I use it in both the non-EBJ and EJB solutions...so the DBMS saga has been settled. I am thankful to all my Unix buddies out there who stood by me while I was stuck without a more generic DBMS solution. Instructions for Installation: ============================== 1. Unizip the remulakTomcat.Zip file into your Tomcat Installations "webapps" directory. After doing this, there should be a new directory called "RemulakWebApp" under "webapps". (remember, eventhough the download has the word Tomcat in it...there is nothing unique about tomcat in the code). 2. You now must start the HypersonicSQL database engine as a standalone server. Everthing you need is in the "../webapps/RemulakWebApp/WEB-INF/lib" directory to do this. You start the database as follows using the "lib" directory as your base: "runServer -database remulak" This will start the HypersonicSQL database using the pre-built tables in the database called remulak. You should get a message saying version 1.4 is started. 3. Start Tomcat (or your favorite container product) 4. Open up a browser, and assuming you are running Tomcat on your local machine, type in: http://localhost:8080/RemulakWebApp/index.html This should get you going. There is already one Customer in this database, try customer number "abc1234" Other Stuff: ============ 1. All the source is the ../RemulakWebApp/src" directory. 2. There is a nice tool to look at the data in a HypersonicSQL database (or any other database for that matter. Enter this command once you have started the standalone server. From the same "/lib" directory, enter: "run DatabaseManager" You will be presented with a "Type" dropdown...select the option titled, "HypersonicSQL Server". Everything else just defaults once selecting that option. You should now be able to enter queries against the remulak database as it will be pointing at the Database you started previously using the "runServer" command. All the HypersonicSQL goodies can be found in the hsql.jar residing in the "/lib" 3. If you want to rebuild the remulak database as it was when you first downloaded the code, then start the standalone server as described above. Then start the DatabaseManager application as described above. Drop all the tables and then open the script called "remulak.ddl" which can be found in the "./RemulakWebApp" directory and execute it. 4. I am the first to admit, this code is framework code and has no "eye candy". It is meant to show the foundations of the patterns and approaches I cover in the book. Also, many of the more experience folks will look at things like RemulakServlet.java and say, "gosh, why didn't this guy use the command pattern or perhaps struts to remove the if-then-else logic?". You're right, in a production environment I would do exactly that and I mention that in the book as well. However, I find that too many layers of abstraction also leads one to also say, "gee, I can't see the forest through the trees". Rest assured though, I intend to place a separate download on the website that will implement much more of the "eye candy" side of things (i.e., JNDI lookups of datasource, Command pattern in the Servlet, More rigorouse editing of the user input from the browser and perhaps use the struts common error handling tablibs). 5. Please feel free to throw all positive and negative comments my way at prreed@jacksonreed.com or visit my website at www.jacksonreed.com. "may all your objects be cohesive and loosely coupled"...Paul Reed

近期下载者

相关文件


收藏者