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

2004-10-18 Thread Bill Burke
See section 4.4.4. You can write your own factory by implementing AspectFactory which accepts an Element. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851823#3851823 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=385

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

2004-10-18 Thread rkadayam
For one the packaging becomes lighter. It may not be an issue but have this fear that there might be some conflicts with maybe like xml parsers, etc. The javabean style attribute setting sort of takes away the generic "property based" configuration that was possible in the previous release. Wond

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

2004-10-18 Thread Bill Burke
The jboss-common.jar dependency still exists. Why would it matter with other app servers? Its only using a few org.jboss classes. Read this and let me know if it answers your config questions: http://docs.jboss.org/aop/aspect-framework/reference/en/html/xml.html#xml-aspect3 View the original

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

2004-10-18 Thread [EMAIL PROTECTED]
What was the reason for adding this dynamically as opposed to using the xbmean deployment descriptor attribute? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851784#3851784 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&

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

2004-10-18 Thread Bill Burke
Finally got around to fixing this. Its in CVS now, will be in 1.0 Final release this week. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851754#3851754 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851754 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread Bill Burke
hany_bee, What about a servlet filter or a Tomcat valve? This is how we implemented JBoss Security integration with Tomcat. If you're dealing with web requests (HttpServletRequests), then a filter or valve is probably a better solution anyways... Thomas, Kabir is working on JSP side of thin

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread nthx
Hey, thanks for explaining diff between static and dynamic sec model. I will need dynamic one in some application and was wondering whether to use already written JBoss' security aspects. Tomasz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851733#3851733

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread hany_bee
Thanks for the explanation. The idea for the security framework is that, the declarative security model is static, and it's very hard to do dynamic access control management. For example, say I have a content management app, which I want to hook to an external acess manager. Let say I can defin

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread nthx
Hi. My penny to disscussion. I have Struts application and been using Tomcat server. I'd like to use JBossAOP with it. So what I've tried is: precompiled my plain servlets, jsps (in Struts meaning) with jasper/jspc. This way I got sources of my web pages for my application. As I have sources

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread Bill Burke
JBoss AOP works in two ways. Either you precompile your Java .class files to push in the AOP stuff, or you set JBoss AOP up so that it does the bytecode transformations at runtime when the class is loaded. Load-time transformation requires hooks into the classloader. With JDK 1.4, we origin

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread hany_bee
What's this new classloader stuff that you guys have in head? Mind sharing the concept a little bit? What I'm trying to do is to prototype some security framework that can be applied to web applications in a more or less uniform way. Unfortunately, having a clean and clear-cut "interceptor" th

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

2004-10-18 Thread pilhuhn
No, no problems - au contraire. It wasn't obvious to be that it does this, and I apparently did not read enough of AspectDeployer.java ;-/ Thanks Heiko View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851716#3851716 Reply to the post : http://www.jboss.org/

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP interceptor applied to all JSP/Servlet requests?

2004-10-18 Thread Bill Burke
I don't believe you can intercept code with JSPs within precompiling the JSPs. You MAY be able to do this with JDK 5.0 and our instrumentor, or the new JDK 1.4 classloader stuff we have in HEAD. Kabir is going to take a look. View the original post : http://www.jboss.org/index.html?module=bb&o

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

2004-10-18 Thread Bill Burke
The way the AOP deployer works is that when jboss-aop.deployer is deployed, it inserts .aop and aop.xml into the MainDeployer suffix list. ARe you having problems? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851713#3851713 Reply to the post : http://w

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

2004-10-17 Thread pilhuhn
Hm. ok. I did probably misworded my post. I did not want to assume that the aop files get implicitly deployed between 'deployer' and 'sar'. I wanted to ask if aop should not be added to either the DeploymentSorter or to the XMbean-DD you mentioned. Cheers Heiko View the original post : http

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

2004-10-17 Thread [EMAIL PROTECTED]
No, in the absence of an explict declaration of the order, an unknown deployment suffix will be deployed after all others. Note that in 4.0 the deployment suffixes can be set via the SuffixOrder attribute of the org.jboss.deployment.MainDeployer-xmbean.xml found in the conf/xmdesc directory. V

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

2004-10-15 Thread Bill Burke
On "within" + get/set. This is not possible. We will look to adding this after the 1.0 release. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851594#3851594 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851594 --

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

