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

  • Home
  • SEARCH
  • 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 7689881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:16:02+00:00 2026-05-31T20:16:02+00:00

I found some threads saying this was doable, but did not find specific instructions

  • 0

I found some threads saying this was doable, but did not find specific instructions or config information.

I want to do this from Beanstalk as well: the app should get deployed to beanstalk with a config that points hibernate to the elasticache instance(s).

  • 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-31T20:16:04+00:00Added an answer on May 31, 2026 at 8:16 pm

    Yes, we were able to configure hibernate with 2nd level cache.. Not with beanstalk though.. This code should help you with it.

    <props>
                <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
                <prop key="hibernate.show_sql">false</prop>
                <prop key="hibernate.format_sql">false</prop>
    
    
                <prop key="hibernate.generate_statistics">true</prop>
                <prop key="hibernate.cache.use_structured_entries">true</prop>
                <!-- prop key="hibernate.hbm2ddl.auto" >update</prop -->
                <prop key="hibernate.jdbc.batch_size">100</prop>
    
    
                <prop key="hibernate.cache.provider_class">com.googlecode.hibernate.memcached.MemcachedCacheProvider
                </prop>
                <!-- Cache disabled -->
                <prop key="hibernate.cache.use_query_cache">true</prop>
                <prop key="hibernate.cache.use_second_level_cache">true</prop>
                <prop key="hibernate.memcached.servers"><elasticachehostname>:11211</prop>
                <prop key="hibernate.memcached.cacheTimeSeconds">300</prop>
    
    
    
                <prop key="hibernate.memcached.connectionFactory">DefaultConnectionFactory</prop>
                <prop key="hibernate.memcached.clearSupported">false</prop>
    
    
            </props>
    

    You would need the hibernate memcached jar as well

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

Sidebar

Related Questions

I have found some threads on this but they are three years old. Does
I did a google search and found some forum threads explaining it won't work
I found some information about this on Scott Hanselmans Blog Does anybody exactly know
I found some other questions about this, but they didn't work for me :(
this is a ffmpeg issue. I've got this error saying it could not find
I found some mapkit code on the internet that looks like this: - (void)recenterMap
I have found some broken threads across the web where people claim to be
I have found some threads that explain why C++ separates .cpp and .h files
I'm developing a webcrawler, but often after a short time executing (minutes), some threads
I've found some good questions and with good answers for naming threads in Delphi.

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.