[jboss-user] [JBoss Web Services] - How to define context-root or URL for web service?

Baradon Terendil do-not-reply at jboss.com
Thu Jan 20 10:17:44 EST 2011

Baradon Terendil [http://community.jboss.org/people/baradon] created the discussion

"How to define context-root or URL for web service?"

To view the discussion, visit: http://community.jboss.org/message/582125#582125


I would like to define the URL under which a web service is reachable.  My web service is based on a stateless session bean.  I know, that there is the @WebContext annotation, but I would like to keep my code free from any JBoss specific things.

The session bean/web service is implementen in a JAR file, which then is included in an EAR file.  In fact, I have several JAR files, some of them implementing their own web services.  All of them are included in the EAR file.  This EAR file is project specific, and I would like to define the URL (or at least the context root) in that file, leaving the JAR file untouched.

Is such a solution possible?  If yes, how can I achieve that?

Thanks and best regards,


Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110120/454ab4fa/attachment-0001.html 

More information about the jboss-user mailing list