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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:24:26+00:00 2026-05-19T22:24:26+00:00

I am using JBoss5.1.x AS, EJB3.0. I am trying to add a job (using

  • 0

I am using JBoss5.1.x AS, EJB3.0. I am trying to add a job (using Quartz) to my deployment. I am registering a new Service, so it will init the scheduler on application deploy.

My problem is that the service never gets registered when I deploy my app.

My code:

Interface:

public interface ComponentMonitoringService
{
    void create() throws Exception;
    void start() throws Exception;
    void stop();
    void destroy();
}

Service:

@Service(objectName = "com.mirs.ecms.timer:service=ServerStartupManager")
@Management(ComponentMonitoringService.class)
public class ServerStartupManager implements ComponentMonitoringService
{
    private SchedulerFactory schedulerFactory = null;
    private Scheduler scheduler = null;
    Logger logger = Logger.getLogger("ecms.log");

    public void create() throws Exception
    {
    }

    public void start() throws Exception
    {
    // Write your startup code

    initScheduler();
    }

    private void initScheduler() throws ParseException, SchedulerException
    {
        schedulerFactory = new StdSchedulerFactory();
        scheduler = schedulerFactory.getScheduler();

        JobDetail startECMSJob = new JobDetail("startECMSJob", "group1", StartECMSJob.class);
        CronTrigger trigger1 = new CronTrigger("cronTrigger", "TriggersGroup1", "0 0/5 * * * ?");

        scheduler.scheduleJob(startECMSJob, trigger1);

        scheduler.start();
    }

    public void stop()
    {
        try
        {
            scheduler.shutdown();
        }
        catch (Exception e)
        {
            logger.error("ServerStartupManager Failure occured during Manager stop", e);
        }
    }

    public void destroy()
    {
    }
}
  • 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-19T22:24:26+00:00Added an answer on May 19, 2026 at 10:24 pm

    I found a solution.

    I was not using the right annotation. I have to use EJB3 annotations.

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

Sidebar

Related Questions

I am using Jboss5.1.x , EJB3.0 I am trying to configure Quartz. I get
I'm trying to implement stateless session bean ejb3 in jboss5 using netbeans6.8 as a
I am using restEasy(Restful implementation for jboss) ejb3.0, Jboss5.1.1 AS I did restful service
I am using jboss5.1, EJB3.0 and standalone java application as a 'subscriber' I have
I am using Jboss5.1, Tomcat 6, Ejb3.0 I was trying to do simple Ejb
Im using Jboss5.0 with mysql in my application. and there will be lot of
I'm using Jboss AS 7.1.1.final and I'm trying to add an oracle Datasource: <datasource
I'm trying to configure an ejb3 sample application, it's entities where mapped to postgres
Using jboss5.1.x, ejb3.0 This was driving me crazy for two day now: I am
I am using Jboss5.1.x, EJB3.0 I am into this subject for couple of days

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.