• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP access to web service sunctionality

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all and thanks for reading this post.

I am relatively new to web services and I have what may be a simple question.

I would like to access some functionality within a web service that I am going to expose. It is a simple set of document functionality (insert, delete, search, etc) and can be either used as a web service or included within my web application for use within the web container (Weblogic 9.2) with Axis 1.4. Currently, Axis is embedded within the application.

What I would like to know is if there is a way to deploy this functionality as a web service AND at the same time have access to the functions from within my application (using a JSP or whatever). I have been told that for performance reasons, it is not a good idea to just access the web service from within my application by using a web service client.

Do I just have to make sure that the jar file that contains the web service functionality is included within the war file (in the correct directory) for the web service?

Thanks for your response in advance.

Scott Wilson
scott.wilson@cubic.com
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The jar file that makes up the WS will end up in the WEB-INF/lib directory, along with all the other web app jar files. That means the classes can be used from elsewhere in the web app as well.
 
Scott Wilson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your prompt response!

I was hoping that was the answer, but I just needed confirmation. I couldn't find that question/answer elsewhere.

Scott
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic