[JBoss-user] [EJB/JBoss] - JBoss performance
I'm using JBoss 3.2.5 with CMP beans and I have noticed that when I query a database using primary keys (direct access) is quite fast, but when I search a hole table and I need to bring more than 50 records is gets too slow. Is there any way to do it faster? The tables are not very big (less than 1). Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854413#3854413 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854413 --- 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=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - JBoss3.2.5 and CMP Beans don't work
I have developed a CMP entity Bean that access a table in a database in Postgres, but an error occurs. I have especified a postgres-ds.xml with a datasource named JDataSourceDS that is the jndi-name, and i copied it in server/default/deploy. On the other hand I have also copied the JDBC driver. I know that this is working OK because I've developed a BMP bean and I could access the database without problems, but I cannot do the same with CMP beans. I have installed JBoss Application Server 3.2.5. Do I have to install something else? It seems that the server doesn't support CMP beans... Here is the error MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM: ObjectName: jboss.j2ee:jndiName=Expedientes,service=EJB state: FAILED I Depend On: Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error: can't find data source: JDataSourceDS; - nested throwable: (javax.naming.NameNotFoundException: JDataSourceDS not bound) Cause: org.jboss.deployment.DeploymentException: Error: can't find data source: JDataSourceDS; - nested throwable: (javax.naming.NameNotFoundException: JDataSourceDS not bound) ObjectName: jboss.j2ee:jndiName=Expedientes,plugin=pool,service=EJB state: CREATED I Depend On: Depends On Me: - where Expendientes is the name of the bean and previously the following exceptions where thrown --- 07:50:27,470 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=Expedientes,service=EJB org.jboss.deployment.DeploymentException: Error: can't find data source: JDataSourceDS; - nested throwable: (javax.naming.NameNotFoundException: JDataSourceDS not bound) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:143) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:428) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:147) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837) at $Proxy18.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:367) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy37.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:367) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837) at $Proxy18.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:367) at
[JBoss-user] [EJB/JBoss] - Error: MBEANS that are the root...
I'm new in the development of ejb and JBoss. I'm trying some examples. I did an Entity Bean that is the DataSource of a table in a Postgres database, but I get the following error: - MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM: ObjectName: jboss.j2ee:jndiName=Expedientes,service=EJB state: FAILED I Depend On: Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error: can't find data source: JDataSourceDS; - nested throwable: (javax.naming.NameNotFoundException: JDataSourceDS not bound) Cause: org.jboss.deployment.DeploymentException: Error: can't find data source: JDataSourceDS; - nested throwable: (javax.naming.NameNotFoundException: JDataSourceDS not bound) ObjectName: jboss.j2ee:jndiName=Expedientes,plugin=pool,service=EJB state: CREATED I Depend On: Depends On Me: - where Expendientes is the name of the bean and previously the following exceptions where thrown --- 07:50:27,470 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=Expedientes,service=EJB org.jboss.deployment.DeploymentException: Error: can't find data source: JDataSourceDS; - nested throwable: (javax.naming.NameNotFoundException: JDataSourceDS not bound) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:143) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:428) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:147) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837) at $Proxy18.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:367) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy37.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:367) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837) at $Proxy18.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:367) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at