RE: openjms0.7.7 / postgres problem

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
That code snippet doesn't really help identify the problem.

One thing to be aware of - if you have multiple producers/consumers 
created from a single session, only a single thread may access 
any of them at a time. Sessions are single threaded, as per the
JMS specification. The behaviour of multiple threads accessing a 
session (other than the close() method) is undefined.

-Tim

> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Laszlo Schaffer personal
> Sent: Friday, 15 July 2005 6:42 PM
> To: [email protected]
> Subject: RE: [openjms-user] openjms0.7.7 / postgres problem
> 
> Hello!
> This is a quite big application hereby I send only a part of 
> the class that maybe can cause this exception (I have to 
> notice however that my application did not get any exception 
> "only" the openjms log contains the error message 
> 
> So there is chatserver (part of an sms/mms service) that is 
> communicat with its clients through jms, A client connect to 
> the server sending message , then it periodically sends ping 
> message and the server responds also a similar message (that 
> contains status info...etc) Two receiver thread is runnin on 
> the server side one gets/sends sms from two dedicated queues 
> (in/out) (sent by another application) another gets/sends 
> service messages from/to the clients 
> 
> So there is a generic part of the application (the transport 
> layer is separated so the application core does not have any 
> information about the transport method..etc)
> 
> Here is run method of the thread (runs 2 instances) (note 
> there is able to get messages using the jms callback function 
> (depends on the configuration) but in this case I configured 
> the 'poll' feature (however I tested with callbacking also 
> with the same result) I have to notice however it seems the 
> applications (messages are being
> transferred) works but the jms server drops the messages
> 
> I have tested with 0.7.6 also
> Using TCP connection : 
> 	Apps works no error message at the jms console Using HTTPS
> 	Apps did not work (I have sent the exception in another 
> mail in this
> week)
> 
> With 0.7.7 (with postgres 8.x)
> 	TCP,HTTPS works but the jms drops this message 
> 	     (with derby) not worked (see previous mail)	
> 
> so here is code
> 
> /** Main processing method for the QReceiver object */
>   public void run() {
>     try {
>       while (receiver != null &&!ownerThread.isInterrupted()) {
>         if (!enableCallback) {
> 
>           try  {
>             Message message = receiver.receive(100);
> 
>             if (message != null) {
>               message.acknowledge();
>               logger.debug("message arrived :" + message.toString());
>               fireMessageArrived(new ReceiverEvent(this, message));
>             }
>           }
>           catch(JMSException jex) {
>             logger.error(jex);
>             if(jms_exception_count++>MAX_JMSEXCEPTION) {
>               throw new Exception("Cannot continue too many 
> JMSException");
>             }
> 
>           }
>         }
>         synchronized (this) {
>           wait(300);
>         }
>       }
>     }
>     catch (InterruptedException iex) {
>       logger.warn("interrupted");
>     }
>     catch (Exception ex) {
>       logger.error("run:", ex);
>       fireMessageArrived(new ReceiverEvent(this,ex));
>     }
>     finally {
>       logger.debug("thread is died");
>     }
> 
>   }
> 
> Regards
> Saf
> 
> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Tim Anderson
> Sent: 2005. július 14. 15:33
> To: [email protected]
> Subject: RE: [openjms-user] openjms0.7.7 / postgres problem
> 
> Can you post code that reproduces the problem?
> 
> > -----Original Message-----
> > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Laszlo 
> > Schaffer personal
> > Sent: Thursday, 14 July 2005 11:03 PM
> > To: [email protected]
> > Subject: RE: [openjms-user] openjms0.7.7 / postgres problem
> > 
> > Hello,
> > 
> > I have the following problem with 0.7.7
> > 
> > JMS has been configured with https using tunnel... database 
> set back 
> > to derby
> > 
> > There is a server application that runs as a normal webapp
> > (chatserver) (runs in the same tomcat instance as
> > openjms-tunnel) Client app is connecting to the jms server 
> also with 
> > https
> > 
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.