Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Referencing deployment descriptor from JEE application in WebSphere  RSS feed

 
David Howie
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have some unique requirements in which the application needs to read its own application and web deployment descriptors at run time. We currently have this implemented by using Apache Commons Digester to parse the application.xml, web.xml, and associated WebSphere XMI files. The current implementation will fail when we move from WAS 6.1 to WAS 7.0 because IBM has changed the XML format of these files. I was looking at the javax.enterprise.deploy.* APIs and was wondering if there is a way I can leverage the APIs from my WebSphere application to read the deployment descriptors, thereby isolating my application from future deployment descriptor changes when migrating to another version of WebSphere.

Does anyone have any suggestions.

Thanks
Dave
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but I'm struggling to understand why you'd need, or more importantly, want, to do this.
 
David Howie
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a custom security framework that extends jee security which requires us to parse the deployment descriptors. In hind-sight we could probably have implemented our framework leveraging the WSSubject and thus not had a need to parse the deployment descrptors. Anyway, still looking for a way to use the javax.enterprise.deploy.* APIs to access the deployment descriptors for a JEE application from the application itself.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!