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
>
_________________________________________________________________
MSN straight to your mobile - news, entertainment, videos and more.
--_d9a8f178-c8c1-4e37-b3ec-2ca1f901812e_
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'>
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/' target='_new'>Learn more!</a></body>
</html>
--_d9a8f178-c8c1-4e37-b3ec-2ca1f901812e_--