[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Bill Burke
Another question: Are you using the precompiler? Or load time? or both? Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853950#3853950 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853950

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercept invoke(Object, Object[])

2004-11-04 Thread ad-rocha
Thanks Kabir, It's working now! Andre View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853948#3853948 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853948 --- This

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Bill Burke
It does look like it is aop$classAdvisor$aop. Static initialization should always happen, not sure why it isn't in this case. would it be possible to put together a small test case we can reproduce the problem with? Apologies, Bill View the original post : http://www.jboss.org/index.html?mo

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: How to get 'caller' object in 'call' type of joinpoint?

2004-11-04 Thread Bill Burke
Caller invocations should be able to reference the called and calling object. You can currently reference the called object by getTargetObject. We should add a getCallingObject method to CalledByMethod invocation classes. Bill View the original post : http://www.jboss.org/index.html?modul

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: How to get 'caller' object in 'call' type of joinpoint?

2004-11-04 Thread kabkhan
The first sentence should have been: You cannot get the calling object but you can get the calling Class. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853946#3853946 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: How to get 'caller' object in 'call' type of joinpoint?

2004-11-04 Thread kabkhan
calling Class. Caller invocations are for use in cases where the execution pointcuts cannot be used, and this functionality is not present in the "normal" execution invocations either. In my opinion interceptors should not know anything about the caller object, but I could be convinced :-) I'l

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercept invoke(Object, Object[])

2004-11-04 Thread kabkhan
Hi, Does this help? | | | | | 1) java system classes cannot be instrumented so caller pointcuts must be used. The reflection aspect was written for this, so use 'call' instead of 'execution'. 2) Everything must use fully qualified names. Even stuff in the java.lang pack

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread Bill Burke
The memory is not released. What is created is Javassist data structures. I can't release the memory because class transformation happens at class load time. A class may be transformed, then another class that references that transformed class may have joinpoints affected by that transformati

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-11-04 Thread Bill Burke
JBoss has passed certification awhile ago now. The J2EE TCK tests do not test the behavior in question and there are no plans to implement any strict constraints or stricter verifier. FYI, it seems Chiba has implemented synchronized blocks, so your fix is scheduled for the next AOP release. B

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread KevinConner
anonymous wrote : I suggest using the precompiler because currently, load-time transformation is a HUGE memory hog. I'm nearly finished an alternative load-time which has a much better memory footprint. I've been working on a different version of the classpool that doesn't store the same info

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread skellen
Bill Burke wrote : It will only show bindings for LOADED classes. If you execute the code, you should see the bindings. | You are right, my advice is bound when I instantiate a class and everything works as expected. Bill Burke wrote : I suggest using the precompiler because currently, load-

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-11-04 Thread rkadayam
Of course, J2EE TCK may not explicitly reference Aspects or AOP instrumentation. I even wonder if J2EE will ever talk about AOP as it may sound a little too invasive/disruptive to let bean developers to play with. But does JBoss plan to implement the strict constraints of J2EE constructs especia

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread Bill Burke
The console is a little weird... It will only show bindings for LOADED classes. If you execute the code, you should see the bindings. If you execute the code, and the aspect is is UNBOUND in the webconsole, then there is a bug in the webconsole. ANOTHER THING: By default, class load time tr

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-03 Thread ad-rocha
Thanks for your attention Bill, AspectJ sintax is something like this: public aspect Inheritance { | declare parents: (junit.framework.TestCase+ && !junit.framework.TestCase && !test.CustomTestCase) extends test.CustomTestCase; | } that means "classes that extends TestCase and not equals

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-03 Thread Bill Burke
I should say: What do you WANT the semantics to be, since this is your feature request :-) Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853804#3853804 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853804 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-03 Thread Bill Burke
FYI, this isn't implemented, just discussing how to implement... What do you think the semantics should be? And what does AspectJ support in this regard? Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853788#3853788 Reply to the post : http:

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-03 Thread ad-rocha
Bill, In my opinion the sintax is ok (very useful to me!). My question is: "MySuperClass must extend the class MyTestCase extends" is a JBoss AOP limitation or just a implementation choice? Andre View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853784#3853784

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: ClassCastException in caller side advices

