wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Deploy Entity Bean in J2EE  RI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Deploy Entity Bean in J2EE  RI" Watch "Deploy Entity Bean in J2EE  RI" New topic
Author

Deploy Entity Bean in J2EE RI

Dhanesh Kothari
Greenhorn

Joined: Nov 06, 2002
Posts: 28
Hi,
I have installed J2EE 1.4 Beta.
When I start J2EE server, I can see the server startup log showing all the services getting started properly at port 1050. My server.xml file mentions port 8005.
But there are 2 problems:
1> Which port I must be able to access my server from ?
what will my URL look like ?
will it be
A> http://localhost:8005 or
B> http://localhost:1050
2> In order to deploy an entity bean into my application server using Deploy Tool, the documentation says
"To further specify the bean's persistence, click Deployment Settings."
I do not see "Deployment Settings" option anywhere in the Deploytool utility.
Due to this the SQL does not get generated and obviously I'm not able to proceed further with the entity bean usage.
Can you pls let me know if there is something that I may have missed
Thanks for the help
-Dhanesh


SCJP, SCWCD, SCBCD, IBM OOAD-UML, SCEA
Kathy Sierra
Cowgirl and Author
Ranch Hand

Joined: Oct 10, 2002
Posts: 1572
Howdy -- there are two ways to get to the "deployment settings" in the deploytool, for an entity bean:
1) While you're in the "New Bean Wizard", on the screen that lets you choose your persistence management (the same screen where you choose your primary key class and persistent fields).
OR... if you've already built your bean:
2) Back in the main deploytool, go the left side where the tree structure is for your applications, and open the .ear file for your entity bean. When you see the 'entity bean' icon (looks like a little bean) for your entity bean, select it to highlight it. Then look at the middle where all of the settings are, and locate the tab at the top (this is BELOW the menu bar), that says "Entity" (there are tabs for "General", "Security", "Transactions", etc. but you need the one marked "Entity".
This gets you back to a screen that shows your persistence settings, and you can adjust them here. It will ask you for your Abstract Schema Name, and you can put in your EJB-QL for Finders/Select methods, as well as choosing the "Deployment Settings" screen. Under the "Deployment Settings" screen, you must specify the actual "Database" (click the "Database Settings" button), which just means specifying the database JNDI name (the *real* one that was used... if you want to use the default database, it is "jndi/Cloudscape"). Then you click "Generate Default SQL..." and you must verify that it did this correctly, which depends based on how you set up the original database. If you're having the RI actually *create* the database tables for you, then the SQL will probably work just as the deploytool generated it.
Cheers,
Kathy
Dhanesh Kothari
Greenhorn

Joined: Nov 06, 2002
Posts: 28
Thats the whole problem. My Deploy tool does not show "Deployment Settings" button in the entity tab.
Is there a way I can send you the screen shot of entity tab?
Also, any idea about the URL problem mentioned above?
Thanks for the help
-Dhanesh
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
J2EE 1.4 Beta
http://www.coderanch.com/t/158286/java-EJB-SCBCD/certification/Don-EE-SDK-Beta
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploy Entity Bean in J2EE RI