[EJB/JBoss] - Re: How to specify maximum instances allowed for a SFSB
by grdzeli_kaci
hello tony ,
i have the same problem with SLSB.
the pooling parameters for SLSB and SFSB is described info jboss configuration file :
standardjboss.xml
| <container-configuration>
| <container-name>Standard Stateless SessionBean</container-name>
| <call-logging>false</call-logging>
| <invoker-proxy-binding-name>stateless-unified-invoker</invoker-proxy-binding-name>
| <container-interceptors>
| <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
| <!-- CMT -->
| <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
| <interceptor transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
| <interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
| <!-- BMT -->
| <interceptor transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
| <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
| <interceptor transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
| <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
| </container-interceptors>
| <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
| <instance-cache></instance-cache>
| <persistence-manager></persistence-manager>
| <container-pool-conf>
| <MaximumSize>100</MaximumSize>
| </container-pool-conf>
| </container-configuration>
|
here is maximum size of pool - 100
but it does not working correctly, I noticed that the CreateCount continues to increment over time, while RemoveCount is rarely incremented. For example, I may have a CreateCount in the tens-of-thousands while the RemoveCount stays in the hundreds.
any idea will be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130638#4130638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130638
18 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Re: problem deploying an aplication and connect with oracle
by lifeb
i made a few changes this is what i get now:
09:08:14,692 ERROR [MainDeployer] could not create deployment: file:/jboss/server/default/deploy/oracle-ds.xml
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:name=DefaultDS,service=LocalTxCM
i didn't delete anything
oracle-ds.xml file
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>DefaultDS</jndi-name>
<connection-url>jdbc:oracle:thin:@192.168.0.10:1521:sen_db</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>COSWIN</user-name>
COSWIN
<valid-connection-checker-class-
name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-
connection-checker-class-name>
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
login-config.xml [B---] 0 L:[ 57+21 78/170] *(3110/7298b)= . 10 0x0A
<login-module code = "org.jboss.mq.sm.file.DynamicLoginModule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-optio
<module-option name = "sm.objectname">jboss.mq:service=StateManager
</login-module>
</application-policy>
-->
<!-- Security domains for testing new jca framework -->
<application-policy name = "OracleDbRealm">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLo
flag = "required">
<module-option name = "principal">sen_db</module-option>
<module-option name = "userName">COSWIN</module-option>
<module-option name = "password">COSWIN</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:serv </login-module>
</application-policy>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130631#4130631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130631
18 years, 2 months
[EJB 3.0] - Re: xml configuration file for application
by ALRubinger
Looks like the real issue you're asking is "How do I access the ClassLoader for a given XML file?"
This would enable you to do cl.getResourceAsStream("whatever.xml");
However, the JEE spec leaves room for vendors to plug in their own custom classloading strategies to enable features such as hot deployment. So you've got no hook to access the CL you need.
Since classes are linked to the CL that defined them, you might try packaging your XML in an EJB JAR, and then attempting to get to it by saying something like:
MyBeanRemote.class.getClassLoader().getResourceAsStream("whatever.xml")
...but this would assume that the same CL was used for all resources in your EJB JAR.
I think a better question to ask is: what are you doing that requires you to access something packaged in your application's deployable units? Surely there's a more elegant way for you to get at this configuration?
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130607#4130607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130607
18 years, 2 months