• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Deployment Descriptors in Websphere

 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,
following is how my session bean is represented in ejb-jar.xml. In this file extra attribute called "id" is added to various tags. Is this permissible according to ejb specs?
Also will be ejb application be portable (to different app server), with these kinds of deployment descriptors.

[ June 13, 2004: Message edited by: Prakash Dwivedi ]
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it's permissible -- in fact adding an ID attribute to any tag is permissible in any XML document -- it's in the XML specification. And yes, the files are completely portable.

Kyle
 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the explaination,
i am having one more doubt, that if i want to shift my existing ejb-application (ear file) which is running on some different app-server (say oracle 9ias) to websphere. In oracle 9ias deployment descriptors doesn't have id attribute. Also this application will not contain other websphere deployment descriptor files (like ibm-ejb-jar-bnd.xmi and ibm-ejb-jar-ext.xmi). So will i be able to deploy this ear file in websphere?
If not, is there any tool by which i can generate websphere specific deployment descriptors.

thanks
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simply import your existing EAR file into the WebSphere Assembly toolkit (ASTK) and then save the EAR file. The ASTK will add in the additional XML files.

Kyle
 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again,

I am very interested to learn more about deployment descriptors in websphere server. I read your article EJB Metadata in WebSphere 4.0 - A Tale of Four Files, and found it very useful, but i am having one doubt, will it be fine if i read from this article and work on Websphere 5, or is there some other article for websphere 5.

Thanks
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have not updated the article for WAS 5.0 yet, no, but the first article still applies (mostly) in WAS 5.0. The second one (on associations) is out of date since (as the article states) associations are part of EJB 2.0 and included in the standard EJB dd.

Kyle
 
That is a really big piece of pie for such a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic