[EJB 3.0] - Multiple Persistence Units
by esvehla
We have a collection of core EJB 3 entities that support our core product framework. This framework includes entities that are commonly needed by an application and include such things as addresses, email, as well as product specific entities. This is defined as a separate persistence unit that is built separate from any application, has it's own test cases, and it's own cvs module.
As we develop a new application which in turn has it's own application specific EJB 3 entities how can we reference and define ORM relationships between the core framework entities as well as application specific entities? Can we just define a second persistence unit within the application's persistence.xml file that references the core framework?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982835#3982835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982835
19Â years, 6Â months
[JBossCache] - Re: shun=false, but
by jyoonyang
Hi Brian,
Well, the underlying problem is that there are lots of cache operation on a slow machine. The test cases may not be realistic, but I would like to understand shunning better so that we will be prepared in production.
I have two nodes in a cluster where items in the TreeCache must be replicated synchronously. It sounds like "shun" causes a slow node to be kind of ignored by the faster node. We need all the live nodes in the cluster to have replication of the TreeCache. When the client requests are load-balanced, the TreeCache data must be found in either nodes.
So if "shun=false" doesn't prevent a shun, what does it do?
Thanks again,
Jennifer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982834#3982834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982834
19Â years, 6Â months
[JBossCache] - shun=false, but
by jyoonyang
Hi,
I am running some load test. I have one node that is slower. I started getting "am being shunned, will leave and rejoin group..." warning, followed by ReplicationException: rsp=sender=foomachine:4524, retval=null, received=false, suspected=false
So after reading some Wiki, I set the shun to false, but I see the same behavior as the above. Any idea?
| <attribute name="ClusterConfig">
| <config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address, e.g bind_addr="192.168.0.2"
| -->
| <!-- UDP: On Windows machines, because of the media sense feature
| being broken with multicast (even after disabling media sense)
| set the loopback attribute to true -->
| <UDP mcast_addr="228.1.2.3" mcast_port="48877"
| ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
| ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
| loopback="false"/>
| <PING timeout="2000" num_initial_members="3"
| up_thread="false" down_thread="false"/>
| <MERGE2 min_interval="10000" max_interval="20000"/>
| <FD shun="false" timeout="2000" max_tries="3" />
|
| <FD_SOCK/>
| <VERIFY_SUSPECT timeout="1500"
| up_thread="false" down_thread="false"/>
| <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
| max_xmit_size="8192" up_thread="false" down_thread="false"/>
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
| down_thread="false"/>
| <pbcast.STABLE desired_avg_gossip="20000"
| up_thread="false" down_thread="false"/>
| <FRAG frag_size="8192"
| down_thread="false" up_thread="false"/>
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
| shun="false" print_local_addr="true"/>
| <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
| </config>
|
Thanks,
Jennifer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982830#3982830
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982830
19Â years, 6Â months
[JBoss AOP] - Re: Interceptor not working
by Rotsevni
this is my jboss-service.xml
<mbean code="org.jboss.aop.deployment.AspectManagerServiceJDK5"
| name="jboss.aop:service=AspectManager">
| <attribute name="EnableLoadtimeWeaving">true</attribute>
| <!-- only relevant when EnableLoadtimeWeaving is true.
| When transformer is on, every loaded class gets
| transformed. If AOP can't find the class, then it
| throws an exception. Sometimes, classes may not have
| all the classes they reference. So, the Suppressing
| is needed. (i.e. Jboss cache in the default configuration -->
| <attribute name="SuppressTransformationErrors">true</attribute>
| <attribute name="Prune">true</attribute>
| <attribute name="Include">com.factoringmarket.web.,org.jboss.aspects.</attribute>
| <attribute name="Exclude">com.,org.</attribute>
| <!-- This avoids instrumentation of hibernate cglib enhanced proxies
| <attribute name="Ignore">*$$EnhancerByCGLIB$$*</attribute>-->
| <attribute name="Optimized">true</attribute>
| <attribute name="Verbose">false</attribute>
| </mbean>
|
| <mbean code="org.jboss.aop.deployment.AspectDeployer"
| name="jboss.aop:service=AspectDeployer">
| </mbean>
I this error a lot of times, once for each bean i think:
20:04:51,078 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,ear=felectronico.ear,jar=FE_Beans.jar,name=MailListenerBean
| java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:97)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy57.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:76)
| at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:414)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:463)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy27.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
| at org.jboss.Main.boot(Main.java:187)
| at org.jboss.Main$1.run(Main.java:438)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
| at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:137)
| at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:200)
| at org.jboss.aop.pointcut.ast.ASTClass.jjtAccept(ASTClass.java:43)
| at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:91)
| at org.jboss.aop.pointcut.ast.ASTNot.jjtAccept(ASTNot.java:42)
| at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:75)
| at org.jboss.aop.pointcut.ast.ASTStart.jjtAccept(ASTStart.java:42)
| at org.jboss.aop.introduction.AnnotationIntroduction.matches(AnnotationIntroduction.java:138)
| at org.jboss.aop.Advisor.deployAnnotationOverride(Advisor.java:258)
| at org.jboss.aop.Advisor.deployAnnotationOverrides(Advisor.java:251)
| at org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:70)
| at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:55)
| at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:508)
| at org.jboss.ejb3.mdb.MDB.start(MDB.java:247)
| ... 124 more
| Caused by: java.lang.RuntimeException: java.lang.NullPointerException
| at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:337)
| at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:115)
| ... 137 more
| Caused by: java.lang.NullPointerException
| at org.jboss.aop.deployment.JBossClassPoolFactory.create(JBossClassPoolFactory.java:60)
| at javassist.scopedpool.ScopedClassPoolRepositoryImpl.createScopedClassPool(ScopedClassPoolRepositoryImpl.java:99)
| at javassist.scopedpool.ScopedClassPoolRepositoryImpl.registerClassLoader(ScopedClassPoolRepositoryImpl.java:125)
| at org.jboss.aop.classpool.AOPClassPoolRepository.registerClassLoader(AOPClassPoolRepository.java:127)
| at org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:657)
| at org.jboss.aop.AspectManager.findClassPool(AspectManager.java:647)
| at org.jboss.aop.annotation.PortableAnnotationElement.getClassFile(PortableAnnotationElement.java:253)
| at org.jboss.aop.annotation.PortableAnnotationElement.isAnyAnnotationPresent(PortableAnnotationElement.java:235)
| at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:333)
and at the enfd i get:
ObjectName: jboss.j2ee:service=EJB3,ear=felectronico.ear,jar=FE_Beans.jar,name=AdminIngresoCartera
| State: FAILED
| Reason: java.lang.reflect.InvocationTargetException
| I Depend On:
| persistence.units:ear=felectronico.ear.ear,jar=FE_Beans.jar.jar,unitName=fmdb-unit
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982826#3982826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982826
19Â years, 6Â months