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>
<BR>
Wrong thread.<BR>
<BR>
eve<BR> <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> <BR>If I install glassfish v3 proluge, would I get this problems?<BR> <BR>Myapplication comes up with the same JNDI naming BelaBean, BaleRemote,<BR>error. again.<BR> <BR>Thanking you.<BR> <BR>eve<BR> <BR>> Date: Tue, 29 Sep 2009 13:51:28 -0700<BR>> From: glassfish@javadesktop.org<BR>> To: users@glassfish.dev.java.net<BR>> Subject: Re: Findings for “Cannot allocate more connections” exception.<BR>> <BR>> Hi Nigel<BR>> <BR>> 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>> <BR>> 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>> <BR>> Regards, Ola<BR>> [Message sent by forum member 'glassola' (ola.theander@myola.se)]<BR>> <BR>>
http://forums.java.net/jive/thread.jspa?messageID=366246<BR>> <BR>> ---------------------------------------------------------------------<BR>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> <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_--