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 7402541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:46:10+00:00 2026-05-29T04:46:10+00:00

I have a few camel routes that call an external web service, i need

  • 0

I have a few camel routes that call an external web service, i need to manage a session pool for this web service, keeping a few sessions open and reusing idle ones each time a camel route needs one.

Which is “safer” :
– managing/persisting the session data in a db using JDBC for example or
– implementing a static or singleton pool using apache-commons pool for example

  • 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-05-29T04:46:10+00:00Added an answer on May 29, 2026 at 4:46 am

    Your session in WebService is represented by some SessionID, which you need to save/pool.So you basically need to pool WebService response (or part of it) which is returned by login operation. This response may leave in pool no longer then session timeout on WebService side.

    If your WebService session is valid for days on server side and you want to recover your opened sessions after e.g. crash on client side, or you want to share opened sessions among several clients via DB, then I would use DB.

    Otherwise if you have only one client, or it is OK that each client has it’s own small cache, I would use in-memory pool. As subalternative you may think about sharing this pool among clients / multiple applications by means of Ehcache/Terracotta. And, by the way, these caches allow you to dump the pool contents contents to disk, which might be a good alternative to DB out-of-the-box.

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

Sidebar

Related Questions

I have data grids on my webpage that need to be refreshed every few
I have few basic questions on session management in GWTP. Now, we create a
I have few basic questions on session management in GWTP. Client : GWTP, Server
I have few question in this regard When you create an internet page, does
i have a few li elements created like this: echo '<ul>'; foreach ($test as
I have a few images with some text, I need to show the image
In my app, I have a few forms that can be accessed from different
i have to implement Picasa client for iPhone. I have few queries in that
I'm a C programmer came across this Delphi function and have a few questions.
I have few questions about ssis transction isolation levels. consider a scenario:I have an

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.