4 Replies Latest reply on Apr 21, 2009 2:47 AM by Stuart Douglas

    Using SAR(Service Archive) with Seam and JBOSS

    sascha usison Newbie
      Dearest Seam Users,

      I am trying to deploy a SAR(Service Archive) File within an ear file into the JBOSS Container.
      My Service Class is implementing the  org.jboss.varia.scheduler.Schedulable Interface and is configured within the  jboss-service.xml as an  mbean.

      `<?xml version="1.0" encoding="UTF-8"?>
           <!-- mbean code="org.jboss.varia.scheduler.Scheduler" name="jboss.org:service=SomeClass">
               <attribute name="StartAtStartup">true</attribute>
               <attribute name="SchedulableClass">SomeClass</attribute>
               <attribute name="SchedulableArguments">XXXX,XXXX,XXXX,XXXX,XXXX</attribute>
               <attribute name="SchedulableArgumentTypes">java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,</attribute>
               <attribute name="InitialStartDate">NOW</attribute>
               <attribute name="SchedulePeriod">60000</attribute>
               <attribute name="InitialRepetitions">-1</attribute>

      My EAR Structure looks like this:

        + lib
        + META-INF
        + jboss-seam.jar
        + myWeb.war
        + myServiceSar.sar

      Within my Service Class i want to inject a seam component with the @In Annotation which turns out to be always null!

      Does anyone know how to solve this problem or has anyone suffered the same problem ?? Is it possible at all ?

      Best regards