-
1. Re: Dynamic AOP application, not able to redeploy the aspects at runtime
flavia.rainone Jul 21, 2010 9:48 AM (in response to viveknandavanam)Hi!
What do you mean with "the changes are not reflected"? How is the archive structure that is being redeployed? I need to know this in order to answer your question
Anyway, I think it is a good idea to update the JBoss AOP version and see if the problem gets resolved. The JBoss AOP release comes with a script for installation on JBoss AS 4.
-
2. Re: Dynamic AOP application, not able to redeploy the aspects at runtime
viveknandavanam Jul 22, 2010 11:50 AM (in response to flavia.rainone)Hi Flavia,
Thanks for your reply.
I did upgrade to jboss-aop-2.0.0, but still not getting it.
Sorry for using the term 'reflected'. What i meant to say was that i am not able to see the changes i made in the code after redeployment.
The archive structure that is redeployed(JAR) is like this:
/
SessionBean
HomeInterface
RemoteInterface
META-INF/
MANIFEST.MF
ejb-jar.xml
I am compiling and creating the jars externally. Later redeploying it into the deploy folder at runtime.
Thanks,
Vivek
-
3. Re: Dynamic AOP application, not able to redeploy the aspects at runtime
flavia.rainone Jul 25, 2010 4:38 PM (in response to viveknandavanam)Vivek Nandavanam wrote:
The archive structure that is redeployed(JAR) is like this:/
SessionBean
HomeInterface
RemoteInterface
META-INF/
MANIFEST.MF
ejb-jar.xml
I am compiling and creating the jars externally. Later redeploying it into the deploy folder at runtime.
I'm still missing some information... where is the aop stuff you deployed? And how is that packaged?
What are the changes you applied to the code, and to which part of the code?
Once I can see the whole picture, I hope I will be able to help you :-)
-
4. Re: Dynamic AOP application, not able to redeploy the aspects at runtime
viveknandavanam Jul 28, 2010 8:45 AM (in response to flavia.rainone)Thanks again for your replies.
I am deploying the session bean as a class that needs to be aspectized. And this session bean class i am including in the *-aop.xml.
Can this be done?
I am making the changes in the methods in the Session bean.
The methods have print statements. I am changing these print statements and redeploying the jar.
These methods are deployed in the aopdynclasses folder as aspectised classes (even after redeployment).
And these changes in the print statements are the changes that i want to see when the jar is redeployed.
The interceptor class is being deployed as a jar with the structure
/
Interceptor.class
META-INF/
MANIFEST.MF
From this interceptor i am calling the session bean methods.
Regards,
Vivek