• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploytool Question

 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
ejb-jar.xml
StorageBin.class
StorageBinBean.class
StorageBinHome.class
ejb.jar.ic.jar
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
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
<prim-key-class>java.lang.String</prim-key-class>
Now when I try to create the bean I get the following :
<prim-key-class>java.lang.Object</prim-key-class>
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
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic