The moose likes EJB and other Java EE Technologies and the fly likes Deploytool Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deploytool Question" Watch "Deploytool Question" New topic

Deploytool Question

Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
While following the Sun tutorial, I have noticed that in the StorageBin example that the name of the current JAR file is added to the Jar file. So the settings on the general page of the StorageBinJAR read as follows:
JAR File Name: ejb-jar-ic.jar
JAR Display Name: StorageBinJAR
Contents: META-INF
What I would like to know is how did ejb.jar.ic.jar get added to the EJB? Please help me with this as I am bewildered and can't seem to deploy an exact copy of the example code.
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
I still haven't managed to deploy my version of this example. I don't understand how you nest ejb-jar.jar files using the deploytool.
Another thing I have noticed while trying to resolve this issue is that in the supplied ear file from sun the ejb-jar.xml has the following line:
Now when I try to create the bean I get the following :
I am presuming this comes from the line of code in the StorageBinBean:
storageBinId = (String)context.getPrimaryKey();
Where the getPrimaryKey method of the EntityContext interface returns an Object which is cast into a String object and returned as the storageBinId. I don't however know how to edit the deployment descripter using the deploytool. Is it even possible. Although I am learning alot by delving into the code I am not progressing. Please help me clear these matters up
I agree. Here's the link: http://aspose.com/file-tools
subject: Deploytool Question
Similar Threads
The type javax.ejb.CreateException cannot be resolved
Lookup problem with local bean
How to call external ejb jar in J2EE Project
PlZZZZZZ How to call external ejb jar in J2EE Project
files in Class-path inside Manifest.mf