[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Web Services with aspect

2004-09-11 Thread Bill Burke
http://java.sun.com/xml/jaxrpc/ http://www.jcp.org/en/jsr/detail?id=109 http://jcp.org/aboutJava/communityprocess/final/jsr153/index.html You will have to write a Handler to propagate principal and credential information. If you want role-based security at the POJO level, check out these

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: java.lang.ClassCastException in Forum_new_$aop

2004-09-10 Thread nthx
Hi After long time I had a fresh look at my code and it happend the exception is _my_ fault. Sorry guys. During around Forum construction I've returned object of different class, so that was the cause. Sorry for this, once more.. t. View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Simple Interceptor Question

2004-09-03 Thread kabkhan
Hi, Have you taken a look at: http://www.jboss.org/wiki/Wiki.jsp?page=PackagingForJBoss This changed a bit yesterday, so try the latest from cvs (only affects the example described on the page). Cheers, Kabir View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Simple Interceptor Question

2004-09-03 Thread Bill Burke
If you specify -report, it will not transform the classes. Why aren't you using our ant tasks? For an example of the ant tasks, look in the tutorial. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3847174#3847174 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: One Last Try

2004-09-02 Thread kabkhan
The build deployed to the server/default/deploy directory, while running JBoss w/ the 'all' config polls the server/all/deploy directory :-) I've modified the build.xml and documentation for this example to use the 'all' configuration, and made switching between configs easier. Cheers, Kabir

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: introduction class syntax

2004-09-02 Thread nthx
Hello The solution might be to package adviced and non-adviced classes in two different packages, and instead `*` use sth like: `bind ... com.mycompany.aoptized.*`. (unless you have quite complicated package tree) I don't know if syntax that you provide in the introduction is even supported.

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: introduction class syntax

2004-09-02 Thread Bill Burke
the syntax is: | introduction expr=!class($instanceof{LoggableImpl}) ... | Yes, the doco sucks. Kabir and I will put some effort into it before the last release. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3847023#3847023 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: introduction class syntax

2004-09-02 Thread spruce257
Hey Bill, thanks so much! That works just fine. In response to the doco... well, its sometimes hard to figure out how to use some stuff, but mostly it is self-explaining. On the other hand - a bit more would be great! Anyway, thanks again! Best Regards, Dennis View the original post :

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

2004-09-02 Thread aline_mm
Hi Bill, I tried to use, jspc (created a *.java and a *.class) and aopc, the deploy was ok but when I called my page I received this error. Do you have any idea about this? Ps.: I named my page erro2.jsp 21:54:30,255 INFO [TomcatDeployer] deploy, ctxPath=/erros, warUrl=file:/D:/jbos

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: One Last Try

2004-09-01 Thread Bill Burke
Short answer Try: | $ run -c all | Long answer: It is not really a problem, let me explain: If you get a clean download of JBoss Application Server and set EnableTransformer to true, you will see those stack traces. Why? When you set EnableTransformer to true, it will try and

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: One Last Try

2004-09-01 Thread ryano
Bill Burke wrote : Short answer Try: | P.s. apologiesI actually looked at this problem the first time you posted but forgot to reply! | No problem, thanks for the response. I tried running with run -c all and it does eliminate the stack traces on startup. Unfortunately, it also

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Instrumentor makes _transient_ fields when introducing f

2004-08-31 Thread nthx
Bill Burke wrote : | Sorry for the long delay. I'll look into your ClassCast problems if they still exist with this build. | | Thanks, | | Bill Yes, it still exists - had vacations, so did nothing with that - waiting for feedback.. I've forgiven delay :) t. View the original

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Setting dynamic metadata

2004-08-25 Thread Bill Burke
fixed in RC1 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846184#3846184 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846184 --- SF.Net email is sponsored by

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

2004-08-24 Thread ryano
Bill Burke wrote : Sorry, I've been giving training for the last wek and a half | No problem, Thanks for replying. Bill Burke wrote : | I did not test JBoss integration with JB4 RC1 yet as I have not released JBoss AOP Beta4(even though it comes bundled with JB4 RC1). You may have to

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Setting dynamic metadata

2004-08-24 Thread rkadayam
I'm trying to set class, default or method meta-data at run-time, by constructing the annotation xml by hand, loading it using the SimpleClassMetaDataLoader and then calling AspectManager.addClassMetaData(ClassMetaDataBinding) Here is a snapshot of the code | String tag = security; |

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Setting dynamic metadata