2004-11-03 Thread Bill Burke
You are correct, it is a bug, we'll get right on fixing this. apologies Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853778#3853778 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853778 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: javassist version

2004-11-02 Thread Bill Burke
You can scope your HiveMind deployments. You cannot scope JBoss AOP deployments. Check out the JBoss AS docs on how to do this. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853657#3853657 Reply to the post : http://www.jboss.org/index.html?module=bb&op=p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-02 Thread Bill Burke
I see the usecase for this. It would be trivial to implement, but let's argue on the correct syntax and contract. | | The rules are that MySuperClass must extend the class MyTestCase extends. Anything else? View the original post : http://www.jboss.org/index.html?module=bb&op=viewto

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-02 Thread nthx
"ad-rocha" wrote : | I have some test cases implemented using JUnit, so these classes (Test1, Test2) | extends TestCase. I've created a new class (MyTestCase) that extends and modify | TestCase default implementation, adding new fields and methods. | | | Compiling with AspectJ I ca

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP vs. AspectJ

2004-10-31 Thread Bill Burke
i meant also to say that this should work in JBoss AOP View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853441#3853441 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853441 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP vs. AspectJ

2004-10-31 Thread Bill Burke
well, you're gonna have to post the JBoss AOP example... JBoss AOP Aspects can hold state. An instance of the Aspect is created depending on the scope. PER_VM, PER_CLASS, PER_INSTANCE< PER_ JOINPOINT. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Missing jboss-service.xml?

2004-10-31 Thread Bill Burke
copy the jboss-service in jboss-aop.deployer. I screwed up the dist target, apologies View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853438#3853438 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853438 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-10-31 Thread worldheart
thx View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853408#3853408 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853408 --- This SF.Net email is sponsored by: Sybase

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-10-30 Thread ad-rocha
Hi Kabir, I'm migrating from AspectJ to JBoss AOP and my implementation use this approach. I have some test cases implemented using JUnit, so these classes (Test1, Test2) extends TestCase. I've created a new class (MyTestCase) that extends and modify TestCase default implementation, adding new

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-10-30 Thread kabkhan
Great! $cvs checkout jboss-head All the documentation for AOP is stored as docbook under: jboss-head/aop/docs/reference There is the userguide, reference and quickref. Each has a subdirectory for each language. At the moment there is only en(glish). To build the documentation go to the jboss

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: issue with compiling

2004-10-30 Thread epsout
thank you, just duplicate the aopc line seems to make things working (for the report ut it should be ok), thank you. Jean-Yves View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853388#3853388 Reply to the post : http://www.jboss.org/index.html?module=bb&op=p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-10-30 Thread kabkhan
Hmm, sounds horrible :-) Do you have a proper use-case for this, or are you just playing around to see what the capablilities are? If you mean you want to make C extend B instead of A, that is not possible. JBoss AOP does not introduce any new keywords into the Java language, all instrumentation

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: issue with compiling

