As depends on first, all you need is only to compile needed plain _Java_
files - including aspects you want. Put then, every compiled *.class file into
your "build" directory and run on that directory.
Here snippets from my build.xml:
|
|
|
|
|
|
Hint:
Docs:
6.3. Preparation
Dynamic AOP cannot be used unless the particular joinpoint has been
instrumented. You can force intrumentation with the prepare functionality
I _think_ that's the problem.
Regards,
Tomasz
View the original post :
http://www.jboss.org/index.html?module=bb&op=vi
Hmmm, something wrong happens to the forum or sth.. (bug?)
I did NOT post former post here on this forum.
I did started topic "Standalone remoting without JBossAS vs Pojo architecture"
on other forum.
I've been watching the topic.
I've just reveived notification, someone answered to notified to
"[EMAIL PROTECTED]" wrote : ...
| The include is a bug though and we'll fix as soon as we can.
|
| Bill
Just remind. I haven't found that on JIRA.. or has it been already fixed
Regards,
Tomasz
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858572#3858
Ok. I got this SharedStoreCacheLoader, but I have little problems with using
it. It has strange constructor, so it cannot be plugged directly by using XML
conf file. Any help with this, please?
Next thing:
about shared cache loader.
Correct me if my assumptions are wrong:
-I want to have share
Yes, I want to write my own persistence layer, but let's say I want to do it
with 1.1, because that's last stable version.
Maybe I'll repeat problem in other words:
1) I want to cache Root object which may have some children: accessed through
'getChildren()' method.
2) I want to combine cachi
Hi!
I wonder whether when asking node (invoking 'getChildren()') for some objects,
the method is realy executed on coordinator? I suppose it doesn't :(
So what I try to achieve is to use my own persistence aspects - not CacheLoader.
The scenario is: execute 'getChildren' on slave -> this trigge
Hi!
Thanks for tip about "transient log". That was the problem in JbossCache 1.1
I won't check CVS version for now. I'll wait till 2.0. And btw, when will it
be? ~end of november?
Rgrds, Tomasz
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855184#3855184
"bwang00" wrote : Can you create a JUnit test case and submit it here or email
me ([EMAIL PROTECTED])? I'll take a look.
|
| Thanks,
|
| -Ben
Ok. Prepared sources and sent to you. When you'll find the_thing, let us know
and show where the problem lies.
Thanks,
Tomasz Nazar
View the o
"bwang00" wrote : For setter method, you can't ovelroad it like:
|
| void setName(String name);
| void setName(Object obj);
|
| This will be fixed in the upcoming 1.2 release in November. In addition,
the collection classes api will be enhanced as well.
|
| -Ben
Sorry, but had to
Hi
It works.
You must use "execution" joinpoint instead. It won't work with "call" joinpoint
as it doesn't make sense. Even if it works with AspectJ, when I think about
"call" type it looks strange to change called method's arguments from caller
context.
Is there some special reason you can't
Ok. This was in TreeCacheAop.java's javadoc..
And what about second question?
Regards,
Tomasz
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854586#3854586
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854586
-
Hi,
In TreeCacheAop doc you state sth like this: "..Whenever there is state change
('set*' interceptors)..All 'get*' operations.. "
I wonder if it is a good idea to restrict user of JBossCache to conform to some
getters-setters standard. Maybe it would be better to intercept field access
(read
I'd be satisfied with that. That's exactly what I meant.
Tomasz
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854045#3854045
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854045
Hi!
There is part of documentation saying:
anonymous wrote : org.jboss.aop.joinpoint.MethodCalledByMethod
| ..This particular class encapsulates a method that is calling another method
| so that you can access the caller and callee
Well, callee we have with invocation.getTargetObject() (righ
"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
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
Hi.
I've updated JBossAOP to FINAL version and have problem with my XML entities which I
access from XML my-aop-file.xml file.
Here's the code:
| $cd /home/nthx/private/YYY/Project/
| $ls
| configurations/
| src/
| build.xml
|
|
| $cat /home/nthx/private/Y
"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
Hi everybody!
I've read documentation about remoting and wished to remote my plain Pojo object:
public static void main..
| Pojo my = new Pojo(17);
|
| after advice:
| Dispatcher.simgleton.registerTarget("/pojo", my);
| return my;
|
As I've expected a client code might
"bwang00" wrote : For setter method, you can't ovelroad it like:
|
| void setName(String name);
| void setName(Object obj);
|
| This will be fixed in the upcoming 1.2 release in November. In addition, the
collection classes api will be enhanced as well.
|
| -Ben
OK, thanks for in
Hello,
I have the same problem with the difference that:
-JbossCache 1.1
-standalone without anything else (JBossAS..)
-adviced all the classes' fields with 'prepare' tag
-have two different applications: Forum and Bank
-both uses collections but Bank uses map.values() and a map where values con
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
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
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
"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
"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
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
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
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
"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
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
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
Hi!
It's in my mind from some time. Now I share it with you.
Imagine situation of say, 3D concern which does sth before invoking core method. It's
applied directly on core classes (assuming OO is 2D)
Let's suppose someone wants to add 4th dimension concern directly on 3D concern. Its
aim would
"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
"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
Hi.
Is there any way to get underlined arguments:
| public void method(Object _arg1_, String _arg2_)
| {
| collection.add(arg2); <- join point "call(*
$instanceof{java.util.Collection}>add(..))"
|
| }
public Object advice(MethodCalledByMethodInvocation invocation)
| {
|
Hi everyone,
public class Pojo
| {
|
|
| }; <- because of this semicolon ...
|
we got exception:
| [javac] Compiling 2 source files to /home/nthx/tmp/JBossAOPTests/build/classes
| [annotationc] Working directory ignored when same JVM is used.
| [annotati
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
Hi guys.
I've tried to define pointcut:
|
|
But it doesn't intercepts what I want. It works with 'call' and 'execution' pointcut
types.
I need that combination..
PS. Maybe there should be separate page on JBossAOP Wiki about "with and withincode".
They are quite important in AOP.
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, *;
| | }
|
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
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
"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
Hello readers!
Maybe someone would be interested in a library (framework?) I've developed last time
with JBossAOP.
It's kind of persistance concern which uses Prevayler: object, in-memory database.
>From the top of it you code POJOs only, and annotate root of your object graph with
>@@pat.root
Hi,
I was thinking about new way of specifying pointcuts, advices within a method's
comment (as annotations). How do you want to order advices then? Which will be the
first, and so on.. the one which classloader loads first?
In 'jboss-aop.xml' it was simple - the same order as definition order.
"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
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
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.
A
"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 po
"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..
http://www.jboss.org/index.html?module=bb&op=viewtopic
Hi.
Don't know where to find cause of error:
| [java] java.lang.ClassCastException
| [java] at org.nthx.pat.demo.Forum.Forum_new_$aop(Unknown Source)
| [java] at org.nthx.pat.demo.Driver.main(Unknown Source)
| [java] Exception in thread "main"
|
Decompiled
Hi,
Another separate topic after work at weekend.
I need my objects to be serialized. I also need to introduce Identificable
implementation to every of them, to give them OID. I did this by introducing
IdentificableMixin:
| public class IdentificableMixin...
| {
| private Long oid;
Hi all
During weekend heavilly developed (what? later :) ) with JBossAOP.
Question by the code:
package my.demo;
| /** @@my.root */
| public class RootClass
| {
| public RootClass()
| {
| //constructor here
| //...
| }
| }
|
| jboss-aop.xml
|
and everything with calls to private
members works correctly.
The exact version of jdks, that problem arrises are:
| D:\nthx\E8-workspace\JBossError\sent-to-NET\JBossError>java -version
| java version "1.4.1-rc"
| Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc
"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
: try to change class and package name of class
BankingWithPersistanceDemo... you'll see :)
For demo, just..
> ant
cu - nthx
PS. How to transfer jboss.aop.optimized property to ant task?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3
ecution of public
PreparedStatements.getConnection()) worked fine. After switching to the latest
jbossaop:
| [aopc] [no comp needed]
D:\nthx\E8-workspace\JBossAOPBanking\build\classes\banking\
| aspects\persistance\AccountGatewayTest.class
| [aopc] [trying to
ogin
| > cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss co jboss-head
| (approx 30 minutes of downloading...)
| > cd jboss-head/aop
| > build.bat dist
| ...
| dist:
| BUILD FAILED
| D:\nthx\install\jbossaop\jboss-head-10.08.2004\jboss-head\aop\build.xml:303:
D:\nthx\insta
"kabkhan" wrote : I'm investigating a fix. For now, could you try using something else
than caller pointcuts? For example:
|
| |
| | http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844573#3844573
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=
adocs' from target 'dist' cause of:
| [javadoc] D:\nthx\install\jbossaop\jboss-cvs-04.08.2004
| \AnnotatedPOJO.java:16: illegal character: \64
| [javadoc]@trace public int field;
| [javadoc]^
|
Then: `$move 'thirdparty/javassist/javassist ..` cause of
nnection (wchich allows one to program
threaded apps in non-threaded way :] )
I'll check these tests from CVS...
--nthx
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844563#3844563
Reply to the post :
http://www.jboss.org/index.htm
aller(ClassAdvisor.java:1453)
| cut
|
Any ideas about sth wrong here?
Thanks..
--
nthx
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844544#3844544
Reply to the post :
http://www.jboss.org/index.html?module=bb&
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] = newEl
64 matches
Mail list logo