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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:05:25+00:00 2026-05-29T05:05:25+00:00

Using NetBeans 7.1 / GlassFish 3.1, I created a new TimerSessionBean. @Stateless public class

  • 0

Using NetBeans 7.1 / GlassFish 3.1, I created a new TimerSessionBean.

@Stateless
public class NewTimerSessionBean implements NewTimerSessionBeanLocal {

    @Schedule(minute = "*", second = "0", dayOfMonth = "*", month = "*", year = "*", hour = "9-17", dayOfWeek = "Mon-Fri")
        @Override
        public void myTimer() {
            System.out.println("Timer event: " + new Date());
        }
}

How can I declare that the timer is non-persistent? http://www.theserverside.com/news/1363578/EJB-31-A-Significant-Step-Towards-Maturity says there is a method isPersistent but it belongs to the Timer interface.

I came to this question after reading a description of potential problems with EJB timers in this article: http://www.coderanch.com/t/477104/EJB-JEE/java/Java-EE-timer-service-periodical

  • 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-29T05:05:27+00:00Added an answer on May 29, 2026 at 5:05 am

    According to this article you can achieve this by by adding persistent=false on @Schedule

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

Sidebar

Related Questions

I have created and EJB with a remote interface: @Stateless public class TestSessionBean implements
I am using Netbeans 6.8 and Glassfish v3.0. I created an ejb module and
Start a new web application using NetBeans 7 on GlassFish 3.1 In index.xhtml body
I have created a Database Application using Netbeans, GlassFish and JavaDB. Now my controller
I'm implementing stateless session bean ejb3 in glassfish server using netbeans. First time, it
I'm using GlassFish 3.1.1. and NetBeans 6.9.1. In NetBeans, I created web application and
I am using netbeans glassfish bundle to create a webservice. I am adding operations
I'm using Netbeans 6.5 to generate the JAX-WS Metro service and Glassfish 2.1 as
I am using JSF 2.1, EJB 3.1, JPA 2.0, Glassfish 3.1.1 and NetBeans 7.0.1.
I am using Netbeans 6.9 and Glassfish 3.1 to create my web application. Now,

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.