users@glassfish.java.net

RE: Findings for “Cannot allocate more connections” exception.

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Tue, 29 Sep 2009 22:43:06 +0100

Sorry,

 

Wrong thread.

 

eve
 


From: gorgeous65_at_msn.com
To: users_at_glassfish.dev.java.net
Date: Tue, 29 Sep 2009 22:39:07 +0100
Subject: RE: Findings for “Cannot allocate more connections” exception.



Tim,
 
If I install glassfish v3 proluge, would I get this problems?
 
Myapplication comes up with the same JNDI naming BelaBean, BaleRemote,
error. again.
 
Thanking you.
 
eve
 
> Date: Tue, 29 Sep 2009 13:51:28 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Re: Findings for “Cannot allocate more connections” exception.
>
> Hi Nigel
>
> Thanks for you answer. I did go for option 3, i.e. creating a single connection per transaction and then use that connection to send multiple messages and it seems to work.
>
> Anyway, I guess I was slightly fooled by the "Insert Code" functionality in Netbeans which can generate methods for sending a JMS messages. Since the generated methods create an close the connection for each method call you would assume that it would be possible to call those methods multiple times within a single transaction which obviously isn't the case. As far as I remember, I haven't ever seen a note about that the connection may not be returned to the pool even if you call Close on it. Every discussion on this topic seems to assume that Close is not called properly on the connection thus it's leaked some way or another, but hopefully this thread may be of help to others as well.
>
> Regards, Ola
> [Message sent by forum member 'glassola' (ola.theander_at_myola.se)]
>
> http://forums.java.net/jive/thread.jspa?messageID=366246
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>



View your Twitter and Flickr updates from one place – Learn more! _________________________________________________________________ Share your photos with Windows Live Photos – Free. http://clk.atdmt.com/UKM/go/134665338/direct/01/
--_368e7599-e1f2-43a4-b034-b062ed1606af_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Sorry,<BR>
&nbsp;<BR>
Wrong thread.<BR>
&nbsp;<BR>
eve<BR>&nbsp;<BR>
<HR id=stopSpelling>
From: gorgeous65_at_msn.com<BR>To: users_at_glassfish.dev.java.net<BR>Date: Tue, 29 Sep 2009 22:39:07 +0100<BR>Subject: RE: Findings for “Cannot allocate more connections” exception.<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Tim,<BR>&nbsp;<BR>If I install glassfish v3 proluge,&nbsp; would I get this problems?<BR>&nbsp;<BR>Myapplication comes up with &nbsp;the&nbsp;same JNDI naming&nbsp;BelaBean,&nbsp;BaleRemote,<BR>error. again.<BR>&nbsp;<BR>Thanking&nbsp;you.<BR>&nbsp;<BR>eve<BR>&nbsp;<BR>&gt; Date: Tue, 29 Sep 2009 13:51:28 -0700<BR>&gt; From: glassfish@javadesktop.org<BR>&gt; To: users@glassfish.dev.java.net<BR>&gt; Subject: Re: Findings for “Cannot allocate more connections” exception.<BR>&gt; <BR>&gt; Hi Nigel<BR>&gt; <BR>&gt; Thanks for you answer. I did go for option 3, i.e. creating a single connection per transaction and then use that connection to send multiple messages and it seems to work.<BR>&gt; <BR>&gt; Anyway, I guess I was slightly fooled by the "Insert Code" functionality in Netbeans which can generate methods for sending a JMS messages. Since the generated methods create an close the connection for each method call you would assume that it would be possible to call those methods multiple times within a single transaction which obviously isn't the case. As far as I remember, I haven't ever seen a note about that the connection may not be returned to the pool even if you call Close on it. Every discussion on this topic seems to assume that Close is not called properly on the connection thus it's leaked some way or another, but hopefully this thread may be of help to others as well.<BR>&gt; <BR>&gt; Regards, Ola<BR>&gt; [Message sent by forum member 'glassola' (ola.theander@myola.se)]<BR>&gt; <BR>&gt; http://forums.java.net/jive/thread.jspa?messageID=366246<BR>&gt; <BR>&gt; ---------------------------------------------------------------------<BR>&gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; <BR><BR>
<HR>
View your Twitter and Flickr updates from one place – <A href="http://clk.atdmt.com/UKM/go/137984870/direct/01/">Learn more!</A> <br /><hr />View your Twitter and Flickr updates from one place – <a href='http://clk.atdmt.com/UKM/go/137984870/direct/01/' target='_new'>Learn more!</a></body>
</html>
--_368e7599-e1f2-43a4-b034-b062ed1606af_--