[JBoss-user] [Installation Configuration] - Database pool only showing half the minimum connections allo
Perhaps I'm misunderstanding something here, but I have the following configured for my oracle connection pool - 20 for a minimum pool size and 100 for a max pool size. However the DBA is only seeing 10 connections being made from JBoss. What's going on here??. (code included - trimmed for brevity). TIA! ?xml version=1.0 encoding=UTF-8? | | | datasources | local-tx-datasource | jndi-namejdbc/OracleDS/jndi-name | | connection-urljdbc:oracle:oci:@osmv2dev/connection-url | | driver-classoracle.jdbc.driver.OracleDriver/driver-class | user-name/user-name | password/password | prepared-statement-cache-size100/prepared-statement-cache-size | min-pool-size20/min-pool-size | max-pool-size100/max-pool-size | blocking-timeout-millis1/blocking-timeout-millis | idle-timeout-minutes15/idle-timeout-minutes | valid-connection-checker-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker/valid-connection-checker-class-name | | /local-tx-datasource | | /datasources | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3862634#3862634 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862634 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Database pool only showing half the minimum connections
OK after finding the section in the Administrators guide on this. I find that connections aren't created by default until they're needed. OK.. but what if I want to initially create that pool of 20? Is there any way to configure this? anonymous wrote : | This element specifies the minimum number of connections a pool should hold. These pool instances are not created until an initial request for a connection is made. | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3862637#3862637 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862637 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: HTTP Session Timeout Configuration?
Will setting the timeout in the web.xml file of my WAR override that setting? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3862464#3862464 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862464 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Rolling updates?
What is your hypothesis of the results of performing a rolling update of the JBOSS clustered web servers by shutting down just one JBOSS instance, upgrading it and then restarting it and then going to the next?? I m afraid that small changes in the structure of the application would make this fail. The problem then is that we have to create a WebUI/MidTier outage for the production servers when we push updates. Any thoughts or ideas on this? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3862465#3862465 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862465 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - HTTP Session Timeout Configuration?
Where is HTTP Session Timeout configured in JBoss? What file needs to be edited, etc? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861644#3861644 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861644 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Service (SAR file) that relies on an EJB...
pique wrote : mbean code=com.some.body.class.name | | name=ISS:service=UUU | | dependsjboss.j2ee:service=XXX,jndiName=YYY/depends | | /mbean THAT was was I needed. THANK you. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3856981#3856981 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856981 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Service (SAR file) that relies on an EJB...
Steve, Still having a hard time getting your suggestion to work.. any example you can point out? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855537#3855537 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855537 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Service (SAR file) that relies on an EJB...
[EMAIL PROTECTED] wrote : The ejb container has a jmx name of the form | | | | jboss.j2ee:service=EJB + ,jndiName= + jndiName | | | | where jndiName is the name of the home interface, or the local home if the ejb does not provide a remote home. | | You can also embed the ejb jar in the sar and use the Russian doll depth first deployment order to ensure the ejb is deployed before the containing sar. | Scott, Thanks for writing back. You live in Snoqualmie Pass, eh? I didn't even know they had internet access out there now.. ;) OK.. the second option you mentioned - I understood. And that might be doable. But the first one - that threw me off. You explained the JMX name, but I don't see how I would *access* that or why I would use it.. Thanks for your time. DaveO View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855221#3855221 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855221 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Service (SAR file) that relies on an EJB...
I have someone developing a service for me (in a SAR) file that requires access to an EJB. On the surface this isn't a problem, except that SAR files deploy *before* EJBs do. How does he write the service to avoid using the EJB until it's deployed??? Seems like it's not possible to make it part of an EAR file (but I could be wrong). Thanks..!! P.S. And if there's a better forum here to post this question to please let me know.. Thanks..! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854832#3854832 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854832 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: Local Session Bean Failover
Interesting... I'm actually having problems figuring out how to handle failover in JBoss with *remote* access to SFSBs. Can you point me to a code example somewhere so I can try and fix *this* part? Perhaps we can then put our heads together to solve the local interface access problem (tho I think I might already know what your problem is - just not sure). Hope to hear from you soon. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846770#3846770 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846770 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: How do I specify dependency order?
After following the Wiki trail a little more I see where you were going with your tip now. Thank you. Much appreciated. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842513#3842513 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3842513 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - How do I specify dependency order?
Hi, I need to specify that certain JAR files be loaded in my web application (including an EJB JAR file) *before* a war file deploys. Now of course, on deploy can specify whatever I like.. but on startup, everything seems to 'auto deploy' in alphabetical order. What if I want to override that for an application? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842457#3842457 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3842457 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: How do I specify dependency order?
Interesting.. but where is this modified in a deployment? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3842462#3842462 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3842462 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - ClassCastException during getCursor with Oracle...
Subject says it all... What am I doing wrong here? Apparently the WrappedCallableStatement implementation that JBoss uses is doing something to prevent the casting, but what do I do to get around that? connection = getConnection(OracleDS); | | logger.finer(Calling request_list.get_default_request_list); | | cst = connection.prepareCall({call request_list.get_default_request_list (?,?,?)}); | cst.setInt(1, 1); | cst.setInt(2, 1); | cst.registerOutParameter(3, OracleTypes.CURSOR); | cst.execute(); | | rs = ((OracleCallableStatement)cst).getCursor(3); And getConnection is implemented as: private java.sql.Connection getConnection (String resourceName) | throws NamingException, SQLException { | | logger.finer(Obtaining JNDI context.); | //Obtain the JDNI context | Context context = new InitialContext(); | | logger.finer(JNDI Lookup to get the resource manager connection factory reference); | //JNDI Lookup to get the resource manager connection factory reference | javax.sql.DataSource ds = (javax.sql.DataSource) context.lookup(java:/jdbc/ + resourceName); | | logger.finer(Invoke factory to obtain a connection and return connection to calling environment); | //Invoke factory to obtain a connection and return connection to calling | //environment | return ds.getConnection(); | } | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839422#3839422 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839422 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - ClassCastException during getCursor with Oracle...
Subject says it all... What am I doing wrong here? Apparently the WrappedCallableStatement implementation that JBoss uses is doing something to prevent the casting, but what do I do to get around that? connection = getConnection(OracleDS); | | logger.finer(Calling request_list.get_default_request_list); | | cst = connection.prepareCall({call request_list.get_default_request_list (?,?,?)}); | cst.setInt(1, 1); | cst.setInt(2, 1); | cst.registerOutParameter(3, OracleTypes.CURSOR); | cst.execute(); | | rs = ((OracleCallableStatement)cst).getCursor(3); And getConnection is implemented as: private java.sql.Connection getConnection (String resourceName) | throws NamingException, SQLException { | | logger.finer(Obtaining JNDI context.); | //Obtain the JDNI context | Context context = new InitialContext(); | | logger.finer(JNDI Lookup to get the resource manager connection factory reference); | //JNDI Lookup to get the resource manager connection factory reference | javax.sql.DataSource ds = (javax.sql.DataSource) context.lookup(java:/jdbc/ + resourceName); | | logger.finer(Invoke factory to obtain a connection and return connection to calling environment); | //Invoke factory to obtain a connection and return connection to calling | //environment | return ds.getConnection(); | } | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839429#3839429 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839429 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: ClassCastException during getCursor with Oracle...
I figured out how to do it.. For posterity I'll post it here... | cst = connection.prepareCall({call request_list.get_default_request_list (?,?,?)}); | cst.setInt(1, 1); | cst.setInt(2, 1); | cst.registerOutParameter(3, OracleTypes.CURSOR); | cst.execute(); | | rs = (ResultSet) cst.getObject(3); | Note that using getCursor doesn't work BUT getObject does provided I tell the output parameter it's a oracle cursor. Go figure - the one thing I didn't try was the way to fix it.. The reason for this is that JBoss called statements are implemented via a WrappedCallableStatement (a JBoss object) and that can't be cast to the OracleCallableStatement (which makes sense after I thought about it a bit). However, you can register the output parameter as an oracle type and then cast *that* to the result set. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839430#3839430 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839430 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ClassCastException during getCursor with Oracle...
I figured out how to do it.. For posterity I'll post it here... | cst = connection.prepareCall({call request_list.get_default_request_list (?,?,?)}); | cst.setInt(1, 1); | cst.setInt(2, 1); | cst.registerOutParameter(3, OracleTypes.CURSOR); | cst.execute(); | | rs = (ResultSet) cst.getObject(3); | Note that using getCursor doesn't work BUT getObject does provided I tell the output parameter it's a oracle cursor. Go figure - the one thing I didn't try was the way to fix it.. The reason for this is that JBoss called statements are implemented via a WrappedCallableStatement (a JBoss object) and that can't be cast to the OracleCallableStatement (which makes sense after I thought about it a bit). However, you can register the output parameter as an oracle type and then cast *that* to the result set. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839431#3839431 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839431 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Exceptions on redeploy of EJB Jar
Just an FYI for posterity... After reading and finding that a LinkageError is basically reported when there's a object loading error I found that there was overlap between two libraries containing the same objects. After I reorganized the projects to make sure they didn't load overlapping class dependencies into their own WAR/JAR files everything works fine and JBoss hot deploys like a dream View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839122#3839122 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839122 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Exceptions on redeploy of EJB Jar
Hi, When I start Jboss with an ejb JAR file and a servlet WAR file that accesses a bean in the EJB file, everything works fine. However if I redeploy the EJB JAR file I'm getting either a java.lang.ClassCastException *or* I'm getting the following (I've included a partial stacktrace): javax.ejb.EJBException: Unexpected Error java.lang.LinkageError: loader constraints violated when linking com/arevatd/osm/common/RequestListData class at com.arevatd.osm.ejb.requests.SwitchRequestServiceStubBean.getRequestList(SwitchRequestServiceStubBean.java:244) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838522#3838522 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838522 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Any special hardware requirements?
Hi, I'm looking to cluster JBoss between to Win2k servers. I've read the clustering JBoss document, and I'm aware of the MediaSense issue. However, I'm still curious: are there any other special hardware requirements to cluster JBoss between two Win2k servers? I've got two CISCO LocalDirector load balancers to handle requests and failure-over on connections. Anything else I should be aware of? Thanks.. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3830813#3830813 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830813 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user