off-topic: Re: [JBoss-user] JBoss Starting at Boot on OS X Server
Hi Hunter! What is your feeling of the OS X Server with regard to performance etc...? /Lennart - with a slim and shiny Ti :) söndagen den 20 oktober 2002 kl 21.21 skrev Hunter Hillegas: I am trying to get JBoss started at boot time on my OS X Server. I have copied a 'StartupItem' config and it looks right... It calls a script that starts JBoss. The StartupItem gets called, I see it in the log. It just states, 'Waiting on JBoss Server' and JBoss never starts. When I run the script after logging in, JBoss starts normally. Has anyone else done this successfully? Thanks, Hunter --- This sf.net email is sponsored by: Access Your PC Securely with GoToMyPC. Try Free Now https://www.gotomypc.com/s/OSND/DD ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Re: "removing bean lock and it has tx set" - que
Title: RE: [JBoss-user] Re: "removing bean lock and it has tx set" - que Just checked out and compiled latest sources from branch Branch_3_0 and the problem is still there exactly as it was before. After some time (probably really after bean's passivation it cannot be removed/asdded to relations with these exceptions): 19:04:32,388 INFO [Server] JBoss Release: JBoss-3.0.4RC1 CVSTag=Branch_3_0 Here is what happened after I call remove() on bean instance SMIL that is in one-to-many relationship with SLIDE (i.e. smil consist of many slides). this SMIL was created 30 minutes ago and one SLIDE was created and added to a relationship. 2002-10-21 19:39:17,004 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.SMIL] Executing SQL: SELECT date, name, title, bgcolor, accessPassword, state FROM smil WHERE (id=?) 2002-10-21 19:39:17,007 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.SMIL] Executing SQL: SELECT id FROM slide WHERE (SMIL_slides=?) 2002-10-21 19:39:17,018 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: java.lang.IllegalStateException: removing bean lock and it has tx set!Slide D3808080808080808080808080808180 at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:420) at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:107) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:124) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:232) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeRemoveRelation(JDBCCMRFieldBridge.java:707) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLinks(JDBCCMRFieldBridge.java:623) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLinks(JDBCCMRFieldBridge.java:601) at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.clear(RelationSet.java:175) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.removeFromRelations(JDBCRemoveEntityCommand.java:137) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEntityCommand.java:70) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManager.java:635) at org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManager.java:542) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.removeEntity(CachedConnectionInterceptor.java:431) at org.jboss.ejb.EntityContainer.remove(EntityContainer.java:507) 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) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1173) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:295) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:64) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1
Re: [JBoss-user] List Archives...
www.mail-archive.com is a fairly handy source of list archives. I know its not the sf ones, but it works (o: hth dim - Original Message - From: "Peter Luttrell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 22, 2002 3:47 PM Subject: [JBoss-user] List Archives... > The list archives don't work. > > When I go to: http://lists.sourceforge.net/lists/listinfo/jboss-user > and click on list archives, which takes me to > http://sourceforge.net/mailarchive/forum.php?forum=jboss-user which > doesn't work. > > Also the link on the list page: > http://sourceforge.net/mail/?group_id=22866 doesn't work for > user-archives...but it works nicely for dev archives. > > Any chance we can get this fixed? > > > > --- > This sf.net emial is sponsored by: Influence the future of > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) > program now. http://ad.doubleclick.net/clk;4699841;7576301;v? > http://www.sun.com/javavote > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SSL with JBoss/Tomcat: JaasSecurityManager is not registered
Title: SSL with JBoss/Tomcat: JaasSecurityManager is not registered Change the name of the JaasSecurityManagerService in the conf/jboss-service.xml file from: name="jboss.security:name=JaasSecurityManager"> to: name="jboss.security:service=JaasSecurityManager"> Scott StarkChief Technology OfficerJBoss Group, LLC - Original Message - From: JD Brennan To: JBoss Users (E-mail) Sent: Monday, October 21, 2002 6:07 PM Subject: [JBoss-user] SSL with JBoss/Tomcat: JaasSecurityManager is not registered I'm trying to configure JBoss 3.0.0_tomcat_4.0.3 with SSL. I followed the instructions in the JBoss Administration and Development document. 1) Generated chap8.keystore file and copied to $JBOSS_HOME/server/default/conf 2) Modified tomcat4-service.xml to add name="Security:name=JaasSecurityDomain,domain=RMI+SSL"> chap8.keystore rmi+ssl and port = "8443" scheme="https" secure="true"> securityDomainName="java:/jaas/RMI+SSL" clientAuth="false" protocol="TLS"/> This generates this error in the server.log: 17:18:27,711 ERROR [SARDeployer] start operation failed on package file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager is not registered. at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:403) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480) at org.jboss.security.plugins.JaasSecurityDomain.start(JaasSecurityDomain.java:116) ... What mbean code should be registered with name=jboss.security:service=JaasSecurityManager ?? Tx! JD
[JBoss-user] List Archives...
The list archives don't work. When I go to: http://lists.sourceforge.net/lists/listinfo/jboss-user and click on list archives, which takes me to http://sourceforge.net/mailarchive/forum.php?forum=jboss-user which doesn't work. Also the link on the list page: http://sourceforge.net/mail/?group_id=22866 doesn't work for user-archives...but it works nicely for dev archives. Any chance we can get this fixed? --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBossMQ Perforamance
In order to ascertain if JBossMQ is capable of providing the throughput I need, i've constructed a couple of little apps to see what kind of performance i can get. Here's what i've found: 100 Megabit: 1250-1350 messages per second Gigabit: 1500-1600 messages per second I was hoping to see a bit better performance then this; especially a larger differential with Gigabit. 100Megabit only used about 10% of the network bandwidth (if you believe xp's network monitor) and gigabit only used at most 1.5%. Is this the best performance i can expect? What have others observed? Can anyone suggest where the bottleneck might be? Does anyone have any suggestions on what configs to tweak? All of my test code, and deployable ear is located at http://www.sharpuniverse.com/jboss/jms-performance There is a publisher and subscriber swingapps which are webstart deployed. There is also a publisher servlet. Deploy the ear and go to context: jms-performance-test for everything Here's a little more info on my tests: JBoss3.0.3 Protocal/ConnecitonFactory: OIL 100MegaBit tests: Network: several different networks all switched Server/Client boxes: Various differnt boxes runing w2k, wxp, osx and linux, various different jdks 1.4.0 - 1.4.1_01 Gigabit tests: Network: 2 boxes with crossover cable Server: MacOSX running jdk1.3.1 Client: WindowsXP running jdk1.4.1_01 .peter --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.2 Build failure
Greetings. System is Linux 2.4.18 JDK 1.4.1_01 Clean checkout of JBoss using the following command; cvs -z9 co -r Branch_3_2 jboss-3.2 My build attempts are failing. Not sure where I messed up... -Steve Tried to build; jboss@davidson:~/jboss-3.2> build/build.sh main <==Last group of lines===> _buildmagic:init: configure: init: compile-mbean-sources: [mkdir] Created dir: /home/jboss/jboss-3.2/transaction/output/gen-src sourcepath is deprecated. the preferred way to design sources is via nested Running xdoclet.XDocletMain loaded by org.apache.tools.ant.AntClassLoader. Forked:true [xdoclet] Running [xdoclet] Generating output for 'org.jboss.tm.TransactionManagerService' using template file 'jar:file:/home/jboss/jboss-3.2/thirdparty/xdoclet/xdoclet/lib/xdoclet.jar!/xdoclet/jmx/mbean.j'. [xdoclet] Generating output for 'org.jboss.tm.XidFactory' using template file 'jar:file:/home/jboss/jboss-3.2/thirdparty/xdoclet/xdoclet/lib/xdoclet.jar!/xdoclet/jmx/mbean.j'. compile-classes: [mkdir] Created dir: /home/jboss/jboss-3.2/transaction/output/classes [javac] Compiling 10 source files to /home/jboss/jboss-3.2/transaction/output/classes compile-etc: [mkdir] Created dir: /home/jboss/jboss-3.2/transaction/output/etc [copy] Copying 2 files to /home/jboss/jboss-3.2/transaction/output/etc compile: jars: [mkdir] Created dir: /home/jboss/jboss-3.2/transaction/output/lib [jar] Building jar: /home/jboss/jboss-3.2/transaction/output/lib/jboss-transaction.jar [jar] Building jar: /home/jboss/jboss-3.2/transaction/output/lib/jboss-transaction-client.jar [jar] Building jar: /home/jboss/jboss-3.2/transaction/output/lib/testsuite-support.jar most: [execmodules] [execmodules] == [execmodules] == Finished with 'most' in module 'transaction'. [execmodules] == [execmodules] _module-transaction-most: [mkdir] Created dir: /home/jboss/jboss-3.2/build/output/jboss-3.2.0beta2/server/all/lib [copy] Copying 1 file to /home/jboss/jboss-3.2/build/output/jboss-3.2.0beta2/server/all/lib [copy] Copying 1 file to /home/jboss/jboss-3.2/build/output/jboss-3.2.0beta2/client [copy] Copying 1 file to /home/jboss/jboss-3.2/build/output/jboss-3.2.0beta2/server/all/deploy [execmodules] [execmodules] == [execmodules] == Executing 'most' in module 'server'... [execmodules] == _buildmagic:init: configure: init: generate-parsers: [mkdir] Created dir: /home/jboss/jboss-3.2/server/output/parsers/org/jboss/ejb/plugins/cmp/ejbql BUILD FAILED file:/home/jboss/jboss-3.2/server/build.xml:390: Failed to launch JJTree Total time: 35 seconds <## Attempt with Target: ALL ##> jboss@davidson:~/jboss-3.2> build/build.sh all <==Last group of lines===> docs-javadocs-check: docs-javadocs: [mkdir] Created dir: /home/jboss/jboss-3.2/transaction/output/api [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package org.jboss.tm... [javadoc] Constructing Javadoc information... [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/TransactionImpl.java:186: cannot resolve symbol [javadoc] symbol : class XidFactoryMBean [javadoc] location: class org.jboss.tm.TransactionImpl [javadoc]static XidFactoryMBean xidFactory; [javadoc] ^ [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/TransactionManagerService.java:45: cannot resolve symbol [javadoc] symbol : class TransactionManagerServiceMBean [javadoc] location: class org.jboss.tm.TransactionManagerService [javadoc]implements TransactionManagerServiceMBean, ObjectFactory [javadoc] ^ [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/XidFactory.java:29: cannot resolve symbol [javadoc] symbol : class XidFactoryMBean [javadoc] location: class org.jboss.tm.XidFactory [javadoc] Standard Doclet version 1.4.1 [javadoc] public class XidFactory implements XidFactoryMBean [javadoc]^ [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/XidFactory.java:175: cannot resolve symbol [javadoc] symbol : class XidFactoryMBean [javadoc] location: class org.jboss.tm.XidFactory [javadoc]public XidFactoryMBean getInstance() [javadoc] ^ [javadoc] Building tree for all the packages and classes... [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/XidFactory.java:29: warning - @version tag has no arguments. [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes... [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/package.html: warning - @link: is an unknown tag. [javadoc] /home/jboss/jboss-3.2/transaction/src/main/org/jboss/tm/package.html: warning - @link: is an unknown ta
Re: [JBoss-user] Running out of connections
> For CMP, we observed that the connection is lasted for some minutes after > completing the request and then auto-closed. Is there parameter to configure > this auto-close time ? not 100% sure what you're observing. But I'm guessing the connection is still in the connection pool, and after a few minutes the connection pool closes the connection because it is not required. I'm sure if you have a look at the connection pool configuration you will be able to tune this area of it. cheers dim > > Camus > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Camus Chan > Sent: Monday, October 21, 2002 1:28 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] Running out of connections > > > OK, so let me try to lookup the datasource within setentitycontext while > getting and closing method within each method. FYI, right now, I don't have > the "connection is closed" style exception ? It seems no problem accessing > the database. Let me try and come back to you. > > How about CMP ? > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Dmitri Colebatch > Sent: Monday, October 21, 2002 1:07 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Running out of connections > > > So, in setEntityContext you obtain a connection, and you close it in every > find method? Ordinarily this would lead to "connection is closed" style > exceptions because setEntiyContext is called once, and the find*** methods > are obviously called many times. However, in EJB, calling conn.close simply > disassociates the conn with the current thread. > > Ok, basically, dont call getDBConnection in setEntityContext, call it in the > ejbFind*** methods. And dont have it as a class member, just have a var in > the method - although you could have a class member, this is my preference. > > hth > dim > > - Original Message - > From: "Camus Chan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, October 21, 2002 2:29 PM > Subject: RE: [JBoss-user] Running out of connections > > > > For BMP: > > > > I set the connection through: > > > > private Connection getDBConnection() throws SQLException, > RemoteException > > { > > Connection con = null; > > try{ > > InitialContext iCtx = new InitialContext(); > > DataSource ds = (DataSource)iCtx.lookup > > ("java:/OracleDS"); > > con = ds.getConnection(); > > } catch(Exception e) { > > System.out.println("getDBConnection : " + > > e.toString()); > > } > > > > return con; > > } > > > >public void setEntityContext(EntityContext ctx) { > > //System.out.println ("== start setEntityContext "); > > context = ctx; > > try { > > conn = getDBConnection(); > > } catch(SQLException se) { > > System.out.print("SQLException Found : " + > > se.toString()); > > } catch(RemoteException re) { > > System.out.print("RemoteException Found : " + > > re.toString()); > > } > > } > > > > public void unsetEntityContext() { > > System.out.println ("== start unsetEntityContext "); > > context = null; > > } > > > > In every ejbFindxxx method, I have, e.g.: > > public ArrayList ejbFindByDate(String d) { > > try { > > . > >} > >catch(Exception e) {...} > >finally { > > if(conn!=null) > > conn.close() ; > >} > > > > } > > > > > > > > Is that the proper way to do open / close connection getting from the > > connection pool for a BMP ? > > > > > > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Dmitri > Colebatch > > Sent: Monday, October 21, 2002 11:44 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] Running out of connections > > > > > > > Could you kindly tell me which configuration files and parameters which > > are > > > related to the pool as I am afraid that if I am missing some of them ? > One > > > more is that the status is marked *INACTIVE* and logon_time was lasted > for > > > over 24-hour (in v$session), and *ESTABLISHED* when using "netstat -an > | > > > grep 1521". > > > > do you open connections yourself? This suggests to me that there are > > connections not being closed. Make sure that you always close your > > connections inside a finally block. > > > > hth > > dim > > > > > > > > Sorry, I don't know anything about the testsuite. Where could I have it > ? > > > > > > Thanks, > > > Camus > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of David Jencks > > > Sent: Monday, October 21, 2002 10:18 AM > > >
[JBoss-user] JBoss-2.4.9 + Tomcat-4.1.12 release
Any idea when a JBoss 2.4.9 and Tomcat 4.1.12 package will be released ? Thanks. Jeff Gunther --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Running out of connections
Ok, guys, I have a good news. After modifications, the problem goes away. Thanks very much for dm and david for pointing out and giving me directions to solve the long-lasted problem and my bug-ful programs. For CMP, we observed that the connection is lasted for some minutes after completing the request and then auto-closed. Is there parameter to configure this auto-close time ? Camus -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Camus Chan Sent: Monday, October 21, 2002 1:28 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Running out of connections OK, so let me try to lookup the datasource within setentitycontext while getting and closing method within each method. FYI, right now, I don't have the "connection is closed" style exception ? It seems no problem accessing the database. Let me try and come back to you. How about CMP ? -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Dmitri Colebatch Sent: Monday, October 21, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Running out of connections So, in setEntityContext you obtain a connection, and you close it in every find method? Ordinarily this would lead to "connection is closed" style exceptions because setEntiyContext is called once, and the find*** methods are obviously called many times. However, in EJB, calling conn.close simply disassociates the conn with the current thread. Ok, basically, dont call getDBConnection in setEntityContext, call it in the ejbFind*** methods. And dont have it as a class member, just have a var in the method - although you could have a class member, this is my preference. hth dim - Original Message - From: "Camus Chan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 21, 2002 2:29 PM Subject: RE: [JBoss-user] Running out of connections > For BMP: > > I set the connection through: > > private Connection getDBConnection() throws SQLException, RemoteException > { > Connection con = null; > try{ > InitialContext iCtx = new InitialContext(); > DataSource ds = (DataSource)iCtx.lookup > ("java:/OracleDS"); > con = ds.getConnection(); > } catch(Exception e) { > System.out.println("getDBConnection : " + > e.toString()); > } > > return con; > } > >public void setEntityContext(EntityContext ctx) { > //System.out.println ("== start setEntityContext "); > context = ctx; > try { > conn = getDBConnection(); > } catch(SQLException se) { > System.out.print("SQLException Found : " + > se.toString()); > } catch(RemoteException re) { > System.out.print("RemoteException Found : " + > re.toString()); > } > } > > public void unsetEntityContext() { > System.out.println ("== start unsetEntityContext "); > context = null; > } > > In every ejbFindxxx method, I have, e.g.: > public ArrayList ejbFindByDate(String d) { > try { > . >} >catch(Exception e) {...} >finally { > if(conn!=null) > conn.close() ; >} > > } > > > > Is that the proper way to do open / close connection getting from the > connection pool for a BMP ? > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Dmitri Colebatch > Sent: Monday, October 21, 2002 11:44 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Running out of connections > > > > Could you kindly tell me which configuration files and parameters which > are > > related to the pool as I am afraid that if I am missing some of them ? One > > more is that the status is marked *INACTIVE* and logon_time was lasted for > > over 24-hour (in v$session), and *ESTABLISHED* when using "netstat -an | > > grep 1521". > > do you open connections yourself? This suggests to me that there are > connections not being closed. Make sure that you always close your > connections inside a finally block. > > hth > dim > > > > > Sorry, I don't know anything about the testsuite. Where could I have it ? > > > > Thanks, > > Camus > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of David Jencks > > Sent: Monday, October 21, 2002 10:18 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] Running out of connections > > > > > > Sorry, I am highly sceptical of these problems. I think if there were a > > problem in jboss the testsuite wouldn't run. > > > > What is different between your setup and the testsuite setup? > > > > david jencks > > > > On 2002.10.20 22:10:53 -0400 Camus Chan wrote: > > > Hi, > > > > > > I am using J
[JBoss-user] SSL with JBoss/Tomcat: JaasSecurityManager is not registered
Title: SSL with JBoss/Tomcat: JaasSecurityManager is not registered I'm trying to configure JBoss 3.0.0_tomcat_4.0.3 with SSL. I followed the instructions in the JBoss Administration and Development document. 1) Generated chap8.keystore file and copied to $JBOSS_HOME/server/default/conf 2) Modified tomcat4-service.xml to add name="Security:name=JaasSecurityDomain,domain=RMI+SSL"> chap8.keystore rmi+ssl and port = "8443" scheme="https" secure="true"> securityDomainName="java:/jaas/RMI+SSL" clientAuth="false" protocol="TLS"/> This generates this error in the server.log: 17:18:27,711 ERROR [SARDeployer] start operation failed on package file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager is not registered. at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:403) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480) at org.jboss.security.plugins.JaasSecurityDomain.start(JaasSecurityDomain.java:116) ... What mbean code should be registered with name=jboss.security:service=JaasSecurityManager ?? Tx! JD