2004-10-30 Thread kabkhan
Hi, At present it is up to you to specify the classpath properly. For the report to work you need to run the aopc task twice, first with report="false" (to instrument the files), and then with report="true" (to create the report). e.g: | | | | | | | | | | |

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-10-30 Thread ad-rocha
Hi Kabir, I have 3 classe (A, B and C). B extends A and C extends A. I'd like to make C extends B... Is there a way to do it using JBoos AOP? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853378#3853378 Reply to the post : http://www.jboss

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-10-30 Thread kabkhan
Hi, You cannot force a class to extend another, but you can use a mixin class. Cheers, Kabir View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853372#3853372 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853372

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-10-29 Thread worldheart
By the Way, My E_mail(MSN): [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853365#3853365 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853365 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-10-29 Thread worldheart
Bill, I am insterested in translating all of JBoss AOP Documents[Reference Guide/User Guide/Quick Reference,et.] into Chinese. My name is Shifei Luo(the translator of ,be published by PHEI of China). How about begining the perfect work? thx. View the original post : http://w

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-10-29 Thread [EMAIL PROTECTED]
No, the j2ee certification did not involve aspectized deployments using the jboss AOP framework. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853306#3853306 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853306 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-10-29 Thread Bill Burke
Yes, we will eventually fix this problem. It will take awhile because it requires changes to Javassist to suport synchronized blocks. The synchronization is needed otherwise you have problems with concurrent access to a POJO. Bill View the original post : http://www.jboss.org/index.html?modu

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread ad-rocha
Hum... thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853302#3853302 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853302 --- This Newsletter Sponsored by:

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-10-29 Thread rkadayam
Does the J2EE 1.4 TCK certification encompass deployment of J2EE applications that are aop-compiled using JBoss-AOP ? I'm hoping there will be a plausible resolution to this issue as it impacts our usage of JBoss AOP to a great extent. Thanks Rajiv View the original post : http://www.jboss.o

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread Bill Burke
Because aspect also has a scope attribute which by default is PER_VM | | Its also important because an aspect can take configuration as well. Check out this doco: http://docs.jboss.org/aop/aspect-framework/reference/en/html/xml.html#xml-aspect2 View the original post : http://www.jbos

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread ad-rocha
Thanks Bill, it's working now. But why have I to referece the aspect if the advice tag define the aspect class? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853295#3853295 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=r

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread Bill Burke
you need to declare the Aspect in XML before referencing it. | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853293#3853293 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853293 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread ad-rocha
Sorry... the correct method name in MyInstrumentation is instrument, not invoke View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853290#3853290 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853290 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Different handling of XML entities between FINAL and RC1

2004-10-29 Thread Bill Burke
The SystemProperty jboss.aop.path can take multiple XML files. They are deployed in the order you specify in the jboss.aop.path. Also, jboss.aop.path can take a directory. If you specify a directory, it will load all *aop.xml files in that directory. The include is a bug though and we'll fix

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Different handling of XML entities between FINAL and RC1

2004-10-29 Thread nthx
Hi! No problem. But it's essential for me to have "included" entities. Say you have a product line and some already developed aspects, and want to include A, B, C concerns for configuration 1 of application, and only A and C for 2nd application. The only way, I think is to have two separate X

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Different handling of XML entities between FINAL and RC1

2004-10-28 Thread Bill Burke
A workaround is to take out the include. I'll have to put this on the TODO list. Thanks for finding the bug and reporting, Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853202#3853202 Reply to the post : http://www.jboss.org/index.html?module=bb&op=p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-10-27 Thread rkadayam
I'm pasting the exact error message from weblogic weblogic.ejb20.compliance.ComplianceException: In EJB com.ascential.asb.service.test.greetingService.GreetingService, Enterprise Bean methods must not use thread synchronization primitives. The method named _setInstanceAdvisor(org.jboss.aop.Inst

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-10-27 Thread Bill Burke
Are you saying that Weblogic and Websphere barf if you have declared a method as synchronized? The synchronized methods are not on EJB business methods or callbacks, so I fail to see how it violates the specification. All the specification says is: "An enterprise bean must not use thread synch

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread Bill Burke
No, it does not. It is on the TODO list and will be in a future release of JBoss AOP. If you're interested in implementing it, please do. We'll give you CVS access to commit your changes if you implement it. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtop

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread ad-rocha
So... declare error and declare warning exist in JBoss AOP? Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852948#3852948 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852948 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread nthx
"ad-rocha" wrote : Hi, | | Has JBoss AOP a construction like Aspectj "declare error"? | | Thanks, | | Andre Hi Don't ask here for AspectJ like features ;) Authors will answer you: anonymous wrote : "Please use provided solution if you want to have 'declare warning/error' function

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Interceptor for java.sql.PreparedStatement

2004-10-27 Thread Bill Burke
Your pointcut expression is incorrect and will not match any methods on PreparedStatement. It should be: | | | | This matches every execute method on PreparedStatement. You'll have to provide the full method pattern to do more fine-grained interception. Bill View the

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread Bill Burke
I like declare error and declare warning. We cannot soften exceptions because JBoss AOP is not an extension of the Java language, but rather 100% java. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852923#3852923 Reply to the post : http://www.jboss.

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread kabkhan
If you mean the stuff in "Warnings and Errors" and "Softened Exceptions", the quick answer is no. I'll check with Bill if this is something we could/should add. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852922#3852922 Reply to the post : http://www.jbo

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread ad-rocha
With declare error is possible to specify compilation errors for static crosscutting: http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/progguide/semantics-declare.html#d0e6417 Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852917

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread kabkhan
Hi, I'm not that familiar with AspectJ, can you please elaborate on what you would like to achieve? Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852913#3852913 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Question on Interceptor. Getting a Null Pointer!

2004-10-25 Thread SushmaM
oops!! It was a mistake in my code. I've fixed it and the interceptor is working fine. Thanks for your help. :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852665#3852665 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=re

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Question on Interceptor. Getting a Null Pointer!

2004-10-25 Thread Bill Burke
What VM are you running on? I cannot see anything wrong with your code or XML.. Are you sure it is not your problem? They NPE seems to be coming from your own code. When running with JBoss AOP 1.0.0 Final, do you get the line number for this line: | com.apple.ist.rubyservice.communicatio

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Question on Interceptor. Getting a Null Pointer!

2004-10-25 Thread SushmaM
Thanks. I tried with jboss-aop_1.0.0-FINAL. I modified the MethodInterceptor.java file of method-execution example, that has come along with the jboss-aop distribution. I've included the jars in jboss-32-install folder of the installation, while compiling through aopc task. However, the Null

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Question on Interceptor. Getting a Null Pointer!

2004-10-25 Thread Bill Burke
There is no InvocationResponse class. I think you are reading the old O'Reilly article or using the wrong download package? It should be JBoss AOP 1.0.0 FINAL? Try modifying an existing tutorial distribution. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-25 Thread Bill Burke
Andre, thanks for your patience If you have any further bug fixes or enhancement ideas, please don't hesitate to post on the forum! Thanks again, Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852572#3852572 Reply to the post : http://www.jboss.o

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-25 Thread ad-rocha
It's working now. Thank you Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852568#3852568 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852568 --- This S

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-25 Thread kabkhan
Got the files, and you need to set fork=true in the javac task: | | | | | | | Otherwise, it executes as part of the java process executing ant, effetively ignoring the java.system.class.loader property, since that is only checked on the first call to java.lang.Clas

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-25 Thread kabkhan
For verbose mode set the system property jboss.aop.verbose to true, i.e You can send them to me at kabir.khan a jboss.org View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852552#3852552 Reply to the post : http://www.jboss.org/index.html?module=bb&op=po

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread marshall
This is what I expected. It is definately a bug, and I've pushed the fix out to CVS. Here's a brief rundown on what's going on: The first time you use something from a supplied plugin (in this case, the New AOP Project Wizard), Eclipse starts up that plugin by calling a method "start" within the

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Still not working (again)... Is there a verbose mode? Is there a way to send to you the files? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852495#3852495 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread kabkhan
Note the pakage names: | | | | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852493#3852493 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852493 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Thanks, but still not working... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852492#3852492 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852492 --- This SF.net

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread kabkhan
Try: | | | | | | If that doesn't work, try renaming the teste.xml to teste-aop.xml View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852491#3852491 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
AOP xml: | | | | | Ant: | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jb

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Class: package teste; public class HelloAOP { public void callMe() { System.out.println("AOP!"); } public static void main(String args[]) { new HelloAOP().callMe(); } } Aspect: package teste; import org.jboss.aop.advice.Interceptor; import org.jboss.aop.joinpoint.Invocation; pu

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread kabkhan
Post some more info View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852487#3852487 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852487 --- This SF.net email is spon

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Hi, I'm trying the reference guide example, and create a Ant project to do loadtime weaving (I don't want to precompile). It's not working... the result is "AOP!" (not "Hello, AOP!") Any ideas? Thanks, AndrÃ

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
Marshall, The Wizard ONLY works if I open all projects in workspace and restart Eclipse. I don't see any relation between existent projects and the new one... Is it a bug? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852483#3852483 Reply t

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread marshall
When you opened the project, did you restart Eclipse? The exception is happening on plugin loadup time (eclipse startup). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852478#3852478 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&m

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
I receive the same error independent of AFTT project status (opened/closed) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852475#3852475 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852475 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread kabkhan
anonymous wrote : Root exception: | org.eclipse.core.internal.resources.ResourceException: Resource /AFTT is not open. | at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:126) | at org.eclipse.core.internal.resources.Project.hasNature(Project.java:456) |

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
!SESSION Out 24, 2004 08:58:19.62 -- eclipse.buildId=I200406251208 java.version=1.4.2_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pt_BR !ENTRY org.eclipse.osgi Out 24, 2004 08:58:19.62 !MESSAGE An error occ

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
!SESSION Out 24, 2004 08:58:19.62 -- eclipse.buildId=I200406251208 java.version=1.4.2_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pt_BR !ENTRY org.eclipse.osgi Out 24, 2004 08:58:19.62 !MESSAGE An error occ

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread kabkhan
Can you post the Eclipse log? It should be in the .metadata directory of your eclipse workspace location. Only post the relative entry, not the whole thing ;-) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852462#3852462 Reply to the post : http://www.jboss

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread kabkhan
Hi, depending on which loadtime method you want to use http://docs.jboss.org/aop/aspect-framework/reference/en/html/running.html you basically just pass in a system property/jvm argument. The examples shown are for running off the command line, but you do exactly the same for the ant task. Vi

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-23 Thread ad-rocha
Sorry... not aspectwerks.bat I'm looking for a Ant task to make Loadtime instrumentation. Precompiled instrumentation is shown in: http://docs.jboss.org/aop/aspect-framework/reference/en/html/compiling.html But there is no information about Loadtime... Thanks, AndrÃÂ View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-22 Thread kabkhan
This will be in the release. If the files portion of the java command is longer than a given number of chars, it creates a temp file as outlined. I don't know what the limits are, so I have added a maxsrc parameter to the ant task. The default is 1000 View the original post : http://www.jboss

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-20 Thread [EMAIL PROTECTED]
Be careful. Windows is only notionally POSIX compliant. It defines a POSIX compliant interface, but it does not use it internally (e.g from the command line/shell) and most WIN32 apis ignore it as well. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852146#385

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-20 Thread Squeak
ThanksI really do appreciate it. Personally, I think following Ant's lead and hardcoding it 4096 as the threshold is fine -- that is the number that POSIX defines as the limit. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852114#3852114 Reply to the po

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-19 Thread Squeak
Bill, Looking at the source of the javac task -- it appears that Adrian's solution is exactly what they do. When the user wants to fork the process, and the command line is >4096, it outputs it to a temp file, and passes that to the compiler. When you don't fork via with javac, there is no prob

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-19 Thread Squeak
Bill, You bring up a good point. I saw your comment about using javac as the basis for the code. In my same ant task, I also compile the same set of code using javac with no issues. Weird. I understand about getting 1.0 out --- I can look tonight at the differences and why javac would work an

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-19 Thread Bill Burke
I wonder if the javac target in Ant has the same problem as I based aopc on this code. I will try and resolve your request...We need to release 1.0 this week as other JBoss Inc. projects are waiting on it so I can't promise anything. But, this is a serious usability bug, so I'll put cycles into

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-19 Thread [EMAIL PROTECTED]
The usual fix for this is to allow a --SOURCEFILES [file-name] to be passed in to the compiler. If the length of the file names is too large it can write them to a temp file and pass --SOURCEFILES [tmp-file-name] The other fix is to not use Windows :-) View the original post : http://www.jboss

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with AopC Ant Task -- cmd too long!

