Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Hibernate Java Web application stops to give response on production environment

  1. #1
    Junior Member mils00710's Avatar
    Join Date
    Apr 2019
    Posts
    2
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Hibernate Java Web application stops to give response on production environment

    I have used the below properties file in my project but after the deployment of project in tomcat the application runs fine for 2 to 4 days in the production environment but it stops giving response for the request generated by the users of the application and I have to reload the application from tomcat and it works fine for 2 to 4 days and these task are done again and again,please help
    <beans:bean id="sessionFactory"
            class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
            <beans:property name="dataSource" ref="dataSource" />
            <beans:property name="hibernateProperties">
                <beans:props>
                    <beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect
                    </beans:prop>
                    <beans:prop key="hibernate.show_sql">${hibernate.show_sql}</beans:prop>
                    <beans:prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</beans:prop>
     
                    <beans:prop key="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</beans:prop>
                    <beans:prop key="hibernate.c3p0.idle_test_period">${hibernate.c3p0.idle_test_period}</beans:prop>
                    <beans:prop key="hibernate.c3p0.acquire_increment">${hibernate.c3p0.acquire_increment}</beans:prop>
                    <beans:prop key="hibernate.c3p0.min_size">${hibernate.c3p0.min_size}</beans:prop>
                    <beans:prop key="hibernate.c3p0.max_size">${hibernate.c3p0.max_size}</beans:prop>
                    <beans:prop key="hibernate.c3p0.max_statements">${hibernate.c3p0.max_statements}</beans:prop>
                    <beans:prop key="hibernate.c3p0.timeout">${hibernate.c3p0.timeout}</beans:prop>
     
                </beans:props>
            </beans:property>
     
     
        </beans:bean>

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    277
    My Mood
    Amused
    Thanks
    8
    Thanked 19 Times in 19 Posts

    Default Re: Hibernate Java Web application stops to give response on production environment

    Whole application stopped working after few days ?
    Whatever you are, be a good one

  3. #3
    Junior Member
    Join Date
    Apr 2019
    Posts
    25
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: Hibernate Java Web application stops to give response on production environment

    Please try restart

  4. #4
    Junior Member mils00710's Avatar
    Join Date
    Apr 2019
    Posts
    2
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Hibernate Java Web application stops to give response on production environment

    Yes for starting my application I have to reload it from tomcat.

    --- Update ---

    A restart of tomcat not needed only reload is needed and my application runs for 1 to 2 days only after the reload of the application.

Similar Threads

  1. Replies: 1
    Last Post: August 4th, 2014, 05:47 PM
  2. Implementation of web data into non-web Java Application
    By MikeJones in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 4th, 2014, 05:43 PM
  3. Java Web application Standards for web 2.0
    By srautpyaa in forum Java Theory & Questions
    Replies: 0
    Last Post: May 27th, 2013, 07:46 AM
  4. Web based java application
    By DAus in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 6th, 2013, 08:14 AM

Tags for this Thread