[Design of the JBoss EJB Container] - Re: JBAS-4304 - Jboss calls ejbStore inside ejbPostCreate on
by alex.loubyansky@jboss.com
What I did to fix it locally was add another impl of TxAssociation that I called NOT_READY which looked like
--- GlobalTxEntityMap.java (revision 61533)
| +++ GlobalTxEntityMap.java (working copy)
| @@ -196,6 +196,24 @@
| }
| };
|
| + public static final TxAssociation NOT_READY = new TxAssociation()
| + {
| + public void scheduleSync(Transaction tx, EntityEnterpriseContext instance)
| + {
| + }
| +
| + public void synchronize(Thread thread, Transaction tx, EntityEnterpriseContext instance) throws Exception
| + {
| + }
| +
| + public void invokeEjbStore(Thread thread, EntityEnterpriseContext instance) throws Exception
| + {
| + }
| + };
Use it in the invokeHome of the EntityInstanceInterceptor
--- plugins/EntityInstanceInterceptor.java (revision 61533)
| +++ plugins/EntityInstanceInterceptor.java (working copy)
| @@ -111,6 +111,7 @@
| // Get context
| EntityContainer container = (EntityContainer) getContainer();
| EntityEnterpriseContext ctx = (EntityEnterpriseContext) container.getInstancePool().get();
| + ctx.setTxAssociation(org.jboss.ejb.GlobalTxEntityMap.NOT_READY);
| InstancePool pool = container.getInstancePool();
And in the EntityCreationInterceptor call scheduleSync on the default NONE TxAssociation
--- plugins/EntityCreationInterceptor.java (revision 61533)
| +++ plugins/EntityCreationInterceptor.java (working copy)
| @@ -51,11 +51,12 @@
| // copy from the context into the mi
| // interceptors down the chain look in the mi for the id not the ctx.
| mi.setId(ctx.getId());
|
| // invoke down the invoke chain
| // the final interceptor in EntityContainer will redirect this
| // call to postCreateEntity, which calls ejbPostCreate
| getNext().invoke(mi);
| + org.jboss.ejb.GlobalTxEntityMap.NONE.scheduleSync(mi.getTransaction(), ctx);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035915#4035915
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035915
18 years, 12 months
[Design of AOP on JBoss (Aspects/JBoss)] - Issues with inteceptor or aspects
by wgmartinez
Hi Kabir,
Following on from the installation of jboss-aop1.5.5GA last week, I have an interceptor that simply logs the call to any method. I can't seem to get an interception at all. Here's my interceptor:
public class LoggingInterceptor implements Interceptor {
private static Logger log = Logger.getLogger(LoggingInterceptor.class);
public Object invoke(Invocation invocation) throws Throwable {
System.out.println("Invoking method WGM:");
try {
MethodInvocation mi = (MethodInvocation)invocation;
System.out.println("<<< Entering LoggingInterceptor for: " + mi.getMethod().toString());
return invocation.invokeNext();
} finally {
System.out.println(">>> Leaving LoggingInterceptor");
}
}
public String getName() {
return LoggingInterceptor.class.toString();
}
}
and here's my jboss-aop.xml
<?xml version="1.0" encoding="UTF-8"?>
|
| <aop>
|
| <!-- <interceptor class="com.ebrd.risk.aop.LoggingInterceptor" scope="PER_VM"/> -->
| <bind pointcut="all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)">
| <interceptor class="com.ebrd.risk.aop.LoggingInterceptor"/>
| </bind>
| </aop>
|
I have put these files in a file with a .aop extension with the jboss-aop.xml located in the META-INF directory. The aop file is then added in my message bean.
When a call is made to the onMessage() I expected the interceptor to log messages but it's not happening. Enclosed is the log file. Can you make something out of this?
10:40:59,998 INFO [STDOUT] [debug] javassist.CtMethod@766b8e7b[public final destroy ()V] matches no pointcuts
10:41:00,014 INFO [STDOUT] [debug] javassist.CtMethod@4c5c30fa[public final getMBeanProxyMBeanServer ()Ljavax/management/MBeanServer;] matches no pointcuts
10:41:00,014 INFO [STDOUT] [debug] javassist.CtMethod@286c1a1e[public final setDownloadServerClasses (Z)V] matches no pointcuts
10:41:00,029 INFO [STDOUT] [debug] javassist.CtMethod@f2ff43ec[public final setBindAddress (Ljava/lang/String;)V] matches no pointcuts
10:41:00,029 INFO [STDOUT] [debug] javassist.CtMethod@b5e9e161[public final setHost (Ljava/lang/String;)V] matches no pointcuts
10:41:00,029 INFO [STDOUT] [debug] javassist.CtMethod@45eca082[public final getBindAddress ()Ljava/lang/String;] matches no pointcuts
10:41:00,045 INFO [STDOUT] [debug] javassist.CtMethod@a52a1532[public final getMBeanProxyObjectName ()Ljavax/management/ObjectName;] matches no pointcuts
10:41:00,045 INFO [STDOUT] [debug] javassist.CtMethod@abd8711c[public final setDownloadResources (Z)V] matches no pointcuts
10:41:00,061 INFO [STDOUT] [debug] javassist.CtMethod@1ec3054d[public final jbossInternalLifecycle (Ljava/lang/String;)V] matches no pointcuts
10:41:00,061 INFO [STDOUT] [debug] javassist.CtMethod@69cb6c6d[public final toString ()Ljava/lang/String;] matches no pointcuts
10:41:00,076 INFO [STDOUT] [debug] javassist.CtMethod@e108d962[public final setThreadPool (Lorg/jboss/util/threadpool/BasicThreadPoolMBean;)V] matches no pointcuts
10:41:00,076 INFO [STDOUT] [debug] javassist.CtMethod@26562bc2[public final getName ()Ljava/lang/String;] matches no pointcuts
10:41:00,092 INFO [STDOUT] [debug] javassist.CtMethod@6c8156fd[public final create ()V] matches no pointcuts
10:41:00,092 INFO [STDOUT] [debug] javassist.CtMethod@cad41483[public final stop ()V] matches no pointcuts
10:41:00,107 INFO [STDOUT] [debug] javassist.CtMethod@2d2e6dc6[public final getDownloadServerClasses ()Z] matches no pointcuts
10:41:00,107 INFO [STDOUT] [debug] javassist.CtMethod@4fb74c08[public final getBacklog ()I] matches no pointcuts
10:41:00,123 INFO [STDOUT] [debug] javassist.CtMethod@2a87a438[public final getPort ()I] matches no pointcuts
10:41:00,123 INFO [STDOUT] [debug] javassist.CtMethod@61696a7a[public final removeClassLoader (Ljava/lang/ClassLoader;)V] matches no pointcuts
10:41:00,123 INFO [STDOUT] [debug] javassist.CtMethod@3b676508[public final getDownloadResources ()Z] matches no pointcuts
10:41:00,139 INFO [STDOUT] [debug] javassist.CtMethod@ccb9251c[public final getState ()I] matches no pointcuts
10:41:00,139 INFO [STDOUT] [debug] javassist.CtMethod@8eeb38e3[public final start ()V] matches no pointcuts
10:41:00,154 INFO [STDOUT] [debug] javassist.CtMethod@87a44f24[public final equals (Ljava/lang/Object;)Z] matches no pointcuts
10:41:00,154 INFO [STDOUT] [debug] javassist.CtMethod@99e2e017[public final addClassLoader (Ljava/lang/ClassLoader;)Ljava/net/URL;] matches no pointcuts
10:41:00,170 INFO [STDOUT] [debug] javassist.CtMethod@99de3445[public final setPort (I)V] matches no pointcuts
10:41:00,170 INFO [STDOUT] [debug] javassist.CtMethod@1ce1539f[public final getHost ()Ljava/lang/String;] matches no pointcuts
10:41:00,186 INFO [STDOUT] [debug] javassist.CtMethod@c13165c[public final hashCode ()I] matches no pointcuts
10:41:00,186 INFO [STDOUT] [debug] javassist.CtMethod@688168cd[public final getStateString ()Ljava/lang/String;] matches no pointcuts
10:41:00,201 INFO [STDOUT] [debug] javassist.CtMethod@d556870d[public final setBacklog (I)V] matches no pointcuts
10:41:00,201 INFO [STDOUT] [debug] javassist.CtConstructor@e5307e[public $Proxy63 (Ljava/lang/reflect/InvocationHandler;)V] matches no pointcuts
10:41:00,217 INFO [STDOUT] [debug] $Proxy63.m0:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,217 INFO [STDOUT] [debug] $Proxy63.m0:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,232 INFO [STDOUT] [debug] $Proxy63.m1:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,232 INFO [STDOUT] [debug] $Proxy63.m1:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,232 INFO [STDOUT] [debug] $Proxy63.m10:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,248 INFO [STDOUT] [debug] $Proxy63.m10:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,264 INFO [STDOUT] [debug] $Proxy63.m11:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,264 INFO [STDOUT] [debug] $Proxy63.m11:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,279 INFO [STDOUT] [debug] $Proxy63.m12:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,279 INFO [STDOUT] [debug] $Proxy63.m12:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,295 INFO [STDOUT] [debug] $Proxy63.m13:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,295 INFO [STDOUT] [debug] $Proxy63.m13:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,311 INFO [STDOUT] [debug] $Proxy63.m14:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,311 INFO [STDOUT] [debug] $Proxy63.m14:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,326 INFO [STDOUT] [debug] $Proxy63.m15:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,326 INFO [STDOUT] [debug] $Proxy63.m15:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,342 INFO [STDOUT] [debug] $Proxy63.m16:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,342 INFO [STDOUT] [debug] $Proxy63.m16:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,357 INFO [STDOUT] [debug] $Proxy63.m17:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,357 INFO [STDOUT] [debug] $Proxy63.m17:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,357 INFO [STDOUT] [debug] $Proxy63.m18:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,373 INFO [STDOUT] [debug] $Proxy63.m18:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,373 INFO [STDOUT] [debug] $Proxy63.m19:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,389 INFO [STDOUT] [debug] $Proxy63.m19:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,389 INFO [STDOUT] [debug] $Proxy63.m2:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,404 INFO [STDOUT] [debug] $Proxy63.m2:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,404 INFO [STDOUT] [debug] $Proxy63.m20:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,420 INFO [STDOUT] [debug] $Proxy63.m20:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,420 INFO [STDOUT] [debug] $Proxy63.m21:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,436 INFO [STDOUT] [debug] $Proxy63.m21:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,436 INFO [STDOUT] [debug] $Proxy63.m22:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,436 INFO [STDOUT] [debug] $Proxy63.m22:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,451 INFO [STDOUT] [debug] $Proxy63.m23:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,451 INFO [STDOUT] [debug] $Proxy63.m23:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,467 INFO [STDOUT] [debug] $Proxy63.m24:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,467 INFO [STDOUT] [debug] $Proxy63.m24:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,482 INFO [STDOUT] [debug] $Proxy63.m25:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,482 INFO [STDOUT] [debug] $Proxy63.m25:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,482 INFO [STDOUT] [debug] $Proxy63.m26:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,498 INFO [STDOUT] [debug] $Proxy63.m26:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,498 INFO [STDOUT] [debug] $Proxy63.m27:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,514 INFO [STDOUT] [debug] $Proxy63.m27:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,514 INFO [STDOUT] [debug] $Proxy63.m3:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,529 INFO [STDOUT] [debug] $Proxy63.m3:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,529 INFO [STDOUT] [debug] $Proxy63.m4:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,545 INFO [STDOUT] [debug] $Proxy63.m4:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,545 INFO [STDOUT] [debug] $Proxy63.m5:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,560 INFO [STDOUT] [debug] $Proxy63.m5:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,560 INFO [STDOUT] [debug] $Proxy63.m6:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,576 INFO [STDOUT] [debug] $Proxy63.m6:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,576 INFO [STDOUT] [debug] $Proxy63.m7:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,592 INFO [STDOUT] [debug] $Proxy63.m7:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,592 INFO [STDOUT] [debug] $Proxy63.m8:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,592 INFO [STDOUT] [debug] $Proxy63.m8:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,607 INFO [STDOUT] [debug] $Proxy63.m9:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,607 INFO [STDOUT] [debug] $Proxy63.m9:Ljava/lang/reflect/Method; matches no pointcuts
10:41:00,623 INFO [STDOUT] [debug] was $Proxy63 converted: false
10:41:00,685 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.0.5.GA/server/default/deploy/dao.jar
10:41:03,092 INFO [OperationIDServlet] Transmitting a List to a queue...
10:41:03,092 INFO [OperationIDServlet] Creating a message producer
10:41:03,107 INFO [OperationIDServlet] Sending the message
10:41:03,123 INFO [OperationIDServlet] message sent
10:41:03,138 INFO [OperationIDServlet] XML transmitted.
10:41:03,170 INFO [STDOUT] [trying to transform] com.ebrd.risk.dao.util.ServiceLocator
10:41:03,170 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,185 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,185 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,185 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,201 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,201 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,217 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,217 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,232 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,232 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,248 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,248 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,248 INFO [STDOUT] [debug] javassist.CtMethod@849d1db1[private lookup (Ljava/lang/String;)Ljava/lang/Object;] matches no pointcuts
10:41:03,263 INFO [STDOUT] [debug] javassist.CtMethod@1bb0df6b[public getLocalHome (Ljava/lang/String;)Ljavax/ejb/EJBLocalHome;] matches no pointcuts
10:41:03,263 INFO [STDOUT] [debug] javassist.CtMethod@5097d6dd[public getRemoteHome (Ljava/lang/String;Ljava/lang/Class;)Ljavax/ejb/EJBHome;] matches no pointcuts
10:41:03,279 INFO [STDOUT] [debug] javassist.CtMethod@c64e49cd[public getConnectionFactory (Ljava/lang/String;)Ljavax/jms/ConnectionFactory;] matches no pointcuts
10:41:03,279 INFO [STDOUT] [debug] javassist.CtMethod@5a8da40f[public getDestination (Ljava/lang/String;)Ljavax/jms/Destination;] matches no pointcuts
10:41:03,295 INFO [STDOUT] [debug] javassist.CtMethod@c7b14e12[public getDataSource (Ljava/lang/String;)Ljavax/sql/DataSource;] matches no pointcuts
10:41:03,295 INFO [STDOUT] [debug] javassist.CtMethod@e9b9c397[public getSession (Ljava/lang/String;)Ljavax/mail/Session;] matches no pointcuts
10:41:03,310 INFO [STDOUT] [debug] javassist.CtMethod@174b14f0[public getUrl (Ljava/lang/String;)Ljava/net/URL;] matches no pointcuts
10:41:03,310 INFO [STDOUT] [debug] javassist.CtMethod@b4f23029[public getBoolean (Ljava/lang/String;)Z] matches no pointcuts
10:41:03,310 INFO [STDOUT] [debug] javassist.CtMethod@c646aebe[public getString (Ljava/lang/String;)Ljava/lang/String;] matches no pointcuts
10:41:03,326 INFO [STDOUT] [debug] javassist.CtConstructor@58f124[public ServiceLocator ()V] matches no pointcuts
10:41:03,342 INFO [STDOUT] [debug] com.ebrd.risk.dao.util.ServiceLocator.ic:Ljavax/naming/InitialContext; matches no pointcuts
10:41:03,342 INFO [STDOUT] [debug] com.ebrd.risk.dao.util.ServiceLocator.ic:Ljavax/naming/InitialContext; matches no pointcuts
10:41:03,342 INFO [STDOUT] [debug] was com.ebrd.risk.dao.util.ServiceLocator converted: false
10:41:03,373 INFO [STDOUT] [trying to transform] com.ebrd.risk.dao.xml.XmlTranslatorImpl
10:41:03,373 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,388 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,388 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,404 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,420 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,420 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,435 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,435 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,435 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,451 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,451 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,467 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,467 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,482 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,482 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,498 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,498 INFO [STDOUT] [debug] MethodCall does not match: all(com.ebrd.risk.dao.xsl.XmlTranslatorImpl)
10:41:03,513 INFO [STDOUT] [debug] javassist.CtMethod@d2ec7730[public process (Ljava/io/Reader;Ljava/io/Reader;Ljava/io/Writer;)V] matches no pointcuts
10:41:03,513 INFO [STDOUT] [debug] javassist.CtMethod@32566be2[public process (Ljava/io/File;Ljava/io/File;Ljava/io/Writer;)V] matches no pointcuts
10:41:03,513 INFO [STDOUT] [debug] javassist.CtMethod@b7798710[public process (Ljava/io/File;Ljava/io/File;Ljava/io/OutputStream;)V] matches no pointcuts
10:41:03,529 INFO [STDOUT] [debug] javassist.CtMethod@82dc91f2[public process (Ljavax/xml/transform/Source;Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V] matches no pointcuts
10:41:03,529 INFO [STDOUT] [debug] javassist.CtMethod@3191721e[public process (Lorg/dom4j/Document;Ljavax/xml/transform/Source;)Lorg/dom4j/Document;] matches no pointcuts
10:41:03,545 INFO [STDOUT] [debug] javassist.CtMethod@7549fb7b[public validate (Lorg/dom4j/Document;Ljava/lang/String;)V] matches no pointcuts
10:41:03,545 INFO [STDOUT] [debug] javassist.CtConstructor@f1bcde[public XmlTranslatorImpl ()V] matches no pointcuts
10:41:03,560 INFO [STDOUT] [debug] com.ebrd.risk.dao.xml.XmlTranslatorImpl.factory:Ljavax/xml/transform/TransformerFactory; matches no pointcuts
10:41:03,560 INFO [STDOUT] [debug] com.ebrd.risk.dao.xml.XmlTranslatorImpl.factory:Ljavax/xml/transform/TransformerFactory; matches no pointcuts
10:41:03,576 INFO [STDOUT] [debug] was com.ebrd.risk.dao.xml.XmlTranslatorImpl converted: false
10:41:03,576 INFO [STDOUT] [trying to transform] com.ebrd.risk.dao.xml.XmlTranslatorException
10:41:03,592 INFO [STDOUT] [debug] javassist.CtMethod@69cb6c6d[public toString ()Ljava/lang/String;] matches no pointcuts
10:41:03,607 INFO [STDOUT] [debug] javassist.CtConstructor@a6a7d2[public XmlTranslatorException ()V] matches no pointcuts
10:41:03,607 INFO [STDOUT] [debug] javassist.CtConstructor@153d79c[public XmlTranslatorException (Ljava/lang/String;)V] matches no pointcuts
10:41:03,607 INFO [STDOUT] [debug] javassist.CtConstructor@1704ebb[public XmlTranslatorException (Ljava/lang/Throwable;)V] matches no pointcuts
10:41:03,623 INFO [STDOUT] [debug] com.ebrd.risk.dao.xml.XmlTranslatorException.message:Ljava/lang/String; matches no pointcuts
10:41:03,623 INFO [STDOUT] [debug] com.ebrd.risk.dao.xml.XmlTranslatorException.message:Ljava/lang/String; matches no pointcuts
10:41:03,638 INFO [STDOUT] [debug] was com.ebrd.risk.dao.xml.XmlTranslatorException converted: false
10:41:04,060 INFO [STDOUT] valid
10:41:04,060 INFO [STDOUT] processing
10:41:04,107 INFO [STDOUT] valid
10:41:04,123 INFO [STDOUT] processing
10:41:04,154 INFO [STDOUT] result
10:41:04,170 INFO [STDOUT] result
10:41:04,170 INFO [STDOUT] element result
10:41:04,185 INFO [STDOUT] org.dom4j.tree.DefaultElement@a6023a [Element: <tns:facility uri: http://xml.netbeans.org/schema/operation attributes: []/>]
10:41:04,185 INFO [STDOUT] element result
10:41:04,201 INFO [STDOUT] org.dom4j.tree.DefaultElement@1f61bcf [Element: <tns:facility uri: http://xml.netbeans.org/schema/operation attributes: []/>]
thanks
W
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035908#4035908
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035908
18 years, 12 months
[Design of JBossCache] - Re: PojoInstance: ref count & notification
by jason.greene@jboss.com
"supi" wrote : Hi, I am trying to build an adapter on top of CacheListener to create (to me useful) Pojo notifications. Unfortunately, I cannot determine if a pojo is being multi-attached or detached because PojoInstance's ref count is the same in local pre and post notification (IMO a bug). The problem is in InternalHelper:
|
Can you expalin in more detail and possiblly show a code example of how you noticed this? InternalHelper does correctly dispatch to PojoInstance to increment the counter. There was however a bug I recently fixed that would cause any serializable object that was accessed on a remote node to possible see a stale copy. Although keep in mind that currently notifications only trigger on the local node that produced the change.
anonymous wrote :
| It is stated that the method is not thread safe but the instance's incrementRefCount and decrement methods are in fact synchronized. So, can I just clone the instance, increment and put or do I need to synchronize the whole thing? Shouldn't it be locked anyway, where does this happen?
|
You should not have to clone the instance. Does cloning fix the problem for you? If so you are likely seeing the bug I mentioned earlier (a current cvs checkout should solve the issue). As far as locking is concerned, there is an outter lock held by ObjectGraphHandler.
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035825#4035825
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035825
18 years, 12 months
[Design of JBossCache] - Re: JBCACHE-1004 and JBCACHE-1005
by jason.greene@jboss.com
"supi" wrote :
| Ok, there will be all kinds of workarounds (subclasses, wrappers, getters etc.) at compile time or (type-less) wiring at runtime that make me think: what's the point? The only benefit I see is type-safety that affects about 2-3 users who only put one kind of objects into the cache. Everyone else has to deal with this new inflexibility in their own way, potentially introducing new bugs, clumsy workarounds, unreadable code, unsafe code (e.g. disable unchecked warnings in whole methods), etc. And lets not forget the cache library itself. More letters, less readable code => more bugs.
|
| In my opinion, at this point a step in the wrong direction.
|
No worry, workarounds are not needed, you don't have to use generics (just like you don't have to use them with java collections). It's purely syntactic sugar for those that want the additional compiler checking.
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035821#4035821
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035821
18 years, 12 months
[Design of EJB 3.0] - Service Now kicking in
by kmarsha
I am new to the use of MBEAN services. I have a pojo that is annotated as a service. Upon deployment it registers itself fine. I coded the create and start methods to do a system out on startup. That all works fine.
however, i am trying to get it to run as a timer type service. That part never kicks in. Here is my xml service file.
| <server>
| <mbean code="org.jboss.varia.scheduler.Scheduler" name="com.insight:service=AppDataRefreshServiceScheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableMBean">jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</attribute>
| <attribute name="SchedulableMBeanMethod">resetApplicationDataStore</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">10000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| <depends>jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</depends>
| </mbean>
| </server>
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035819#4035819
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035819
18 years, 12 months