2004-10-19 Thread Squeak
Wanted to give an update on this for what I found. It is definetly an issue related to the length of the command that is passed to Runtime.exec. To experiment, I changed the path that my class are build from long path c:\eclipse\workspace\myproj\bin to something very short: c:\a Worked grea

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Development list

2004-10-19 Thread [EMAIL PROTECTED]
That's Bill's decision he is the project lead. I think you'll find he is busy on the 1.0 release at the moment. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851911#3851911 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Home-Interfaces

2004-10-19 Thread Bill Burke
No, that is incorrect. Nothing implements the home interface (not even customer finders and home methods) The EJB container handles home invocations dynamically or these methods are implemented in methods on the Bean class as ejbFindMETHOD or ejbHomeMETHOD methods. Bill View the original po

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Development list

2004-10-19 Thread pilhuhn
Would you mind creating a AOP-user forum to use then? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851907#3851907 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851907 ---

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Home-Interfaces

2004-10-19 Thread pilhuhn
Do I understand it correctly, that the HomeInterface is implemented by a proxy? If so, would a $implements (like the $instanceof one) help to do something like pointcut="call($implements(javax.ejb.EntityHome->findBy*(..)) ? I think a $implements expression would be nice anyway. :-) View the o

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercepting Home-Interfaces