2004-10-15 Thread Bill Burke
fixed in CVS. 1.0 will go out next week. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851593#3851593 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851593 --- Thi

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

2004-10-15 Thread kabkhan
Hi there, Regarding this: "charles_blaxland" wrote : | - It appears that you can't refer back to a previously defined typedef when defining an introduction? (ie: in a similar way to how you can refer back to a previous pointcut definition when defining an interceptor). What I would like to

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

2004-10-14 Thread Bill Burke
BTW, feel free to advertise the aspects you are writing on our WIKI. http://www.jboss.org/wiki/Wiki.jsp?page=ContributingYourOwnAspects Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851493#3851493 Reply to the post : http://www.jboss.org/index.html?mo

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

2004-10-14 Thread Bill Burke
If you use load time transformation, then yes, it is definately more expensive to have caller pointcuts although I haven't done any measurements. If you use the AOP precompiler, doesn't really matter how slow it is... Bill View the original post : http://www.jboss.org/index.html?module=bb&op=

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

2004-10-14 Thread charles_blaxland
Great, thanks Bill! "Bill Burke" wrote : | Does this work for you??? | | http://docs.jboss.org/aop/aspect-framework/misc/reflection.html | Cool - this is very nice and will do exactly what I want :-) Out of curiosity, is there much overhead in adding global call/field pointcuts (ie:

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

2004-10-14 Thread Bill Burke
"charles_blaxland" wrote : I've been writing some aspects with JBoss AOP and I like it a lot so far :) | | Some questions/suggestions: | | - The "within" scope limiter doesn't seem to work with field/set/get pointcuts? Should it? | | I'll add this to the list. So, the answer is

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

2004-10-14 Thread Bill Burke
Yes, I wanted to do this as well for awhile. I wanted aspects scoped per ClassLoader domain, per Loader Repository. If you're interested in implementing, let's discuss over email some ideas. [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=38

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

2004-10-14 Thread charles_blaxland
Think the problem with this is that the serialization spec requires readObject/writeObject to be private, but AFAIK there's no way to introduce private methods into your objects (or am I mistaken?). Anyway, I've found another way to solve my problem without this. View the original post : htt

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-14 Thread KevinConner
anonymous wrote : It is not correct type of comparition. The comparison relates to the additional functionality that PrintWriter.println provides in and above that provided by Writer.write. In this case it is simple, just adding the correct eol characters for the platform, but it is an example o

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-14 Thread nthx
"KevinConner" wrote : | Think of my solution as the PrintWriter that surrounds the Writer ;-) | E-e :/ It is not correct type of comparition. But thanks for sample. Let's have a closer look at it, by first showing present state of JBossAOP API | public void MyAspect | extend

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-13 Thread KevinConner
anonymous wrote : What type of simplicity are you talking about? I was talking about the simplicity at runtime, i.e. calling the aspects, and not during bytecode annotation. anonymous wrote : The case we're discussing (types of advices) is simple to imagine. Come on.. It is very simple to imag

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-13 Thread nthx
"KevinConner" wrote : Hiya guys. | | ... as it provides the advices that remove the code duplication | With full respect to your code Kevin (I use it): I will send you my custom code for using writting Strings to System.out. Why should we use System.out.println(String) method if we ca

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-13 Thread KevinConner
Hiya guys. I'm busy tracking down JacORB problems at the moment so missed this. The code that I have given you is 'fully functional' in so far as it provides the advices that remove the code duplication. Give it a try, you may like it :-) I tend to agree with Bill on the matter of simplicity.

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-13 Thread nthx
Bill, will you agree with me that code duplication is something bad? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851271#3851271 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851271

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-13 Thread Bill Burke
before/after returing/after throwing could easily be added to JBoss AOP with a day of work, But Again, I still see this as nothing more than you wanting to avoid having a try/catch/finally block, or to avoid calling invocation.invokeNext(). IMNSHO, ordering of aspects and how the aspect

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

2004-10-12 Thread Bill Burke
Not in there yet, but I think you can do it with either an introduction, or an execution pointcut. The introduction would introduce the read/writeObject method if the object did not implement Externalizable. If the object does implement Externalizable, then intercept the read/write of the Exte

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-12 Thread nthx
Hi Kevin! I was on short vacations, so forgive delay.. I'm impressed your patience for this topic. I've lost my energy for trying to explain why one needs 'before-after' types of advice. When you get fully functional code for "emulation" of before-after, send it to JBossAOP CVS, so other app d

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

