Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vijay Gadde
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • 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
 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic