[Persistence, JBoss/CMP, Hibernate, Database] - Timestem and jdbc Query Timeout
by grdzeli_kaci
hi all,
i have install timesten on one computer and configure there Query Timeout like This:
SQLQueryTimeout = 80
and i have JBoss Application Server on another computer and timesten client.
i've timesten-xa-ds.xml configuration file configured like this :
| <set-tx-query-timeout>
| <query-timeout>50000</query-timeout>
| <set-tx-query-timeout>
|
and when i tryed to execute sql command i get an error:
| 14:19:13,342 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: S1000
| 14:19:13,344 ERROR [JDBCExceptionReporter] [TimesTen][TimesTen 6.0.4 CLIENT]Query Timeout must be numeric, greater than or equal to 0, and less than the Network Timeout
| 14:19:13,346 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
| 14:19:13,346 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:567)
| 14:19:13,346 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:56)
| 14:19:13,347 ERROR [STDERR] at com.magti.businesslayer.ejb3Fasade.srvprov.MobileServiceFasadeBean.simChange(MobileServiceFasadeBean.java:1381)
|
can anybody help me ? :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007678#4007678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007678
19 years, 2 months
[JBoss Seam] - Confused about Seam/JSF/Facelets Tools - Seeking some Guidel
by terryb
Hi,
I am new to Seam. I am trying to work out which tools to use to start developing seam applications, but more I read more confusion I get myself in to.
I like the concept behind Seam and am doing my best to be at ease with Seam development so I can convert current JSP web application on Tomcat TO JBoss Seam/JFS/Facelets on JBoss AS.
However with so many different posts about project set up and conflicts in development tools (JBoss IDE/WTP) it is becoming rather confusing to pick a clear starting point.
Objective:
I would like to write web application using Seam, JSF, Facelets (xhtml).
My Current Environment:
Windows, Eclipse 3.1 with WTP. JBoss IDE 1.6, JBoss AS 4.0.5.
I have generated seam application using Seam-Gen; and got it working from eclipse and auto deployment to JBoss AS. However, it seems JBoss IDE does not have graphical interface for JSF pages etc. The way Eclipse WTP does. And I keep reading using WTP will break this and that with Seam project.
Can any one provide guidline which development tools to use. which provides some sort of graphical tools to simplify JSF/Facelets development???
Thanks you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007665#4007665
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007665
19 years, 2 months
[Performance Tuning] - Help JBoss Performance
by shariqxx
Hi All,
We are to measure and record statics for a web-site, for a 10,000 user load. we have to measure CPU, Memory, etc. But this site accepts only unique logins. So we have written a small java application using servlets and jsps to retrive a user-name/pwd pair every time a user logs in. This application is hosted on a JBoss server. In short, before a virtual user logs in to the application under test , he actually retrieves a user-name/pwd pair, and uses these credentials to log in to the application under test. This application which gives out user-names/pwd pairs is deployed on JBoss( A list of 10,000 uid/pwds are maintained in a .csv file).A servlet reads a line at a time and gives it to the user. Since we cannot log in 10,000 users at the same time, we are ramping up 50 users every minute. So there are 50 hits on the the servlet(deployed on JBoss) every minute. Till the first 50 users are ramped up, JBoss performs flawlessly returning uid/pwd pair, but as users are ramped up, it starts giving out blank lines ever now and then. As more users are ramped up, more of these lines appear. The file object the servlet opens is not being closed, because file open-close is a very resource intensive operation. So once a file is opened, its object is closed only when EOF is reached. We are using 200 different machines as load generatods, there by generating a load a 50 users per machine. All machines are 512 RAM, 40 GB hard-drives, Pentium 4 at 3.0 giga Hertz. Java Version 1.5.0_05. JBoss Version 4.0.2.
My question is this : Is there some setting in JBoss that i can tweak so that it can accept more incoming connections, if that is what the problem is? I would also like suggestions so as to understand why this might be happening and how i can avoid it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007662#4007662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007662
19 years, 2 months