Link to home
Start Free TrialLog in
Avatar of pleasure
pleasure

asked on

How to deploy JBoss Web Services under my own Application?

hi all,
I had deployed a web service in my JBoss 3.2.5 Application Server. In order for client to consume the service, the client is required to set endpoint to something like http://localhost:8080/jboss-net/services/myService.

Is it possible for to deploy such that the Web Services is actually deployed under my application. Which mean the client is required to  set the endpoint to http://localhost:8080/myApplication/services/myServices instead of http://localhost:8080/jboss-net/services/myService?

Please guide...thanks
Avatar of rama_krishna580
rama_krishna580
Flag of United States of America image

Hi,

Look at this examples here, it may help you to set the webservice under JBoss...
http://www.jboss.org/wiki/Wiki.jsp?page=JBossWS

R.K
Avatar of pleasure
pleasure

ASKER

hi R.K,
thanks for the response, i have gone through the website for few times already. Unfortunately, the web site did not mention anything on what i'm going to achieve... in fact, it's hard hard for me to find the solution in internet..:(
I don't think it is possible to deploy webservices to something other than /jboss-net/

If you want it under your app, you could look at creating the web service manually using Apache Axis or Apache SOAP (much older than AXIS and more work).
hi Davey,
Actually i managed to deploy a web services under my own application.

These is how I make it happen:
1.Copy all neccesary jar files (axis.jar, jaxrpc.jar...etc) into WEB-INF\lib folder.
2.Modify my web.xml so that when user request a web service, it will be handled by Axis.

and so far it is working.

But I'm still wondering will this cause any security issue. Once you deployed jboss-net, you will be able to see all the web services deployed in that server. Is there a method for us to control this??

Are you still using jboss-net then or just Axis?
I'm using JBoss-Net, i copied all jar files in jboss-net.sar and archieve in a single jar file (says JBoss.Net.jar). Then i put the jar file (JBoss.Net) into my WEB-INF\lib.
ASKER CERTIFIED SOLUTION
Avatar of DaveyEss
DaveyEss

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yupe, correct. If JBoss.Net also deployed, that mean peoples still can access to my web service thru JBoss-Net...:p