• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Overriding ejb-properties in a webservice (possibly with ejb-jar.xml)  RSS feed

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
normally, if you want to override some annotated properties an ejb, you can use the descriptor ejb-jar.xml (in meta-inf).

But what if you have an webservice endpoint based on ejb, like


Actually nothing special.

Does the ejb-jar.xml still apply. Where it should be put.

In my case I have an ear-application that includes an war-file with the service. Pretty normal I think.

I am particulary interested in overriding the ApplicationException annotation on some Exception classes, that
comes generated from a wsdl and are bundled in jar-file in that war-file.


Greeting
Jaro
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ApplicationException is a EJB semantic. So yes, you can use the META-INF/ejb-jar.xml to configure it.
 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you know that there is something called as "webservices.xml file" , whcih will help you specify what is the END Point and all other things .
 
Jaro Simak
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, finally I got the point. The bug was, that the service was packaged in the war-file and declared to be servlet.
The ejb features don't apply then.
I changed the packaging and put the endpoint to a regular ejb-module and the rollbacks work now fine
You have play then a little bit around with the web context and put the wsdl to the right place and some minor issues ..
The topic I worth to be described in some tutorial or blog. I found pretty much confusing stuff in internet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!