• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Web Service - How to handle requests from Multiple websites while saving data

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Rancher Architects,

I am currently writing a Web Service application using Web logic workshop and Server. My web service would support 19 different website for user profile creation and login so for all I have in common Access Control and CommonProfile and for each site i have Site Specific tables so my createUserProfile web service should support all these 19website requests.

so for the same reason I create a WrapperMaster bean with all the Bean instances for these different tables ( ofcourse I am using Hibernate to persist this data).
My problem is, to handle the requests for different websites

So for createUserProfile request will have siteId as well, and based on this siteId I writen a Switch Case to process the request but javascript: x() I know its not correct way of doing things.
Any valuable suggestion please, THANKS,VIJAY
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be using the some unique identifier in the request to dientify the site.
You can use wither hastable or database to relate the unique id relationship with correct bean..which will persist the data for that id into db.
i am not sure but in ws-* stack, ws-resource should be able to help you in this?
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic