• 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

Design problem

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am facing with some integration of web service with the web application.

First I am just explaining architecture of my application:
We have a web application that is running over a Tomcat web server. It has some basic set of operations like insert, search, edit and delete of employee. Now we need to expose those operations as a web service to client. So client can perform those operation from command prompt(run as a script file).

We are using AXIS2 to host those web services.

For that I already write down my request and Response XSD. Also I created WSDL files. by using WSDL2java tool I generated my skeleton's.
Now the problem is:
My skeleton needs to communicate with the code that is written in the web application. So how I can do it?
Means either I used that code as a jar file in service achive file(.aar) and use it. But in this case I am just duplicating my code.Do we have some other alternative in Java?
My problem in simple words how and service archive file(.aar) can communicate with the web archive file(.war) in some web server instance that is running in same JVM.

please if possible then give some time to this problem and help me out.
 
Ranch Hand
Posts: 354
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you really need an AAR file, you can keep all the stuff in your WAR file - this would of course require some changes in descriptor(s).
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But in this case I am just duplicating my code



Let me present my understanding of the problem. I am not sure I understood everything you said.

You have a web application .WAR that has a .jar which contains your application specific classes.

You would like to service enable the logic in the .jar and hence you created a web service with AXIS and created a .AAR that contains the skeleton of the service that you will provide.

You now want to know how to go about accessing the code in the .jar file that is in the .war so that the skeleton can access the logic.

Is this correct ? Also, what does this have to do with SCEA
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic