Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8117145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:04:07+00:00 2026-06-06T04:04:07+00:00

I have a webservice using Hibernate as DAL – using MySql with InnoDB. Since

  • 0

I have a webservice using Hibernate as DAL – using MySql with InnoDB.

Since I want to make webservice calls really short (for better user experience in client side) I am using 2 threads with msg queue to do some work.

1 thread gets userId in the message, loads the user from the DB and gets it email address and send email to.

Second thread is used like this:
Webservice call…. doing some actions.
Adding ActivityLog into the DB.
Doing session.save( log ); session.commit();
Now we send message to the thread with the logId.
Message received – insert new entries into timeline table (userid, logId). Session is different session object than the main logic session object.

Should I have problems in this? in lazy loading? in the threads, since message is sent to the thread after commit()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:04:08+00:00Added an answer on June 6, 2026 at 4:04 am

    A Webservice -> Message queue architecture is pretty standard in case you don’t need synchronous reply to the web service.

    In the web service, store whatever you want into the database and the message queue will pick that up later.

    A different session is not a problem, but if you have a single static Session for each of these threads, they may be subject to Session bloat: objects piling up in the Session cache.
    More on this: http://suryagaddipati.wordpress.com/2008/02/15/hibernate-rich-clients-and-long-running-sessions/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have Writter a webservice using C#. I want to invoke these methods from
I have a Flex client making RESTful calls to a webservice using HTTPService. The
I have written a webservice using the PHP SOAP classes. It has functions to
I have created one application in flex that is accessing the Java webservice using
I have come up with the following code to call a webservice using client/server
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
I am communicating with a partner's webservice using proxy classes they've provided. I have
I have a webservice programmed in coldfusion which I'm attempting to consume using c#.net.
I'm using webservice to call other services. And I have to call many services
I am using Flex Builder 3 and visual studio 2010 I have created webService.asmx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.