2004-08-24 Thread rkadayam
I think there is a bug in AspectManager.addClassMetaData. The line | if (meta.matches(advisor, advisor.getClass())) | should actually be | if (meta.matches(advisor, ((ClassAdvisor)advisor).getClazz())) | I've rephrased the method implementation here. | | public void

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

2004-08-24 Thread ryano
Bill Burke wrote : You may have to revert AOP back to Beta3. | Bill Quick Update: Based on the sentence above I assumed you wanted me to replace the jars in RC1 with the jars from AOP Beta 3. So I replaced the jars in server/all/lib and server/default/lib although I think I only needed to

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

2004-08-23 Thread Bill Burke
Sorry, I've been giving training for the last wek and a half I did not test JBoss integration with JB4 RC1 yet as I have not released JBoss AOP Beta4(even though it comes bundled with JB4 RC1). You may have to revert AOP back to Beta3. If you can send me a simple test case, I can add it

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

2004-08-22 Thread Bill Burke
I don't think JSP aspectizing will work as it uses a different classloader. We will be improving our classloader integration shortly. Can you verify JSPs don't work? I do think it will work if you precompile your jsps. Thanks and apologies. Bill View the original post :

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

2004-08-21 Thread jlukiano
It is not possible to use the AopC compiler as you don't have the .class files in this moment, so the only possible alternative is to enable the EnableTransformer flag on \conf\jboss-service.xml. Have you tried? In spite of this, I'm not sure the container that create the jsp servlet is under

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: java.lang.ClassCastException in Forum_new_$aop

2004-08-20 Thread nthx
Bill Burke wrote : I'm not sure what you're saying with this statement: | | Modified not to create _transient_ mixin fields. | | Can you elaborate? Hi Bill, Sorry that you didn't read my erlier post, then you would have known..

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Mixin class at the class level

2004-08-20 Thread Bill Burke
1) If you want a singleton mixin, then you can put anything you want in the construction XML element. So, the mixin reference can be set by calling a method or setting it to a singleton field of some class. 2) Are you applying the introduction twice? How does C++ work? I want to model

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Mixin class at the class level

2004-08-20 Thread claudehussenet
1/OK for the workaround. Do u think that the scope for a Mixin class could not be supported at the infrastructure level ?(future version of JBOSS-AOP) 2/ Thx .It does work...FYI ,the full expression for my user-case. View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Mixin class at the class level

2004-08-20 Thread claudehussenet
!class($instanceof{org.jboss.aspects.jmx.ReflectedMBean}) AND (has(* *-@org.jboss.aspects.jmx.ManagedResource(..)) OR class(@org.jboss.aspects.jmx.ManagedMBean)) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3845764#3845764 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Mixin class at the class level

2004-08-20 Thread Bill Burke
1) PER-VM and PER-Instance are supported. It would be per-class that would have to be supported. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3845766#3845766 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845766

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

2004-08-18 Thread kabkhan
Sorry I'm not able to look at this in very much detail right now. Also, look at combining the .jar and .aop in an ear as shown in the tutorial. The tutorial is by now means a complete guide to all possible packaging options, just shows a few configurations I got working. I have to admit I

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

