[jboss-user] [JBoss AOP] - Aspect instance and contexts in JbossAS

sandello do-not-reply at jboss.com
Mon Nov 19 05:33:15 EST 2007


Where I can read about relation between aspect instance and contexts (JNDI, Security, Transaction, etc) in JBossAS ?

For example.
There are Stateless EJB:

  | @Stateless
  | public class A implements B{
  | ...
  | }
  | 

and aspect:

  | public class AAspect{
  |   @Bind (pointcut = "execution(* A->*(..))")
  |   public Object invoke(Invocation invocation) throws Throwable {
  |      Context ctx=new InititalContext();
  |   }
  | }
  | 
Which context I receive in "new InitialContext()" operation?

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

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



More information about the jboss-user mailing list