[JBoss AOP Development] New message: "Field annotation using JBoss AOP"
by MK Song
User development,
A new message was posted in the thread "Field annotation using JBoss AOP":
http://community.jboss.org/message/527339#527339
Author : MK Song
Profile : http://community.jboss.org/people/mksong
Message:
--------------------------------------------------------------
Hello,
I wanted to test 'field annotation' using JBoss AOP.
However, the POJO, *BankAccount was not be able to be enhanced.*
Is there the way to enhance it?
* Very simple program has been attached.
C:\..\JBossAOPTest4>ant
Buildfile: build.xml
prepare:
compile:
[delete] Deleting directory C:\tmp\aoptest\JBossAOPTest4\classes
[mkdir] Created dir: C:\tmp\aoptest\JBossAOPTest4\classes
[javac] Compiling 4 source files to C:\tmp\aoptest\JBossAOPTest4\classes
aopc:
[aopc] log4j:WARN No appenders could be found for logger (org.jboss.aop.instrument.InstrumentorFactory).
[aopc] log4j:WARN Please initialize the log4j system properly.
[aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\SecurityFieldAnnotation.class
[aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\SecurityFieldAspect.class
* [aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\BankAccount.class*
[aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\Bank.class
[aopc] Build Successful: 547 ms
run-compile-time:
[java] [DBG] credit: 777
BUILD SUCCESSFUL
Total time: 3 seconds
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527339#527339
16 years, 2 months
[Beginner's Corner] New message: "Re: How to using propertyService to substitute parameter in ejb-jar.xml file"
by jaikiran pai
User development,
A new message was posted in the thread "How to using propertyService to substitute parameter in ejb-jar.xml file":
http://community.jboss.org/message/527329#527329
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
Looks like a deployment ordering issue. I think the properties-service.xml is deployed after the parsing of ejb-jar.xml is done. So the system property values aren't set when the ejb-jar.xml is being parsed. You can do this:
Add the following piece of MBean (it's actually does the same as what the MBean in properties-service.xml does)
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="me:service=MyProperties">
<attribute name="Properties">
ConnectionURLs=tcp://server:3507,tcp://server:3508
</attribute>
</mbean>
in JBOSS_HOME/server/< servername>/conf/jboss-service.xml instead of setting it through properties-service.xml in the deploy folder. That way, the properties set by this service will always be available before any of his deployments in the deploy folder.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527329#527329
16 years, 2 months