2004-08-16 Thread kabkhan
Hi, Before-After: There is more about this in another post somewhere in this thread, but basically interception in JBoss AOP is both before and after. Example: | public class MyInterceptor implements Interceptor | { |public String getName() { return MyInterceptor; } | |

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

2004-08-16 Thread imsathya
Thanks a lot. After going through the documentation, I revisited my deployment to match what had been speciifed but I still cant get it to work. First, I created a .aop of my intercepter class (which I verified worked in the stand-alone mode) : | $ jar -tvf SimpleAOP.aop | 0 Tue

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

2004-08-15 Thread imsathya
Thanks Bill, That was very informative. Another query. AspectJ supports the notion of being able to define as to when you need an advice to be executed - before or after. So far as my understanding goes, JBoss AOP appears to be more interception based which appears to say ..when call X is

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

2004-08-15 Thread imsathya
Sorry for replying to my own post. Just another query. Would the interception for an EJB be different from that of a pure Java class ? Here is a test I tried. - Created an entity bean with method findWithID(int) and deployed it in JBoss 3.2.5 following the instructions specified. - I defined

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

2004-08-12 Thread kabkhan
Added a fix shortening the names of optimized caller invocation classes, and it now works on jdk 1.4.1 and 1.4.2 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844891#3844891 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Regeneration of Aspect instances if AspectDefinition is

2004-08-12 Thread rkadayam
Does anyone have any opinions/comments/solutions to this subject? Any thoughts/ideas would be much appreciated. Essentially I'm trying to modify aspect definition custom attribute values on the fly and re-generating the advice bindings but unfortunately the new values don't quite reflected in

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

2004-08-11 Thread nthx
kabkhan wrote : Weird, I unzipped your file and it compiled fine. Hope I'm not missing something! For what it's worth I'm using jdk 1.4.2 and ant 1.6.1, my output follows: | Hi. I checked other j2sdk versions: j2sdk1.4.1_06 (win) - problem exists 1.4.2_05 (win) - problem doesn't exists.

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

2004-08-11 Thread kabkhan
I'll try upgrading my jdk 1.4.2 to 1.4.2_06, and try again. There does not currently seem to be any support in the ant task for turning off optimize. You can turn optimization on/off by changing the AspectManager.optimize boolean member. (org.jboss.aop.AspectManager line 91) and rebuild aop.

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

2004-08-11 Thread nthx
kabkhan wrote : I misread 1.4.1_06 to be 1.4.2_06, and was wondering whyit does not exist. I'll get Bill to verify, but I believe you must use 1.4.2. | | Cheers, | | Kabir Hi, I don't know if I understand your answer correctly (or you understood me). So, repeating in other words:

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

2004-08-11 Thread Bill Burke
Maybe the full file/directory path is too long? It is saying it cannot find file. (The system cannot find the path specified) I know there is a limit on windows. But it doesn't make sense that it doesn't work on JDK 1.4.1. I'll put in a task to shorted generated classnames for the optimized

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

2004-08-10 Thread nthx
kabkhan wrote : Hello there, | | I've added a fix for this. Can you get the latest from cvs and try again? | | Hi, I would like to, but.. I need help with cvs compilation. I did like Bill said: (windows) | cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss login | cvs -z3

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

2004-08-10 Thread kabkhan
jboss aop relies on some files from the common module of jboss. Easiest thing to do is: | $cvs checkout jboss-head (YOU HAVE ALREADY DONE THIS...) | $cd jboss-head | $cd build | $build (This builds all of jboss, including aop) | $cd ../aop | $build dist | Now that you have got

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

2004-08-10 Thread nthx
Ok. I figured it out after a while, and did as you said. Problem is with finding door: and it was building all jboss. So, thanks anyway. Let's go back to the problem. I compiled today's version of JBossAOP, and switched jboss-aop.jar only. Before the operation, everything (with `execution of

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

2004-08-10 Thread kabkhan
Hi, All the tests work, so it would be cool to find out what is slipping through the net. Can you please upload an example to the wiki, and post the link? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844664#3844664 Reply to the post :

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

2004-08-10 Thread kabkhan
Also, can you try changing the optimized mode to false, and see what results that gives you. You do this by setting the jboss.aop.optimized system property to false. Even if that works, if you could post the example that would be greatly appreciated. Thanks View the original post :

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

2004-08-10 Thread nthx
kabkhan wrote : Also, can you try changing the optimized mode to false, and see what results that gives you. | You do this by setting the jboss.aop.optimized system property to false. Even if that works, if you could post the example that would be greatly appreciated. | | Thanks Ok, I

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

2004-08-10 Thread kabkhan
Weird, I unzipped your file and it compiled fine. Hope I'm not missing something! For what it's worth I'm using jdk 1.4.2 and ant 1.6.1, my output follows: | [EMAIL PROTECTED] /c/Temp/JBossError | $ ant -verbose | Apache Ant version 1.6.1 compiled on February 12 2004 | Buildfile:

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

2004-08-09 Thread Bill Burke
Can you try CVS Head? This may have been fixed there. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844555#3844555 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844555

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

2004-08-09 Thread kabkhan
The latest from cvs fixes this View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844560#3844560 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844560 --- This SF.Net email

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

2004-08-09 Thread clebertsuconic
I'm running a testcase on jboss-profiler module (download it from CVS if you want to run the same testcase) which I'm using private methods, and it's working fine. I don't know if you have done it or not... Are you sure you are calling invocation.invokeNext() in your interceptor? This is just

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

2004-08-09 Thread nthx
clebertsuconic wrote : | Are you sure you are calling invocation.invokeNext() in your interceptor? | | This is just a guessing, but at a first look looks like you are calling the | banking.aspects.persistance.PreparedStatements.getConnection | instead invocation.invokeNext(). |

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

2004-08-09 Thread clebertsuconic
Well... The testcase I have it's very simple, and I'm using Interceptor there. (Not aspect) The ant target to active the testcase is aop-test or aop-test-classloader The sourcetree is: /jboss-profiler/java/src/aopAgent/org/jboss/profiler/aop/test View the original post :

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

2004-08-09 Thread kabkhan
I'm investigating a fix. For now, could you try using something else than caller pointcuts? For example: | aspect class=banking.jbossaop.transactions.DbConnectionAspect scope=PER_VM / | bind pointcut=execution(* banking.aspects.persistance.DatabaseGateway-getConnection()) |

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

2004-08-09 Thread nthx
Hi, Problems with cvs compilation: First: downloaded whole jboss cvs tree (default branch) cd jboss-aop build.bat dist Second: In file: jboss-aop/build.xml line: | fileset dir=${project.thirdparty}/xdoclet-xdoclet/lib | is incorrect. There is no dir called xdoclet-xdoclet. But I

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

2004-08-09 Thread Bill Burke
It should be: | $ cvs checkout jboss-head | $ cd jboss-head/aop | $ build.sh dist | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844572#3844572 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844572

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

2004-08-09 Thread Bill Burke
We know the problem and the bug fix for it. Will fix ASAP. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844574#3844574 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844574

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

2004-08-09 Thread nthx
kabkhan wrote : I'm investigating a fix. For now, could you try using something else than caller pointcuts? For example: | | | aspect class=banking.jbossaop.transactions.DbConnectionAspect scope=PER_VM / | | bind pointcut=execution(*

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

2004-08-09 Thread kabkhan
Hello there, I've added a fix for this. Can you get the latest from cvs and try again? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844604#3844604 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844604

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

2004-08-09 Thread neil loughran
Thanks Bill, What do you mean by dynamic? I know that dynamic means different things in the AOP world.. for instance AspectJ folks might say that their CFLOW is dynamic as it collects information as the program is running yet is still to all intents and purposes a compile time technique.

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Primitive types transparency

2004-08-09 Thread Bill Burke
Ok, that's a bug. I need to parse for float, int, etc... apologies. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844618#3844618 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844618

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

2004-08-07 Thread kabkhan
Hi, Can you please show the relevant bits of your ABConnection class and jboss-aop.xml file? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844482#3844482 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844482

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-06 Thread rkadayam
Well, not sure if what I'm doing qualifies as hot-deploy or not, but I have a console that acts as an interface to dynamically at run-time attach and detach advices to the advice stacks. And in turn the advice stacks updates every AdviceBinding that it references internally. My concern is more

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-06 Thread rkadayam
So I just did a small experiment and it seems like in whatever order the advice bindings were created, that was the order in which the advices/interceptors were ordered. Meaning if I attached the advice to SpecificMethod pointcut binding first and then AllMethods pointcut binding next. Then

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

2004-08-06 Thread [EMAIL PROTECTED]
Yes. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844463#3844463 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844463 --- This SF.Net email is sponsored by OSTG. Have

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-05 Thread Bill Burke
You can hotdeploy a pointcut definition, but this does not cause bindings to be reapplied. Am I making sense? So, if you modify AllMethods at runtime and redeploy it, bindings will not be recalculated. Currently, the code isn't smart enough to know if the binding references a named

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

2004-08-05 Thread Bill Burke
Why JBoss AOP over AspectJ? - 100% pure Java - annotation support (JDK 1.5 and 1.4) - Metadata and annotation override facility - load-time transformations (instead of compile time) - hotdeployment of aspects (dynamic AOP) - per-instance API (dynamic AOP) - dynamic CFLOW - pluggable pointcuts -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: name of the class intercepted

2004-08-05 Thread Bill Burke
Better would be: | ((ClassAdvisor)invocation.getAdvisor()).getClazz(); | This is because getTargetObject may be null for static members. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844304#3844304 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Pointcut expression for methods that take arrays as argu

2004-08-05 Thread Bill Burke
We don't support this. If you'd like to contribute it, it would be most welcome. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844305#3844305 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844305

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-03 Thread kabkhan
Taken a quick look at the code for the above, and the assumption above regarding ordering of interceptors seems safe. Now, in response to your actual question :-) The global/specific stuff is fine. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843975#3843975

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-02 Thread rkadayam
Sorry, for some reason my xml lines got stripped off, the aop xml looks like | pointcut name=Method1 expr=execution(* test.TestServiceBean-method1(java.lang.String)) / | pointcut name=AllMethods expr=execution(* test.TestServiceBean-*(..)) / | | bind pointcut=Method1 | interceptor

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: name of the class intercepted

2004-08-02 Thread kabkhan
Invocation.getTargetObject().getClass().getName() View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843938#3843938 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843938

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-02 Thread kabkhan
In my experience the bindings are applied top-down, i.e. in your example Interceptor1 should be applied before StackOne. I'm not 100% sure if this is documented behaviour though View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843939#3843939 Reply to the post

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: A Web-Application with JBoss AOP

2004-07-30 Thread kabkhan
If you get the latest from cvs head, there are some examples for packaging under aop/docs/examples/injboss View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843731#3843731 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843731

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Pointcut expression for methods that take arrays as argu

2004-07-29 Thread nthx
Hi, there. This is my first post after checking out JBossAOP, and implementing persistance and transaction layer for my POJOs with it. So ... Is it possible to intercept element-of-an-array assignment? I mean: | //I'd like some code here (through Interceptor, of course) | myArray[5] =

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

2004-07-29 Thread neil loughran
I'm also interested in this. What are the major reasons for choosing JBoss AOP over AspectJ or even Aspectwerkz? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843673#3843673 Reply to the post :

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

2004-07-16 Thread Bill Burke
sorry for the late response. With current CVS head I was able to write a unit test that had these pointcuts you described above with no problems. Maybe I have fixed something since Jun, I don't know. | | bind pointcut=execution(public * $instanceof{javax.ejb.SessionBean}-*(..))

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: a question about advisable

2004-07-14 Thread Bill Burke
JBoss AOP has changed significantly since the DR2 release. advisable is now prepare http://www.jboss.org/wiki/Wiki.jsp?page=DynamicAOP View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842020#3842020 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Pointcut expression for methods that take arrays as argu

2004-07-14 Thread Bill Burke
This should work | execution(void java.lang.Object[],com.pkg.CustomObject[]) | | Don't forget that any class, even if it is in java.lang package must be fully qualified. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842134#3842134 Reply to

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: A Web-Application with JBoss AOP

2004-07-13 Thread Bill Burke
You can place the .war directly within the sar. So the sar would look like this: | kado.sar/ | kado.aop | kado.war | if that doesn't work, let me know. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841869#3841869 Reply to

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: A Web-Application with JBoss AOP

2004-07-13 Thread kado0002
Yes this works! Thanks Karsten View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841876#3841876 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841876 --- This SF.Net email

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-12 Thread Bill Burke
You are getting the error because the Interceptor is in the same package expression as the class you are trying to intercept. Thus, you have an infinite loop. Put your interceptors in another package that doesn't match your wildcard. Bill View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Several jboss-aop.xml...

2004-07-12 Thread Bill Burke
Are you running inside JBoss? AOP is packaged similarly to SARs(Mbeans). You can either deploy an XML file directly in the deploy/ directory with the signature *-aop.xml or you can use the JAR format. The JAR format must have the file extension .aop and a jboss-aop.xml file must be contained

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another issue...

2004-07-12 Thread Bill Burke
Since you are not running within JBoss you need to use System properties to tell JBoss AOP how to resolve XML files to be deployed. Please see our WIKI for more information View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841812#3841812 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss-aop-beta3 failed to transform

2004-07-12 Thread Bill Burke
JBoss AOP aopc will generate a bunch of class files that are optimized versions of Invocation classes. When in doubt, blow away your class directory with everything in it. Looks like you cleaned up DBBasicManager.class, but not the generated AOP class files. Bill View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP examples on jboss-4.0.0DR3

2004-07-12 Thread Bill Burke
http://www.jboss.org/wiki/Wiki.jsp?page=RunningWithJBossApplicationServer Use 4.0DR4 and Overwrite with jars from JBoss AOP beta3 distribution. Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841814#3841814 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-07 Thread eyp
Sorry I forgot to specify my environment: J2SDK 1.4.2_04, JbossAOP 1.0 beta3. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841186#3841186 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841186

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-07 Thread eyp
If I change jboss-aop.xml to ?xml version=1.0 encoding=UTF-8? aop bind pointcut=execution(public * es.pfc.test.TestAOP-*(..)) interceptor class=es.pfc.test.aop.MethodAuthorizationInterceptor/ /bind /aop The sample works fine, but I don't know why? View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-07 Thread kabkhan
You must specify the fully qualified name of the class, an $instanceof{} expression or a $typedef{} expression. I'm afraid I don't know if your problem is a bug or the expected behaviour. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841188#3841188 Reply to

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-07 Thread eyp
Sorry, I don't understand you. I'm specifying the fully qualified name of the class: bind pointcut= execution(public * es.pfc.test.TestAOP-*(..)) but when I use wildcards it doesn't work bind pointcut= execution(public * es.pfc.test.*-*(..)) View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-07 Thread kabkhan
I was just stating what you already found out :-) I _think_ you must specify the full name of the class. If the error you get using wildcards is by design or a bug I don't know... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841191#3841191 Reply to the

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another issue...

2004-07-07 Thread eyp
Well, I've got it works but I need to set the system variable: -Djboss.aop.path=/home/eduardotp/Aplicaciones/jakarta-tomcat/webapps/multi/WEB-INF/classes/jboss-aop.xml View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841192#3841192 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Another test that not execute correctly...

2004-07-07 Thread eyp
Hehe, sorry, I need to improve my english :) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841193#3841193 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841193 --- This

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: How intercept inherited methods?

2004-07-07 Thread kabkhan
Look at instanceof in the tutorial. Is that what you mean? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841240#3841240 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841240

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss-aop.xml don't appeared...

2004-07-06 Thread eyp
aop bind pointcut=execution(public * es.bancoval.bfci18n.support.commands.*-*(..))/ interceptor class=es.bancoval.bfci18n.aop.MethodAuthorizationInterceptor/ /bind /aop View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841104#3841104 Reply

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Trouble with converting an AspectJ program

2004-07-05 Thread prilmeie
Mixins are definitely a good start, but nevertheless it's very hard, because I have to split the aspect into the static (mixin) and the dynamic part (interception). My feelings about this are that this is not in the spirit of AOP. But let's get to the facts. As far as I understand the WIKI

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Trouble with converting an AspectJ program

2004-07-05 Thread kabkhan
I took a look at your example: 1) Initially when I ran it the class cast failed. However, I found this to be due to running within Eclipse, with your jboss-aop-stack on the source path. And my personal build.xml is set up to use the Eclipse output classes. For some reason, this was causing

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Trouble with converting an AspectJ program

2004-07-05 Thread kabkhan
Ops! | public class StackHeightAspect implements IStackHeight | { | private int height; | | public int size () | { |return height; | } | | public Object pushInvocation ( MethodInvocation invocation ) throws Throwable | { | ++

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Trouble with converting an AspectJ program

2004-07-05 Thread prilmeie
Many, many thanks, I would have been lost without you! You saved me at least one week reading (and trying to understand) the JBoss AOP source code. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3841007#3841007 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Trouble with converting an AspectJ program

2004-07-01 Thread kabkhan
I'm not familiar with AspectJ, but I think the examples you show (if I have understood them correctly) should be possible with JBossAOP. I'm just thinking loud, but with a combination of mixin classes and per instance aspects I reckon you could acheive what you're after. They are documented on

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

2004-06-30 Thread kabkhan
Bill is at Java One, and should be able to give a proper answer when he is back. In the meantime: Two people are working on Eclipse support at present, so expect something in that area soon. You can use JBoss AOP with 3.2.4 or higher, docs/misc/running_jboss.html in the distribution shows

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: java.lang.ClassNotFoundException: org.jboss.aspects.secu

2004-06-23 Thread Umefjord
(corrects previous post) In my jboss-service.xml I have: | ... | attribute name=EnableTransformertrue/attribute | ... | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839608#3839608 Reply to the post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: java.lang.ClassNotFoundException: org.jboss.aspects.secu

2004-06-23 Thread Umefjord
Hmm... I would like to add that the reference to org.jboss.aspects.security.SecurityClassMetaDataLoader comes from base-aop.xml that I copied from the 4.0.0DR4 release to the /conf directory. However, if this file is removed entirely the startup complains about that too (Failed to obtain

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: java.lang.ClassNotFoundException: org.jboss.aspects.secu

2004-06-23 Thread solo
No I did the following (basically): * Downloaded Jboss 3.2.4 * Copied the jar files (for aop and the aspects) * Modified the jboss-service.xml * Added the base-aop.xml to the conf dir ... And deployed my aop app.. worked... /mario jboss-service.xml -- !-- Aspect

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: java.lang.ClassNotFoundException: org.jboss.aspects.secu

2004-06-23 Thread Umefjord
Hi, thanks for replying... I think the problem has got to do with the fact that I need to use the customized classloader approach... In my aspect configuration of jboss-service.xml I use | attribute name=EnableTransformertrue/attribute | to enable this. I noticed that you had not done

<    1   2   3   4   5   6   7   >