2004-10-19 Thread Bill Burke
No, it is not possible with JBoss AOP. The reason? It is because there is no class to massage...Our EJB implementation does not generate any class that implements the home interface. If you implemented BMP customer finders or home methods on the bean class, then yes, JBoss AOP could be used.

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: *Have* to deploy as an *.aop file?

2004-10-19 Thread Squeak
"Bill Burke" wrote : Squeak, does deploying an EAR alone with precompiled classes not work? It should. A .aop file is not needed. Sorry, Bill. I haven't tried it yet, mainly because I am still having issues witt the AopC ant task mentioned in the other thread. Also, I am trying to fundemental

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Order of advice/interceptors - Due to: New JBoss AOP Con

2004-10-19 Thread Bill Burke
We will work on precedence after the 1.0 release. We're currently trying to close bugs and finish documentation. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851895#3851895 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=repl

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: *Have* to deploy as an *.aop file?

2004-10-19 Thread Bill Burke
Squeak, does deploying an EAR alone with precompiled classes not work? It should. A .aop file is not needed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851894#3851894 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Order of advice/interceptors - Due to: New JBoss AOP Con

2004-10-19 Thread nthx
Hi! I've seen some announcement of 1.0 final release of JBossAOP next week. How did you/are you going to clear things up with advice/aspect/annotations precedence? Tomasz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851879#3851879 Reply to the post : htt

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: *Have* to deploy as an *.aop file?

2004-10-19 Thread kabkhan
Yes, there are two parts to this. First the copiletime/loadtime instrumentation of the bytecode is done (done by the compilers) Next, when running the instrumented app, the aop info must be present since it contains the info for building the Class-/InstanceAdvisors that contain what aspects a

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Clarifications on RC2 mechanism for aspects to load cust

2004-10-18 Thread rkadayam
That helps, thanks a lot. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851824#3851824 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851824 --- This SF.net email i

<    1   2   3   4   5   6   7   >