[EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
by oskar.carlstedt
Hi!!
Using EJBs here is probably not the best way to go. Doing so will cause the container to create a lot of insert statements - too many to get the performance you want. If I'm wrong here, let me know.
I did something like this a couple of years ago with Oracle 8.1.6. If you don't care about all transactions a good way might be to create a data file (normally a comma seprataed flat file), which you later do an import on. Here you get performance, but if it is an good design. I don't think so. Good design and performance are often something that is hard to combine.
Another way is to create a stored procedure that you call when you have, let say 5000 records to insert.
One thing to think of is the data transport. Using Oracle from Java you go from client(s) to a java server, to PL/SQL to Oracle DB.
Kind Regards
Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039021#4039021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039021
19 years
[Installation, Configuration & Deployment] - JBoss-4.0.5.GA jmx-console issue
by rtanya
Hi Community,
I have jboss 4.0.5.GA installed on jdk1.5.
I tried 1.4.2 and default jboss settings, but get the same results.
Whenever try to change the context settings of one of deployed war file from http://localhost:8080/jmx-console/ it fails with exception
javax.management.ReflectionException: Cannot find setter method setModelerType StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/myapp]
Please suggest me if I am doing anything wrong.
MBean Name: Domain Name: jboss.web
J2EEServer: none
name: //localhost/myapp
J2EEApplication: none
j2eeType: WebModule
MBean Java Class: org.apache.commons.modeler.BaseModelMBean
Exception------------------------------------------------------------------------
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Failed to update attributes
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlAdaptorServlet.java:244)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:98)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.management.ReflectionException: Cannot find setter method setModelerType StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/myapp]
org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:662)
org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:70)
org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
org.jboss.jmx.adaptor.control.Server.setAttributes(Server.java:206)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlAdaptorServlet.java:236)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:98)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
Thanks,
Tanya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039014#4039014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039014
19 years