• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic