Post Subject : Tutorial on J2EE using JBOSS-4.x, Eclipse-3.x, Lomboz-3.x and 
PostgreSQL-8.x on Windows XP

Ref. 1 : Tutorial for building J2EE Applications using JBOSS and ECLIPSE 
(Chapter 6 : CMP Entity Bean)
         http://www.tusc.com.au/tutorial/html/chap6.html

Ref. 2 : Tutorial on J2EE using JBOSS, ECLIPSE and Lomboz (Forum on Ref. 1)
         http//www.jboss.org/index.html?module=bb&op=viewtopic&t=36910

Ref. 3 : Environment in use ;
- Windows XP SP2
- J2SDK 1.4.2_08
- Eclipse 3.0.2
- JBoss 4.0.2
- Lomboz 3.0.1 + emf-sdo-runtime-2.0.0
- PostgreSQL 8.0.3 (= DefaultDS)

Followings are some notes on the Chapter 6 (CMP Entity Bean) in Ref. 1

* Task numbers are based on Ref. 1. 
* No change has been made to the server configuration file 
(jboss402postgres.server) thus far.
* For "jboss-jaas.jar" & "jnet.jar" in the server definition file, it seems 
JBoss just ignore them even if exist. 

Task 1 : Create a CMP Entity Bean named "Item"
- Enter "DefaultDS" as a Datasource on the 2nd page of Lomboz EJB Creation 
Wizard.
- On creation of "ItemBean", check a point before proceeding further steps.
= make sure the XDoclet parts of ItemBean.java;
   :
  | *
  | * @ejb.bean name="Item"* jndi-name="ItemBean"* type="CMP"
  | * primkey-field="itemID" 
  | * schema="MyStoreItem"
  | * cmp-version="2.x"
  | * data-source="DefaultDS"
  | *
  |    :

Task 2 : Implement ejbCreate Method.
: (as per the steps in Ref. 1)
Task 12 : Add another business method to StoreAccess Bean.
- add getOutOfStockItems() method.

Task 13 : Add another business method to StoreAccess Bean.
- add getItemsBySupplier() method.
- generate EJB Classes.
- In ejb-jar.xml, add "ejb/" to the three items below in <ejb-ref-name> under 
"session";
  = ejb/CustomerLocal
  = ejb/ManagerLocal
  = ejb/ItemLocal
- In jboss.xml, change all <ejb-ref> and </ejb-ref> tags under "session" to 
<ejb-local-ref> and </ejb-local-ref> respectively.
  (see Task 10 in Chapter 5 of Ref. 1)
- deploy beans.

Task 14 and 15 : as per the steps in Ref. 1

For "SupplierBean.java";
Task 1 : Create a CMP Entity Bean named Supplier (2nd page of Wizard),
- note that the column name of Credit Limit is "CREDIT_LIMIT", not 
"CREDITLIMIT".
 
=== Current Status in Chapter 7 (MDB) ===
- tackling difficulties at Task 4 (Deploy the RequestItems Bean).
- trying modifications of settings, such as
  = switch using of jms folder under /deploy-hasingleton to /deploy
  = change settings in the related xml files etc.
- no success so far.


jbosszone


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881199#3881199

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881199


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to