Re: [aspectwerkz-user] Hot deploy

Alexandre Vasseur <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
Hi Bruno

Yes it should work. I don't know what you mean by "putting an EAR
containing the aspects".

1/ if the aspects are in the EAR "A" and that you expect those to
weave ejb / whatever in another EAR "B" then it won't work. This is
due to Java class loading rules, and J2EE deployment, not to AW / AOP.

2/ if the aspects are in the EAR "A" and that you expect those to
weave ejb / whatever inside this EAR (including webapp, ejb jar etc
within this EAR) then it will work. The aspects can then be weaved in
at classload time, or as you seem to ask, be just there (packaged) and
hotdeployed using AW programmatic API (Deployer.xxx(..))  that you
wrap behind any layer you like - an MBEAN to expose the deploy /
undeploy thru JBoss console is indeed possible.

Alex

On Mar 28, 2005 5:42 PM, Bruno Borges <[email protected]> wrote:
> I have a system already running in a JBoss instance, and I'd like to
> weave the system to intercept some calls. I read that AW supports Hot
> Deploy of aspects. Is it possible to weave classes of a
> already-deployed-system at runtime, just putting an EAR containing the
> aspects and then calling a MBean to do the deploy action ?
> 
> I'm using JBoss 4.x and Java 5.0, of course. :)
> 
> Thanks for any help.
> 
> --
> Bruno Borges - SCJP 1.4
> [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.