You need to annotate your PubServiceImpl with @ApplicationScoped to be managed by the IoC framework (CDI).
If you would need to initialize something, please do not use the constructor for that, add a method with the @PostConstruct annotation. Hope that helps. On Mon, Aug 10, 2015 at 11:00 PM, Santiago Gonzalez Toral < hernangt12...@gmail.com> wrote: > Yes, it compiles. I add the lmf-scheduler-3.1.0 and quartz-2.1.6 > dependencies to my project pom. The class implementing the example is in > here: http://pastebin.com/CBaxxLUr. And here you can find the log when > the marmotta platform starts: http://pastebin.com/4N18D5hH . The > scheduler Service module appears in the admin webpage too. > > On 10 August 2015 at 15:33, Sergio Fernández <wik...@apache.org> wrote: > >> Does it compile? Does your custom module depend on lmf-scheduler to add >> it to your launcher? Without more details it's hard to say more... >> >> On Mon, Aug 10, 2015 at 10:08 PM, Santiago Gonzalez Toral < >> hernangt12...@gmail.com> wrote: >> >>> I've already created a custom module for marmotta and then I added the >>> example code that i found in the lmf webpage for the QuartzService, but it >>> didn't start. >>> >>> El El lun, 10 ago 2015 a las 15:05, Sergio Fernández <wik...@apache.org> >>> escribió: >>> >>>> Hi Santiago, >>>> >>>> On Sat, Aug 8, 2015 at 12:15 AM, Santiago Gonzalez Toral < >>>> hernangt12...@gmail.com> wrote: >>>>> >>>>> I had a look at the example on how to use the scheduler module in LMF >>>>> at https://bitbucket.org/srfgkmt/lmf/wiki/Module-Scheduler. How can I >>>>> use this feature inside marmotta? I injected the QuartzService into my >>>>> custom service but I don't know how to start it. >>>>> >>>> >>>> In principle yes, Marmotta is compatible with them, but many >>>> dependencies may be outdated... We'd need to take a look to those old LMF >>>> modules. >>>> >>>> For adding custom code where later inject the QuartzService you need to >>>> create a custom module. A Marmotta module requires some conventions that >>>> are not always well documented, so I recommend you to create it using >>>> the marmotta-archetype-module and then add there your code. >>>> >>>> Cheers, >>>> >>>> -- >>>> Sergio Fernández >>>> Partner Technology Manager >>>> Redlink GmbH >>>> m: +43 6602747925 >>>> e: sergio.fernan...@redlink.co >>>> w: http://redlink.co >>>> >>> >> >> >> -- >> Sergio Fernández >> Partner Technology Manager >> Redlink GmbH >> m: +43 6602747925 >> e: sergio.fernan...@redlink.co >> w: http://redlink.co >> > > > > -- > Saludos > Santiago González Toral > Ingeniero de Sistemas > -- Sergio Fernández Partner Technology Manager Redlink GmbH m: +43 6602747925 e: sergio.fernan...@redlink.co w: http://redlink.co