Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] webstart integration


Fabien,

I confess that I have never used webstart but understand what it does. It would seem that the monitor (com.sun.javaws.Main?) is running your application (deploy.jar?) in a new JVM but _not_ using the same options, including -javaagent. Does the webstart documentation mention how to specify options for the application VM? Have you tried weaving the application ahead-of-time instead?

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



"Fabien Bergeret" <fabien.bergeret@xxxxxxxxxxx>
Sent by: aspectj-users-bounces@xxxxxxxxxxx

03/01/2007 17:01

Please respond to
aspectj-users@xxxxxxxxxxx

To
"aspectj-users" <aspectj-users@xxxxxxxxxxx>
cc
Subject
[aspectj-users] webstart integration





Hi,

I'm trying to integrate aspectj in a webstart application. The
idea is to log some interesting behavior of the application
for security purposes.
Here is the relevant lines I use in a ant script file:
<target name="dynamicWS" if="doWs">
                                 <java classname="com.sun.javaws.Main" fork="true">
                                                  <classpath>
                                                                   <pathelement
location="${aspectj.home}/lib/aspectjweaver.jar" />
                                                                   <pathelement location="${log4j.home}/log4j-1.2.14.jar" />
                                                                   <pathelement location="aspect.jar" />
                                                                   <pathelement location="${java.home}/lib/deploy.jar"/>
                                                                   <pathelement path="${java.class.path}" />
                                                  </classpath>
                                                  <jvmarg
value="-javaagent:${aspectj.home}\lib\aspectjweaver.jar" />
                                                  <jvmarg
value="-Xbootclasspath/a:${java.home}\lib\javaws.jar;${java.home}\lib\deploy.jar"/>
                                                  <arg value="${runtimeParameter}" />
                                 </java>
                </target>
What it does: run the application
What it doesn't do: starting aspectj

If I remove the -Xbootclasspath line, it starts java WebStart
monitor, with aspectj, but the web start monitor seems to make
a Runtime.exec() call, and the application itself runs in
another jvm ... and the application itself runs without aspectj.
Any idea ?


Envoyez vos cartes de voeux depuis www.laposte.net
Elles seront ensuite distribuées par le facteur : pratique et malin !

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top