Re: [aspectwerkz-user] Hot Deployment for JRockit
Alexandre Vasseur <[email protected]> Thu, 26 Jan 2006 10:19:18 +0100
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
JRockit JMAPI does have hotswap support in version 1.4.x.
See ClassLibrary here:
http://e-docs.bea.com/jrockit/docs142/jmapi/javadoc/Management%20API/index.html
That is:
com.bea.jvm.JVMFactory.getJVM().getClassLibrary().redefineClass(
java.lang.Class cl,
byte[] buffer,
int offset,
int length)
As Jonas said we haven't implemented that one under 1.4.* but using
the factory Jonas describes it can be easily done.
Else, using JRockit 1.5, you can of course use -javaagent as it is
part of Java 5 standard, and that one works out of the box on both
JRockit and Sun VM.
Alex
On 1/25/06, Mark Lui <[email protected]> wrote:
>
> Jonas,
>
> After a careful read of the documentation, I discovered that JRockit was not
> mentioned for hot deployment. I switched to 1.4 (HotSwap) and it now works.
>
> Thanks for you help.
>
> Mark
>
> --
> Mark Lui
> [email protected]
> 310-737-7835
>
> -------------- Original message --------------
> From: Jonas Bonér <[email protected]>
>
> > Hi Mark.
> >
> > We have only implemented hot deployment based on HotSwap and JVMTI
> > (javaagent for Java 5).
> >
> > Can you try to enable that and see if it is working better?
> >
> > I do not see why it would not work fine with JMAPI, it is just that it
> > has not been implemented. See this class:
> >
> >
> http://cvs.aspectwerkz.codehaus.org/viewrep/aspectwerkz/aspectwerkz4/src/main/or
> >
> g/codehaus/aspectwerkz/transform/inlining/deployer/RedefinerFactory.java?r=1.7
> >
> > /Jonas
> >
> > On 1/24/06, Mark Lui wrote:
> > > Hi,
> > >
> > > Does hot deployment work in AW 2.0 using the JRockit VM via BEA JMAPI?
> It
> > > is not clear from the documentation which only mentions the Java 5 and
> Java
> > > 1.4.
> > >
> > > Thanks,
> > >
> > > Mark
> > >
> > >
> > >
> >
> >
> > --
> > Jonas Bonér
> > Terracotta, Inc.
> >
> > http://jonasboner.com
> > http://www.terracottatech.com