[Microcontainer] - Re: migrating from ServiceMBeanSupport
by jhalliday
> You are missing the point and some code/xml
Yes, thanks Ales, the missing link seems to be the functionality in TestServiceControllerLifecycleCallback. I had assumed that declaring the annotation was sufficient, but it seems that nothing in the current AS trunk actually does anything with that annotation, or at least not at a sufficiently early stage in the lifecycle to be useful.
The code in TestServiceControllerLifecycleCallback is generic, not specific to the TransactionManager service. IMO it should be present in the AS, but I don't see it. Do I need to include it in the TS side of the integration module? To my mind the functionality should really be provided via bootstrap-beans, so in the xml for the TransactionManager I can simply reference the ServiceLifecycle bean rather than having to declare it first. Or perhaps one of the existing beans already has this functionality?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116405#4116405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116405
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - In Linux environment , jboss-4.2.2.GA don't startup
by javang
Hi all
I am install jboss-4.2.2.GA in Linux environment ,the os env is os.version: 2.6.9-11.ELsmp and the java runtime env is java.runtime.version: 1.5.0_06-b05,but when i type ./run.sh script to start jboss Server, the server is not successful runing,I get some exception trace:
2008-01-01 16:23:37,537 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/ejb3.deployer/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive ejb3.deployer
2008-01-01 16:23:37,543 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@350ff423{ url=file:/usr/jbossB/server/all/deploy/ejb3.deployer/, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive ejb3.deployer
2008-01-01 16:23:37,550 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/jboss-aop-jdk50.deployer/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-aop-jdk50.deployer
2008-01-01 16:23:37,576 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/jboss-bean.deployer/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-bean.deployer
2008-01-01 16:23:37,648 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/jboss-web.deployer/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-web.deployer
2008-01-01 16:23:37,882 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/httpha-invoker.sar/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive httpha-invoker.sar
2008-01-01 16:23:37,891 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/jboss-web-cluster.sar/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-web-cluster.sar
2008-01-01 16:23:37,915 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/jbossB/server/all/deploy/snmp-adaptor.sar/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive snmp-adaptor.sar
Everyone can help me ,thanks a lot
Javang!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116394#4116394
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116394
18 years, 3 months
[EJB 3.0] - Re: Confused EJB3 Beginner - Ignored EJB3 Annotations
by skidvd
Aha! It turns out that my Annotations are not being ignored - I just did not understand that I can (apparently) not mix both field and method level Annotations.
My class has several read-only attributes (i.e. there is no associated set methods). In general, I would prefer to put my Annotations on the method level for code clarity sake. However, when doing this for the read-only attributes, I got an error complaining that a setter could not be found. This error message went away when I moved those Annotations to the field. Apparently though, this had the undersired effect of making all attributes 'field' access and effectively ignored all of my other method-based Annotations for columne name, length, etc.
So, my questions now are:
1. Is there an EJB3 standard way of mixing both field and method access types? I would like to have my default for method, but be able to override in exception cases such as the read-only attribute discussed above.
2. Is there a better way to handle read-only attributes that do NOT have an associated setter?
TIA!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116393#4116393
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116393
18 years, 3 months