2004-10-08 Thread charles_blaxland
"Bill Burke" wrote : I want to add a serialization-pointcut. What it will do is intercept write/readObject for Serializable, or read/Write object on Externalizable. Hi Bill, I have a need for exactly this feature. Did it ever get implemented? I can't find a reference in the doco about it. I

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

2004-10-08 Thread Bill Burke
Thanks, fixed... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850772#3850772 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850772 --- This SF.net email is sponso

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

2004-10-08 Thread worldheart
Here ,if you unpack jboss-aop_1.0RC2.zip archive \jboss-aop_1.0RC2\jboss-40-install\jboss-aop-jdk50.deployer\META-INF lack the jboss-service.xml file. so users must copy jboss-service.xml from jboss-aop.deployer file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewt

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-10-07 Thread KevinConner
Hiya Tomasz. I eventually found some time to put together one of my ideas, here's an example using it (uses the annotation compiler). The annotation interfaces. package knrc.beforeAfter2; | | /** | * @author kevin | */ | public interface after | { | } package knrc.beforeAfter2;

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Aspect for replacing Class.forName()?

2004-09-30 Thread Bill Burke
oh, ok, good idea i View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849991#3849991 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849991 --- This SF.net email is

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Aspect for replacing Class.forName()?

2004-09-29 Thread duslow
(My apologies for a double post .. my last post was cut off) One example is what Adrian wrote about in this thread http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50041Class.forName() The important snippet is .. "You should always use Thread.currentThread().getContextClassLoader().loa

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Aspect for replacing Class.forName()?

2004-09-29 Thread duslow
One example is what Adrian wrote about in this thread http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50041Class.forName() The important snippet is .. "You should always use Thread.currentThread().getContextClassLoader().loadClass() which avoids Sun's broken caching. But I have never

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Aspect for replacing Class.forName()?

2004-09-29 Thread Bill Burke
Can you spec this out more? I don't understand what you mean. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849908#3849908 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849908

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

2004-09-29 Thread Bill Burke
you can't have multiple XML's per Jar file. BUT... You can have multiple JAR files that have an xml file within them. We could implement this thoughInterested in doing it? Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849868#3849868 Reply to the

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

2004-09-28 Thread hany_bee
Thanks, that works fine. But how do I make it work if I package the app as a jar file? How can I make it read multiple binding files from the jar file? thx View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849815#3849815 Reply to the post : http://www.jboss.o

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

2004-09-28 Thread Bill Burke
Short answer is YES For our new doco here: http://docs.jboss.org/aop/aspect-framework/reference/en/html/running.html anonymous wrote : | You need to tell JBoss AOP where the xml configuration files of your bindings are. This can be done in one of these two ways: | | * Set the jbo

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

2004-09-28 Thread nthx
Hi. I'm not an expert about JBossAOP packaging, but this is what I use: | | | | &developer1.ent; | | | On Windows, you must change "/" to "\" I think. You may also use Ant task, to join several XML files into one. Regards, Tomasz View the original post : http://www.j

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-09-28 Thread nthx
"KevinConner" wrote : | ...I must admit that if I was faced with an aspect containing 30 advices then I would be wondering whether the design was correct. Is this connected with your pervayler library? If so, we can take this offline. | | Kev | Hello, Oh my, no way! :) It's for my c

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-09-28 Thread KevinConner
Hiya Tomasz. anonymous wrote : Yes it works. I'm impressed. Thanks, I aim to please ;-) anonymous wrote : Ok. But still it is a workaround, although smart and works for this example. I wouldn't call it a workaround, just a clean design that refactors common code and is based on the JBoss API :-

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-09-27 Thread nthx
Thanks for your time Kevin. Yes it works. I'm impressed. With your solution my 3DAspect looks simple. It's simple to configure it in way that you've provided. And my ExceptionHandlerAspect4D is a simple old JBossAOP aspect, with plain invoke(..). That's enough for me. Ok. But still it is a work

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-09-24 Thread nthx
Thanks for explanation.. t. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849438#3849438 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849438 --- This SF.Net em

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why lack of 'before' and 'after' advice types is bad..

