GeeCON Prague 2014*
The moose likes Spring and the fly likes start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "start your Java virtual machine with Spring Watch "start your Java virtual machine with Spring New topic
Author

start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar

srinivas kumarr
Greenhorn

Joined: Dec 16, 2010
Posts: 7
How to do this?
start your Java virtual machine with Spring's agent: -javaagentrg.springframework.instrument.jar

I am using eclipse and running simple java application without server

sreekanth aleddulla
Greenhorn

Joined: Feb 08, 2011
Posts: 27

Please add the below dependencies to your pom.xml

<properties>
<spring.version>2.5.4</spring.version>
</properties>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-agent</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4</version>
<configuration>
<forkMode>once</forkMode>
<argLine>-javaagent:${settings.localRepository}/org/springframework/spring-agent/${spring.version}/spring-agent-${spring.version}.jar</argLine>
<useSystemClassloader>true</useSystemClassloader>
</configuration>
</plugin>
 
wood burning stoves
 
subject: start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar