From: Cédric B. <cb...@sp...> - 2004-04-21 07:48:36
|
Sorry but I don't have Stack trace because it only locks without = generating exception. I just put the DEBUG level on JMS to obtain more information. > -----Original Message----- > From: ope...@li...=20 > [mailto:ope...@li...] On Behalf=20 > Of Jim Alateras > Sent: lundi 19 avril 2004 22:25 > To: ope...@li... > Subject: RE: [openjms-user] Lock in the publishing... >=20 > Can you get a stack trace when the polisher locks so we have=20 > an idea where it is happening. In OpenJMS you can not specify=20 > a timeout on the Connection or Session >=20 > Cheers > </jima> >=20 > > -----Original Message----- > > From: ope...@li...=20 > [mailto:openjms-user-=20 > > ad...@li...] On Behalf Of C=E9dric Braem > > Sent: Monday, April 19, 2004 11:43 PM > > To: ope...@li... > > Subject: [openjms-user] Lock in the publishing... > >=20 > > I need some help... > > I have a problem when using OpenJMS but not always !!! > > Configuration: OpenJms 0.7.6 > > I have the following method to publish message: > >=20 > > public void publish(SynchronizationMessage message, String > destination) > > throws JMSException, TechnicalException { > >=20 > > JmsTopicConnection connection =3D (JmsTopicConnection)=20 > > pool.borrowConnection(); > > Log.info(this.getClass(), "Borrow connection..."); > > try { > > TopicSession session =3D connection.getSession(); > > TextMessage msg =3D > > session.createTextMessage(message.getXmlmsg()); > > msg.setJMSType(destination); > > TopicPublisher topicPublisher =3D > connection.getPublisher(); > > > topicPublisher.setDeliveryMode(DeliveryMode.NON_PERSISTENT); > > topicPublisher.publish(msg); > > } finally { > > pool.releaseConnection(connection); > > Log.info(this.getClass(), "Release connection...") > > } > > } > >=20 > > Sometime the system blocks on the publish instruction...=20 > Like as lock > on > > the > > publish and it doesn't respond (no exception, no error, ...). The > system > > treats 200 messages per minute and this locking occurs once a day. > >=20 > > My questions: > > 1. Is somebody has the same problem or similar? > > 2. Is it possible to put a timeout on a connection or on a=20 > queue/topic > or > > on > > session? > >=20 > > Thank in advance > >=20 > > C=E9dric > >=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux=20 > > tutorial presented by Daniel Robbins, President and CEO of GenToo=20 > > technologies. Learn everything from fundamentals to system=20 > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=CCk > > _______________________________________________ > > openjms-user mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/openjms-user >=20 >=20 >=20 |