2004-09-24 Thread Bill Burke
what are the exact semantics of before/after? You get the same thing with around. You want before? | try | { | doBefore(); | invocation.invokeNext(); | } | You want after? | try | { |Object rtn = invocation.invokeNext(); | doAfter(); | return rtn;

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

2004-09-23 Thread Bill Burke
Ok, RC1 will not work with JBoss 3.2.5 as the base deployer class has changed in 4.0. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849344#3849344 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849344 ---

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Arguments of method that called some other method.

2004-09-23 Thread kabkhan
It was just a thought... It could be very messy - I agree. Some combination of ThreadLocal's and cflow might help a bit View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849326#3849326 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mod

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Arguments of method that called some other method.

2004-09-23 Thread nthx
"kabkhan" wrote : But you could create in interceptor to intercept method(), and store the parameters somewhere, and then access that from your other advice. To make a tunnel you say. Thanks for it. It could be done, but this place of storing.. it smells bad for me. I'll consider both. For now I

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Arguments of method that called some other method.

2004-09-23 Thread kabkhan
But you could create in interceptor to intercept method(), and store the parameters somewhere, and then access that from your other advice. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849322#3849322 Reply to the post : http://www.jboss.org/index.html?modu

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Arguments of method that called some other method.

2004-09-23 Thread nthx
"Bill Burke" wrote : you cannot get arg1 as it is higher in the stack. Sh.. :( Thanks for quick answer. t. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849321#3849321 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: Arguments of method that called some other method.

2004-09-23 Thread Bill Burke
you cannot get arg1 as it is higher in the stack. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849319#3849319 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849319 ---

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

2004-09-23 Thread Bill Burke
I have not tested RC1 yet with 3.2.5. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849306#3849306 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849306 --- This SF

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

2004-09-23 Thread tomerbd
Hi I saw no jboss-aspect.jar in jboss-aop-1.0RC1.zip nor in jboss-aspect-library-1.0RC1.zip (however there do exists jboss-aspect-library.jar that contains the class that was not found -org.jboss.aspects.security.SecurityClassMetaDataLoader. So the jar is there in my server/configuratoin_name

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

2004-09-23 Thread Bill Burke
Ok, I have updated the WIKI page. Let me know if that works for you. Sorry for crappy installation. WE'll improve this with the next release. Regards, Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849298#3849298 Reply to the post : http://www.jboss

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

2004-09-23 Thread Bill Burke
What exactly is the error? This WIKI page is out of date. It needs to be updated. I didn't get a chance to do it before the FINAL release. We'll be putting out a detailed reference guide on Friday. The AspectDeployer service is not emedded in the aop.deployer jar and can be configured in ao

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

2004-09-23 Thread Bill Burke
You must also have the jboss-aspect library within the lib/ directory. Let me know if that fixes it. Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849294#3849294 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=re

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

2004-09-23 Thread tomerbd
anonymous wrote : 16:53:25,259 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04 | ,Sun Microsystems Inc. | 16:53:25,259 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86 | 16:53:25,852 INFO [Server] Core system initialized | java.lang.ClassNotFoundException: org.jboss.

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

2004-09-23 Thread Bill Burke
which error are you seeing? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849285#3849285 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849285 --- This SF.Net email

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

2004-09-23 Thread tomerbd
Is there a way / workaround to overcome this error ? (I want to work with AOP on jboss-3.2.5 and I receive this exception when starting up jboss with the EnableTransformer=true...) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849284#3849284 Reply to the po

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: 'within' and 'set' and documentation page

2004-09-23 Thread nthx
Sorry, it was to hurry. My pointcut doesn't make sense at all. I can have "set(my.*->*)" without using "within". I've tried to use it in another poincut together with "(set(...) OR call(...) OR execution(...)) AND within(my.package)". That's why. Sorry, forget about that. t. View the origina

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: 'within' and 'set' and documentation page

2004-09-23 Thread Bill Burke
execution and set/get do not make sense with within as their purpose is to totally wrap EVERY invocation. within and withcode only make sense with call. I guess a callfield is necessary. I'll add that to the TODO. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=vie

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Placing break-points in the instrumented code

2004-09-22 Thread Bill Burke
Ok, this is fixed in HEAD and will be in RC2 release on Friday. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849145#3849145 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849145 ---

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: findMethodByHash & Unable to figure out calledmethod of

2004-09-22 Thread marciodel
I have changed the method findMethodByHash and my code is working now. Is it a general solution? public static Method findMethodByHash(Class clazz, long hash) throws Exception { System.out.println("findMethodByHash " + clazz.getName()); Method[] methods = clazz.getDeclaredMetho

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

2004-09-22 Thread nthx
Long post .. "Andrzej Krzywda" wrote : Hi! | | You can write an aspect which contains only precedence rules. This aspect you can use as a configuration file of your application: | | public aspect ForumConfiguration { | |declare precedence: Security, Logging, *; | | } |

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Annotate class only and crosscut methods within the clas

2004-09-22 Thread nthx
Hi And I was going to work today with a thought about posting about this simpler way that I found out yesterday evening... Ehhh :) Tomasz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849080#3849080 Reply to the post : http://www.jboss.org/index.html?mod

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

2004-09-21 Thread marciodel
Yes. It uses GPL license. (www.jcoverage.org) Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849014#3849014 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849014 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Annotate class only and crosscut methods within the clas

2004-09-21 Thread Bill Burke
Yikes, sorry I missed your post before This may be a better approach: | | | | This will bind your interceptor to every constructor of every class tagged as @my.root. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849011#38

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

2004-09-21 Thread Bill Burke
Is JCoverage free? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849012#3849012 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849012 --- This SF.Net email is spons

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

2004-09-21 Thread Bill Burke
No. The @Tx annotation is not @Inherited and JBoss AOP doesn't support @Inherited annotations (when they trigger pointcut bindings). Thanks for bringing it up. I'll add it to the list. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849009#3849009 Re

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Annotate class only and crosscut methods within the clas

2004-09-21 Thread nthx
Yupiii! And once more, I reply to my own post :) So here is the solution with new TYPE_DEF feature: jboss-aop.xml: | | | | | | | | | Interceptor: public class RootInterceptor |implements Interceptor | { | public Object invoke(Invocation invo

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

2004-09-21 Thread Andrzej Krzywda
Hi! "nthx" wrote : | PS. In AspectJ they did it wrong. They have "precedence" keyword which must occur in one of your concerns. But if you develop few independent AOP libraries and don't want to couple them? | | E.g. "precedence: AOPConcern1, TotallyDifferentConcern2;" | I can't agre

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Ideas for Local Variable Annotations?

2004-09-21 Thread corby
How about per-method injection? I create a DAO where different methods need to reference different back-end systems. public void persistOldContract( Contract c ) | { |@Injected(LEGACY_BACKEND) ContractPersistManager cpm; |cpm.save( c ); | } | | public void persistRecentContra

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unable to figure out calledmethod of a caller pointcut

2004-09-21 Thread marciodel
Hi. I forgot to say that the intercepted class is Connector. All others are not intercepted. I am using the SystemClassLoader. The pointcuts are being defined using the API and not the XML. Thanks, Marcio Alves View the original post : http://www.jboss.org/index.html?module=bb&op=viewtop

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unable to figure out calledmethod of a caller pointcut

2004-09-20 Thread marciodel
Hi, you are right. I am using "call(* packageName->*(..))". The following is the code that is causing the exception. When I remove conn.close(), the exception is not thown. MessageConnection conn = null; String url = "sms://" + getAttribute() + ":134"; try {

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unable to figure out calledmethod of a caller pointcut

2004-09-20 Thread Bill Burke
The caller pointcut should not be called.You can use the -report switch with the precompiler (the ant task would be report="true") and it will dump out all matching joinpoints and the bindings that they are attached to. a) are you using a "call" pointcut anywhere? It looks like you are. (or

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

2004-09-20 Thread rkadayam
Thanks for the tip. I had a feeling JGroups might come into play. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848832#3848832 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848832 ---

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

2004-09-20 Thread Bill Burke
Bill Burke wrote: > Does JBoss cache have the ability to register for cache changes? I have an AOP user > that is building a dynamic cluster-wide aspect manager. They need the ability to > have a replicated shared cluster-wide structure, but need to be able to notify on > changes so that they

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

2004-09-20 Thread Bill Burke
You may be able to use JBossCache. I'm not sure if you can register to listen for cache changes (so that you can update the aspectmanager), but you could use JBossCache and use JGroups to send a notification to the cluster to update the AspectManagers. What I"m REALLY interested in is a DEFAULT

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: PAT: JBossAOP library for Prevayler

2004-09-20 Thread Bill Burke
We would defintely be interested in it if you were willing to maintain and document it. Contact me: [EMAIL PROTECTED] and CC [EMAIL PROTECTED] Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848791#3848791 Reply to the post : http://www.jboss.org/index

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

2004-09-20 Thread Bill Burke
yes, we absolutely need precedence. I hope it gets into the initial release. What is your suggestion for syntax? Pure XML? A Package annotation? Per Aspect or Per Advice? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848790#3848790 Reply to the post :

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

2004-09-20 Thread nthx
"kabkhan" wrote : I'm currently working on specifying things via annotations :-) | That's why I'm trying to "warn" you before :) t. PS. I don't have idea how to solve it, in a nice manner, yet. When I get some I'll let you know.. View the original post : http://www.jboss.org/index.html?mod

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

2004-09-20 Thread kabkhan
I'm currently working on specifying things via annotations :-) The ordering question is a good one... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848756#3848756 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848756

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss3.2.5 + jboss-aop

2004-09-17 Thread dannyb23
Hi! I have just moved the definitions of the mbeans AspectManager and AspectDeployer to the "beggining" of jboss-service.xml (just after classpath tag and jboss starts up fine!!! (i dont think this should have any effect the order of the mbeans but it seems like it has...) but anyway its now f

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss3.2.5 + jboss-aop

2004-09-17 Thread Bill Burke
Seems like one of the aspect services failed to deploy. Is there any stack traces in bootup? Thanks, Bill BTW, I have not tested JBoss 3.2 integration with latest RC releases yet. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848608#3848608 Reply to th

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Placing break-points in the instrumented code

2004-09-17 Thread Bill Burke
I think I know what the problem is. I don't think Javasssist's copy method copy's CodeAttributes which have the line numbers. I'll see what I can do. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848596#3848596 Reply to the post : http://www.jboss.o

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Placing break-points in the instrumented code

2004-09-17 Thread kabkhan
PS in 2) I mean run the aop compiler View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848572#3848572 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848572 --- This SF.

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Placing break-points in the instrumented code

2004-09-17 Thread kabkhan
When trying to figure out what was going on I did the following on the small examples in the tutorial. I realise that this will probably be totally unpractical on a real project due to the number of classes. Anyhow, here it goes: 1) Compile classes 2) Precompile classes 3) Decompile classes, an

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

2004-09-15 Thread Bill Burke
If a particular joinpoint is "prepared" you do not have to recompile or even shutdown the JVM to add or remove an advice from a particular joinpoint. You can also add/remove interceptors on a per instance basis at runtime with a prepared joinpoint. How to prepare? This will instrument the cl

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: On emore AJ vs. JBAOP Querstion. Was Re: JBoss AOP vs. A

2004-09-15 Thread nthx
"rmcdonough" wrote : .I've been doing more reasearch on AOP overall | and more research on AspectJ and JBossAOP. Now I'm not sure that I'll be | phrasing thsi right, but it seems that AspectJ doesn't allow you to apply | advice or introduction on an existing class without explicitly de

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

2004-09-14 Thread kabkhan
In JBoss AOP you can attach things dynamically via the AspectManager class. You need to prepare your class first: http://www.jboss.org/wiki/Wiki.jsp?page=JBossAOP Go to Tutorial/Dynamic AOP View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848186#3848186 Reply

[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 aspect

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

2004-09-11 Thread cadospbr
Bill, first of all, thanks for your attention! Well, I really noted that there is a possibility to do what I want! This is a big goal to me! Where I can find some documentations ou tutorials about the development of "Aspect Web Services" in Jboss? Docs about EJB was going exposed as Web Service?

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

2004-09-11 Thread Bill Burke
In JBoss 4.0 and J2EE 1.4. Stateless Session EJBs can be exposed as web services. You can propagate principal and credentials using basic auth, but the spec really doesn't specify security semantics. Security isn't difficult to write as an aspect, but what is difficult is plugging in how the

[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 : http://www.jboss.org/index.html

<    1   2   3   4   5   6   7   >