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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:29:37+00:00 2026-06-02T02:29:37+00:00

I have a replicated cache running on a number of weblogic nodes which are

  • 0

I have a replicated cache running on a number of weblogic nodes which are also running OSB. The cache is started with the server as a startup class. It has a very simple cache of objects that simply track whether they are in use or not with a boolean attribute “available”.

From OSB I am making java callouts to the same class, which call “invoke” on the cache with a processor that marks the object as unavailable and then runs Thread.sleep(31000). This is a placeholder for some lengthy processing I want to add later.

What I want to happen, is if the invoke() call takes too long, the process should time out and return or throw an exception. So I have been trying to configure a request timeout of 30000 milliseconds to test this. Unfortunately I cannot figure out how to make this timeout happen.

I have tried:

  • Wrapping the processor in a PriorityProcessor and calling setRequestTimeout(30000) before invoke()

  • Adding <request-timeout>30000</request-timeout> to the <replicated-scheme/> element in the cache config

  • Adding <tasktimeout>30000</tasktimeout> to the <replicated-scheme/> element in the cache config

  • Adding <guardian-timeout>30000</guardian-timeout> to the <replicated-scheme/> element in the cache config

  • Creating a tangosol-coherence-override.xml and adding a guardian-timeout <init-param> to a <service> element who’s “type” matches the service “name” in the cache config

  • Changing the sleep() call to Thread.sleep(310000) just to see if any out-of-box default will kick in after 5 minutes.

None of these result in any kind of timeout, the processor simply sleeps for however long I told it to and then returns with no error.

Has anyone done something similar before and can give me some advice? It would be very much appreciated.

Thanks

James

  • 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-02T02:29:39+00:00Added an answer on June 2, 2026 at 2:29 am

    OK, so I have the answer, with some help from Tim Middleton.

    Basically the replicated cache doesn’t support timeouts, and it turns out that it wasn’t an appropriate choice for my system anyway!

    The solution is:

    1. Switch to a <distributed-cache> scheme in the cache config.
    2. Add a <thread-count> element to the scheme with a number > 1 (I chose 10 but it’s just however many concurrent instances you want to support).
    3. Use a PriorityProcessor to wrap the EntryProcessor and set the timeout with setRequestTimeoutMillis() before calling invoke(). (Note this is the first thing I tried, but with the wrong kind of cache as it turns out)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have written this little class, which generates a UUID every time an object of
Hy Guys! I have a list of ObjDay which could have replicated items. How
I have a legacy Alpha server with a RDB database. This db is replicated
We have an C# application which posts to a database which is replicated to
I have replicated a stripped-down version of my code that has recently been re-written
I have a chart (code to replicate will be below) that has two lines
Hi have made this function which is made to replicate an error that I
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
Have deployed numerous report parts which reference the same view however one of them
Possible Duplicate: Caching in asp.net-mvc i have an asp.net-mvc site and i am running

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.