jboss-4.2.x

How to use org.jboss.varia.property.SystemPropertiesService and org.jboss.util.property.PropertyListener

╄→гoц情女王★ 提交于 2019-12-25 05:50:29
问题 All I have seen the jboss-service.xml which use an extended SystemPropertiesService class to reference to custom property file. But I didn't totally understood this kind of usage yet. Could someone please give me some help to understand how to use these two class? thanks. 回答1: The SystemPropertiesService is very useful to define properties that then can be accessed from your application, it's usually used to parametrize the application without having to change to code, or even the application

How does the MDB instance picked from a particular container pool?

佐手、 提交于 2019-12-24 23:42:58
问题 I'm wondering how the MDB instance is re-used from a particular container pool.In standardjboss.xml, the standard MDB container pool is configured. In jboss-container.xml ther are two MDB specific container-pool configuration that extends the standard MDB configuration. There is no where in the source I could see certain MDBs are associated with a particular pool. I want to know how the few MDB instances are re-used from a particual pool and other MDB instance is used from an other MDB pool.

Spring - Hibernate - JBOSS - No ManagedConnections available within configured blocking timeout ( 30000 [ms] )

纵然是瞬间 提交于 2019-12-24 11:36:49
问题 I am using Spring 3.0.1 and Hibernate 3.2 with JBOSS 4.2.2 and we are using Spring transaction management to manage the transactions. My code implementation runs a huge job that runs for nearly 10 minutes.The spring service bean RunJobBean.java is the entry point for my job and this instantiates a number of independent threads (each performing different DB updates and other logic etc) and these threads invokes the hibernate DAO beans (These are injected into RunJobBean which passes on to

Jboss 4.2 Class Loading

你。 提交于 2019-12-21 19:45:33
问题 I have a jar in server/default/lib which contains Foo.class , Bar.class and the same class is there in my application/WEB-INF/classes which is deployed in server/default/deploy . and Example.class is using the Foo.class instance and Bar.class instance Now the situation is that Example.class shoud use the Foo.class in my application and Bar.class in default/lib jar file. i.e. my application should use the classes in the application clases folder if not found in classes folder then it should

How to limit the number of MDB instances listening to a Jboss JMS queue

旧巷老猫 提交于 2019-12-20 09:57:14
问题 I'm having a problem with the following setup: A Java application send email msg to a JMS queue, then an MDB listening to the queue get the email msg with the onMessage method, it open a connection on the Gmail SMTP, send the email to the SMTP and close the connection. Doing this on all message in the JMS queue. It is working great when I have up to 5 messages in the queue at the same time. All messages are picked-up in the same time by 5 different instances of the MDB, so I have 5 concurrent

How to invalidate selected session programmatically?

最后都变了- 提交于 2019-12-18 09:43:06
问题 I'm trying to invalidate selected session (with given sessionId) from my web application runing on Jboss 4.2. Everything works perfect from JMX console but I don't know how to do the same in java code. Here is what i have already created: MBeanServer server=MBeanServerLocator.locateJBoss(); ObjectName objectName = new ObjectName("jboss.web:host=localhost,path=/,type=Manager"); ManagerBase manager = (ManagerBase)MBeanServerInvocationHandler.newProxyInstance(server, objectName, Manager.class,

Jboss 4.2.3 custom shared lib

时间秒杀一切 提交于 2019-12-11 04:45:09
问题 I am in the process of moving the shared libraries to some custom jboss lib folder. Right now as I see, libs are placed under 1)Jboss/lib folder 2)Jboss/server/FM/lib 3)WebInf/Lib in the webapp's Now I want to move some of the libs which are shared by the webapp's in shared lib but not under jboss/server/FM/lib as I want them to at separate folder something like below: jboss/server/FM/lib/custom. I would still like libraries to loaded from Jboss/server/Fm/lib as well. Is there any way to do

JBoss 4: where do I deploy global filters?

笑着哭i 提交于 2019-12-10 22:09:01
问题 I want to use "global" HTTP filters. Therefor, I edited deploy/jboss-web.deployer/conf/web.xml and added: <filter> <filter-name>StatisticsFilterHitCount</filter-name> <filter-class>myapp.StatisticsFilterHitCount</filter-class> </filter> <filter-mapping> <filter-name>StatisticsFilterHitCount</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Now, when I start the server, not a single artifact can be deployed. A huge exception is logged on each deployment attempt. Sorry, can't paste

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

JBoss redeploy changes on exploded deployment directory

╄→гoц情女王★ 提交于 2019-12-08 07:00:54
问题 Searching for a way to deploy new changes without restarting the JBoss leaded me to this: https://community.jboss.org/wiki/RedeployAnApplicationWhenChangeAFileInAnExplodedDeploymentDirectory And at first, I thought I just found the holy grail, touching the top level descriptor on a exploded directory will redeploy the new changes, but then the weird behavior and errors started. Turns out that servlets and Java classes are not getting redeployed, after reading many negative answers around, I