"[EMAIL PROTECTED]" wrote : First of all make sure that you can get the
"injboss" tutorial example running, so that you know how to set up loadtime
weaving for an instance you manage yourself.
|
| The jar to use for the -javaagent when running with jboss is
pluggable-instrumentor.jar
| not jboss-aop-jdk50.jar
| :
| | set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
-javaagent:C:\myjboss\bin\pluggable-instrumentor.jar
| |
|
| I am not sure what JBoss IDE or jbosservice use run.bat or if they invoke
the jboss Main class themselves. So if modifying the run.bat does not work for
you, try to set the -javaagent switch when creating your service:
|
Kabbir;
Yeah, i set JAVA_OPTS to full path of pluggable-instrumentor.jar. But, i see
the same problem.
I'll try.
But what about ejb3 interceptors. As an alternative to jboss-aop, can we use
ejb3 interceptors?
Here is my sesssion bean..
package com.j3ltd.test.ejbs;
import java.io.Serializable;
import javax.ejb.Stateless;
import javax.ejb.AroundInvoke;
import javax.ejb.InvocationContext;
public @Stateless class TestStatelessBean implements TestStateless,Serializable
{
public String testBean() {
System.out.println("Business Method Called...");
return "the server returned this string";
}
@AroundInvoke
public Object log(InvocationContext ctx) throws Exception {
System.out.println("Security Check Done!!!");
return ctx.proceed();
}
}
When I invoked the sesson bean's business method, even ejb3 interceptor did not
work? So, where the problem is? I am using Jboss-4.0.4RC1 and configured thru
jboss-ide5.
But i see the following when i invoked the business method...
13:21:25,578 INFO [STDOUT] FieldsManager in use =
org.jboss.serial.classmetamodel.ReflectionFieldsManager
3:21:25,703 INFO [STDOUT] Business Mehod Called...
Thanks for letting me know...
Eswarrao Ankamreddy
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989067#3989067
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989067
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user