• 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

can we use webservice for sending bulk of VO object to client?

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in my project we used EJB for Swing client to access data from server. later we decided to replace wbservice instead of EJB for using same http port because the client only ready to provide single port not more than one port. so my question is can we send array of VO with large data more than 50000 thousand VO object in a single request..please suggest me..

In my knowledge webservice used to move simple message oriented service not suite for big object oriented class support ..please suggest mes
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I would consider the following alternatives:
  • RESTful web service.
    If the client and service does not need security or any other WS-* features and you can model the service as manipulation (retrieval) of a resource, then I would consider RESTful web services. I would also consider retrieving smaller chunks of data at a time using a mechanism that reminds of the SQL start row and limit mechanism and/or a mechanism similar to lazy loading of objects further down in the object-tree.
    The drawback with this approach is that you won't be able to easily convert your existing EJBs to web services. Also, if you need others to be able to discover the service and learn about its interface then there is (not yet) anything as established as the WSDL for SOAP web services.
  • SOAP with attachments.
    Send the VOs as an attachment to the SOAP message. When using SOAP with attachments, you can enable automatic message optimization (MTOM). You are also free to serialize the VOs using other technologies, for example Google's protobuf http://code.google.com/p/protobuf/.
    I would do some experimenting regarding the combination of serialization technology for the VOs and MTOM to see what the best choice is.
    Advantage here is that you can easily convert your existing EJBs to web services. However, if you choose to enclose the VOs as an attachment, you may still have to do some programming.

  • Best regards!
     
    Kaleeswaran Karuppusamy
    Ranch Hand
    Posts: 155
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    can we implement any one of the j2ee authentication method when implement RESTful webservice.
     
    Ivan Krizsan
    Ranch Hand
    Posts: 2198
    1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi!
    Yes, you can use for instance Spring Security to protect your RESTful web service. Take a look at this webpage:
    http://mrhaki.blogspot.com/2009/02/use-spring-or-acegi-security-to-protect.html
    Best wishes!
     
    reply
      Bookmark Topic Watch Topic
    • New Topic