Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Whats the scoop on deployment descriptors

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some of my reading indicates that the 'ejb-jar.xml' file is the deployment descriptor and other reading says its the "MyBeanDD.ser" file. Whats the scoop and how do I create a deployment descriptor?
Thanks,
Billy
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Both of it is right.
.ser file is a deployment descriptor files for EJB's which complies with the EJB 1.1 specification and .xml files are those which comply with the EJB 1.2 specification and above.
Apparently the reason for changing from a serialized format of storing deployment descriptors to a xml format was for better readability and modifiability.
cheerio
Nitin
 
Nitin Shivaram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
to answer your other question, well it depends on the EJB server you are using, please consult the server manual.
Nitin
 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well theres a correction to the answer given above.
The .ser file is for EJB1.0 and XML is for EJB1.1 spec
Hope this helps
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Bill
What you have read is right "ejb-jar.xml" is the deployment decriptor. The xml descriptors were introduced with ejb 1.1 specification. "*.ser" was used with ejb 1.0 specs..
You don't have to worry about creating/writing the xml descriptor ,bcas the deploytool automatically creates. If you are creating the jar file on you own through " java cf ....." then you have to write the xml descriptor and other required xml files ...This will be a cold deployment..Hope you know that..
Cheers..Johnson
 
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic