[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: New AOP stuff going on.

2004-02-21 Thread claudehussenet
I have 2 questions regarding the lastest code from CVS
that I am currently testing.


1/How to define a caller pointcut as follows

I want to intercept every instanciation of the constructor
of the class A when it's called within method B or constructor B

2/How can I get information of the caller class within the Interceptor
class ? 

Thx-Claude



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822427#3822427

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822427


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: New AOP stuff going on.

2004-02-22 Thread claudehussenet
I have looked at how to answer to my second question (The easiest one ;-))

The class advised for a Caller pointcut is the calling class.
I didn't find a way to get a handle on this class within the implementation of
the Interceptor.So ,by adding the following code within the invokeCaller
method from the ClassAdvisor class ,I am solving my problem.

// New field added within the CallerInvocation class.
invocation.callingClass = this.clazz; 

Then ,to get information on the calling class ,we just need to
call the following static method in the Interceptor implementation 

Method callingMethod 
=MethodHashing.findMethodByHash(methodInvocation.callingClass,methodInvocation.callingMethodHash);

let me know what u think.

Thx-Claude


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822459#3822459

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822459


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


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

2004-03-19 Thread claudehussenet
Two questions a old one and new one.

1/I don't see how I can get information on the calling method 
for a caller pointcut.

2/If I call "Object res=invocation.invokeNext();" in a separate
thread the same method is going to be intercepted again and the code
is looping. How can I solve my problem ?  

Thx u.

Rgds,Claude


http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826603#3826603";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826603>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


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

2004-03-27 Thread claudehussenet
NP! Thx for your reply.

Let me know when u're planning to support an interceptor chain
in a separate thread.I will be happy to do a beta tester !

My aim is to be able to support asynchronous call for POJO 
as follow:

public class MyBusinessLogic
{
public someParameters someBusinessLogic(){}
}

//Explicit call or could be passed as metadata
((AsynchronousFacade)pojo).setTimeout(2000);

//Asynchronous call (Per instance)
someParameters =pojo.someBusinessLogic(...); 
..
..
// Non blocking call
if (((AsynchronousFacade)pojo).isDone())
{ 
   if (((AsynchronousFacade)pojo).getResponseCode()==OK)
   {
 someParameters = (SomeParameters)((AsynchronousFacade)pojo).getResponse());
   }
  else if (((AsynchronousFacade)pojo).getResponseCode()==TIMEOUT)
  {
   }
}

OR

// blocking call .
AsynchronousResponse asynchronousResponse =(AsynchronousFacade)pojo).waitForResponse();

}


It's almost working but as u pinpoint the currentInterceptor index
is reset to 0 when the invocation is executed in a separate thread.

Rgds,Claude






http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827737#3827737";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827737>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - New Asynchronous Aspect .

2004-04-01 Thread claudehussenet
I have just completed an aspect dealing with asynchronous call.

So the purpose of the asynchronous aspect is to drastically simplify the 
implementation of asynchronous call within a JVM .

The asynchrous aspect can be used to define ONEWAY method 
BUT also REQUEST/REPLY method.

Timeout value ,exception handling, thread pooling for ONEWAY method,access to starting 
time ,duration are also covered
in the first version of the asynchronous aspect.

See the following example.
 
POJO CLASS

public class BusinessModel {
public BusinessModel(long sleepTime){...}
/**
* @@asynchronous
*/
public void processBusinessModel() {...}
/**
* @@asynchronous
*/
public long processBusinessModel2(...) {...}
}

BusinessModel bm1 = new BusinessModel();

//Asynchronous call to processBusinessModel method
 long value=bm1.processBusinessModel2(100);

AsynchronousFacade asynchronousFacade = (AsynchronousFacade)bm1;

//Non Blocking call
if (asynchronousFacade.isDone()) 
System.out.println("It's done !");
else 
{

//Blocking call
AsynchronousResponse aR = asynchronousFacade.waitForResponse();

if (aR.getResponseCode()==OK)   
System.out.println("Value:"+(Long)asynchronousFacade.getReturnValue());

else if (aR.getResponseCode()==TIMEOUT)
...

   }


For more example please take a look in CVS
at aspects/src/test/asynchronous/testAsynchronousAspect.java.

Comments are welcomed.

I will post more documentation on WIKI soon.

Rgds,Claude












View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828797#3828797

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828797


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Welcome Claude Hussenet!

2004-04-02 Thread claudehussenet
Are the asynchronous aspects related in any way to the remoting framework or are they 
entirely in VM.

=> same JVM.Can run within a web-container with JBOSS-AOP standalone.

Claude, which area of JMS would you like to contribute to?

=> POJO face on JMS. But need a rest before and write some documentation
of the asynchronous Aspects on WIKI.

Rgds,Claude


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828866#3828866

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828866


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: New Asynchronous Aspect .

2004-04-17 Thread claudehussenet
Some documentation about AOP Asynchronous Method Invocation
available on the WIKI.

http://jboss.org/wiki/Wiki.jsp?page=AOPAsynchronousMethodInvocation

Rgds,Claude

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831238#3831238

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831238


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: New Asynchronous Aspect .

2004-04-19 Thread claudehussenet
Thx Bill for your fix in CVS.

The Introduction Annotation is now working with the pre-compiler in addtion of the 
classloader option.

Thx-Claude










View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831515#3831515

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831515


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: New Asynchronous Aspect .

2004-04-20 Thread claudehussenet
Marc,

I am certainly not getting your question.

Are u asking for user-case to justify the use of asynchronous call
 versus synchronous call ?

Thx-Claude
 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831646#3831646

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831646


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Asynchronous Aspect for Tomcat

2004-11-09 Thread claudehussenet
Running the Asynchronous Aspect or any others aspects outside of JBOSS server 
is quite straitghforward.

They are differents options of deployment based on your requirements (See 
Reference doc Chap 10)

I personally tested two configurations with Tomcat 5.0


JDK 1.4 using the precompiler.
--
Create a war file as follow :
WEB-INF/lib/concurrent.jar
WEB-INF/lib/jboss-aop.jar
WEB-INF/lib/jboss-aspect-library.jar
WEB-INF/lib/jboss-common.jar
WEB-INF/lib/javassist.jar
WEB-INF/lib/trove.jar

WEB-INF/classes/META-INF/jboss-aop.xml
WEB-INF/classes/...

JDK 1.5 (Loadtime)
---
Modify the classpath as follow ( Use the Configure Tomcat dialogbox)
-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader

Create a war file as follow :
WEB-INF/lib/concurrent.jar
WEB-INF/lib/jboss-aop-jdk50.jar
WEB-INF/lib/jboss-aspect-library-jdk50.jar
WEB-INF/lib/jboss-common.jar
WEB-INF/lib/javassist.jar
WEB-INF/lib/trove.jar

WEB-INF/classes/META-INF/jboss-aop.xml
WEB-INF/classes/...


An alternative for both options (JDK 1.4/JDK 1.5) is to install 
the libraries under CATALINA_HOME/common/endorsed and the jboss-aop.xml
under CATALINA_HOME/common/classes so u don't need to package them with the war 
file.


2/The Asynchronous Aspect does catch all exceptions.
So in order to test ,if the asynchronous method raises an exception do the 
following :

For example if the method execute was annotated with the asynchronous 
annotation.
POJO p = new POJO();
long value=p.execute();
AsynchronousFacade facade = (AsynchronousFacade)p;

// Test if the method raised an exception and get the Exception object.
if (p.getResponseCode()==AsynchronousConstants.EXCEPTIONCAUGHT)
{
((Exception)p.getResponseObject()).printStackTrace();
}

The following constants are also available :
 
AsynchronousConstants.OK (Asynchronous method completed succesfully)
AsynchronousConstants.TIMEOUT(Asynchronons method completed but did timeout)
AsynchronousConstants.NOVALUE(Asynchronous method still running)

I hope it helps .

Rgds-Claude

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854421#3854421

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854421


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Asynchronous Aspect for Tomcat

2004-11-10 Thread claudehussenet
1/Yes.The asynchronous aspects does support timeout value.

With jdk1.4,u have two options to specify the value:
  * In your code,when u flag the method as an asynchronous method
/** @@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous 
(timeout=5000)*/ 
  public long myProcess(){...}
  * At run-time ,before calling the method flagged as asynchronous
POJO p = new PO JO();
((AsynchronousFacade)pojo).setTimeout(timeoutValueInMilliSec);
long result = myProcess();

With JDK 1.5,the timeout value is mandatory when u specify the 
annotation.However,u can still overwrite the value specified in your annotation 
in your code as described below.

2/
The first configuration proposed in the previous post should work in any WEB 
container .
I tested with WL 8.1 and I didn't encounter any issue.

Let me know..

Claude




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854704#3854704

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854704


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


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

2004-11-10 Thread claudehussenet
Any plan to support per class scope for Introduction in the near future ?
Thx Claude

FYI.,what Aspectwerkz does in this area :

  



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854707#3854707

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854707


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Nukes Development] - Parallel processing of processAction or/and Render request

2004-11-22 Thread claudehussenet
Does the new release of JBoss Portal support parallel execution of 
processAction or/and parallel execution of the Render request ?


Thx-Claude

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855993#3855993

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855993


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: eclipse classpath problem

2005-01-03 Thread claudehussenet
Which version of Eclipse does support JDK 1.5 ?
I am curious because I have being using NETBEANS for a couple of
months because it was one of the first IDE to provide a full support
of JDK 1.5.I use NETBEANS with JBOSS-AOP without any issue.

To go back to your question with Eclipse ,VM arguments can be changed using the 
menu : RUN->RUN and then Arguments.





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860413#3860413

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860413


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: eclipse classpath problem

2005-01-03 Thread claudehussenet
I have also no problem with the version of Eclipse that u mentioned in your 
email...It works for me with JDK 1.5.

I added the following in the VM arguments dialog-box
under RUN->RUN Menu
Arguments Tab
-javaagent:C:\dev-applications\jboss-aop_1.0.0-FINAL\lib-50\jboss-aop-jdk50.jar 
-Djboss.aop.verbose=true
-Djboss.aop.path=jboss-aop.xml

Thx .

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860461#3860461

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860461


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


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

2004-08-20 Thread claudehussenet

1/Is there a way to apply a mixin class at the class level and not 
only at the instance level ?

2/It looks like that the same mixin class can be instantiated more than
once per instance based on class inheritance.

For example :
if the class A inherits from class B and both supposed to have attached the mixin 
class C,when I create an instance of A,two instances of C are created .Is is expected ?

Rgds-Claude


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845739#3845739

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845739


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[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 : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845761#3845761

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845761


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[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=bb&op=viewtopic&p=3845764#3845764

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845764


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development