Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Jaro Simak
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
 
Jaikiran Pai
Sheriff
Posts: 10447
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.
 
Ravi Kiran Va
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!