-
1. Re: Correct Syntax for Service Bean
majohnst Nov 7, 2005 1:56 PM (in response to majohnst)anyone?
-
2. Re: Correct Syntax for Service Bean
dornus Nov 7, 2005 4:14 PM (in response to majohnst)@Service @Management(value = MyClass.class) public class Blah implements MyClass { private Blah() { System.out.println("Blah Service Loaded"); } }
-
3. Re: Correct Syntax for Service Bean
majohnst Nov 8, 2005 11:10 AM (in response to majohnst)It still doesn't seem to be acknowledging that this is a service bean. I can see from the jboss log that the bean is loaded, but the start() or create() lifecycle functions are not called.
-
4. Re: Correct Syntax for Service Bean
majohnst Nov 8, 2005 11:59 AM (in response to majohnst)I think I figured out my problem. My interface class did not have a start() function defined in it. Once I added that, the service started correctly.
-
5. Re: Correct Syntax for Service Bean
yantriki Dec 16, 2005 3:21 PM (in response to majohnst)I am having the same problem with my EJB 3.0 Service.
1. When I package my Service classes as .ejb3 and deploy it. There is no error, however the lifecycle methods are never called, so I am not sure if my service is getting deployed at all.
2 . When I package the Service classes as .sar file and deploy it, it expects the jboss-service.xml file and if defined it throws the following exception.
Caused by: java.lang.Error: Unresolved compilation problems:
Type mismatch: cannot convert from Service to Annotation
Management cannot be resolved to a type
Don't know what extension to use and how to deploy the EJB 3 Service application. Appreciate any help.