jboss6.x

StaleObjectStateException on high frequency updates

假如想象 提交于 2019-12-10 10:10:42
问题 We're using Hibernate 3.6.3.Final and MySQL 5.5.8 for a web application. The backend is running on a JBoss 6.0.0 Final server. Most of the time things work really well but occasionally we're getting a StaleObjectStateException. After a while of experimenting we figured out that it can be reproduced by sending requests to the backend with a high frequency (ie. clicking a button which triggers the request as fast as possible). As far as I know the exception means that a domain object got

Making maxSession property configurable for a specific MDB in JBoss EAP 5.1

你离开我真会死。 提交于 2019-12-09 13:19:06
问题 How to make maxSession value for an MDB user-configurable? There is an MDB that listens for a message from a specific queue. It is defined as an annotation. @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "5") . In order to change the value of the maxSession, the code has to be compiled everytime. Is there a way to make it user configurable so that there is no build required and without restarting jboss? Kindly help. 回答1: This is the way to externalize this setting from

JBoss HornetQ: Set consumer-window-size for slow consumer

怎甘沉沦 提交于 2019-12-08 18:59:37
问题 I want to set the <consumer-window-size/> to 0 . This seems to be the answer of another question ( JMS queue with multiple consumers ), and is described in this article in chapter 17.1.1 . I retrieve the connection factory using JNDI. My hornetq-jms.xml looks like this: <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd"> <connection-factory name="ConnectionFactory"> <connectors> <connector-ref

JBoss migration from JBoss AS 4.2 GA to JBoss EAP 6.2

安稳与你 提交于 2019-12-08 08:28:16
问题 Any one done migration from JBoss AS 4.2 GA to JBoss EAP 6.2? Does JBoss EAP 6.2 has web and app server..? In JBoss AS 4.2 GA has the folder structure /server/app and /server/web where as in JBoss EAP 6.2 no server folder at all. How to deploy the services in web and app in JBoss EAP 6.2? Gone through the system migration guide, have to change the packaging structure of EAR or WAR due to change of modular class loading. Where/how to find the system dependencies, user dependencies, local

How to dynamically add a Quartz Job in JBoss6

落花浮王杯 提交于 2019-12-08 05:13:36
问题 I'm using JBoss6 and want to dynamically create Quartz-Jobs. During the processing of the job the next start time will be defined (e.g. in 1, 5 or 10 hours). I didn't find any solutions for this, it's even hard to get access to the org.quartz.Scheduler (see QuartzScheduler injection in JBoss AS 6). The next problem is the creation of new Jobs, I followed the tutorial http://www.quartz-scheduler.org/docs/tutorial/TutorialLesson02.html: import static org.quartz.JobBuilder.*; import static org

JBOSS 6: [CachedConnectionManager] Closing a connection for you. Please close them yourself

。_饼干妹妹 提交于 2019-12-07 20:23:47
问题 I am getting an exception every time a transaction gets over in JBOSS 6. I understand that I am not closing the connection manually, but I want to avoid it by changing the logger mode. For achieving this I added the following lines <logger category="org.jboss.resource.connectionmanager.CachedConnectionManager"> <level name="FATAL"/> </logger> in jboss-logging.xml under jboss-6.1.0_Final/server/default/deploy. The problem is it's not reflecting on the console. The root logger is in INFO mode.

Using HTTP Request.login with JBoss/JAAS

☆樱花仙子☆ 提交于 2019-12-07 18:26:55
问题 I have successfully setup a JBoss security domain, and can authenticate using BASIC authentication (as defined in web.xml). This all works well. I cannot however figure out how to use the http request.login method. The following security domain (from jboss-web.xml) works for BASIC authentication: <jboss-web> <context-root>/myapp</context-root> <security-domain>java:/jaas/myapp-realm</security-domain> </jboss-web> But when I use request.login as follows: public void login() { FacesContext

JBoss migration from JBoss AS 4.2 GA to JBoss EAP 6.2

冷暖自知 提交于 2019-12-06 15:02:13
Any one done migration from JBoss AS 4.2 GA to JBoss EAP 6.2? Does JBoss EAP 6.2 has web and app server..? In JBoss AS 4.2 GA has the folder structure /server/app and /server/web where as in JBoss EAP 6.2 no server folder at all. How to deploy the services in web and app in JBoss EAP 6.2? Gone through the system migration guide, have to change the packaging structure of EAR or WAR due to change of modular class loading. Where/how to find the system dependencies, user dependencies, local resources and inter-deployment dependencies in JBoss AS 4.2. Thanks in advance. Basically, JBoss 7 / EAP 6

Is JDK8 a supported platform for JBoss 6 AS

时光怂恿深爱的人放手 提交于 2019-12-06 11:37:29
We are upgrading our application java platform to latest stable one and we are using Jboss 6 AS. Is Oracle JDK8 a supported platform for JBoss 6 AS ? i think no JBoss AS7 Supported with JDK8 | JBoss Developer check this https://developer.jboss.org/thread/238195?_sscc=t No. Its not going to work. JBoss AS 6 and 7 are not compatible with Oracle JDK 1.8 . You need to download WildFly 10 in order to work with JDK 1.8 . WildFly is formerly knows as JBoss AS 来源: https://stackoverflow.com/questions/28496816/is-jdk8-a-supported-platform-for-jboss-6-as

JBOSS 6: [CachedConnectionManager] Closing a connection for you. Please close them yourself

北城以北 提交于 2019-12-06 11:11:30
I am getting an exception every time a transaction gets over in JBOSS 6. I understand that I am not closing the connection manually, but I want to avoid it by changing the logger mode. For achieving this I added the following lines <logger category="org.jboss.resource.connectionmanager.CachedConnectionManager"> <level name="FATAL"/> </logger> in jboss-logging.xml under jboss-6.1.0_Final/server/default/deploy. The problem is it's not reflecting on the console. The root logger is in INFO mode. The exact stack trace is INFO [CachedConnectionManager] Closing a connection for you. Please close them