Re: [java ee programming] Message from ActMQ

2011-02-09 Thread Rafał Laczek
Hi, Thanks. I will check in later on. regards, Rafal Dnia 8-02-2011 o godz. 6:20 bambang passion napisał(a): hi,pls. check on http error 303 or 304. it is occurred at client side and 304 means : not modified, it is just a message.do check thoroughly the possible outputs for your getDateHeader,i th

Re: [java ee programming] Message from ActMQ

2011-02-07 Thread bambang passion
hi, pls. check on http error 303 or 304. it is occurred at client side and 304 means : not modified, it is just a message. do check thoroughly the possible outputs for your getDateHeader, i think the output will be an http message not DATE. b.l 2011/2/7 Rafał Laczek > Hi, > > The result of

Re: [java ee programming] Message from ActMQ

2011-02-07 Thread bambang passion
hi, sorry i dont understand what you want, may be you could elaborate more? by the way, what is the result of createRss.getTimestamp_long() ? also check what are the required attributes for response.setDateHeader() ? b.l 2011/2/7 Rafał Laczek > Hi, > > Yes. Now it works. But I have the othe

Re: [java ee programming] Message from ActMQ

2011-02-07 Thread Rafał Laczek
Hi, The result of createRss.getTimestamp_long() is date in long format of last modification of my feed in RSS. This is the date when new message has been registered. I try to display 303 error when there is no changes. Please have a look for my present code. I know that there is here something wr

Re: [java ee programming] Message from ActMQ

2011-02-07 Thread Rafał Laczek
Hi, Yes. Now it works. But I have the other small problem. In my servlet I want to send date of last modification and when I refresh the browser to get back this date. In response I try to send the date and in request to get this date. Unfortunately in response I get -1   Please look for following

Re: [java ee programming] Message from ActMQ

2011-02-06 Thread bambang passion
HI, you need to define the : ConnectionFactory and TOPIC b.l 2011/2/3 Rafał Laczek > Hi, > Can somebody help me to get Message using following code. > > Thanks > Rafal > > try{ > Properties props = new Properties(); > props.setProperty(Context.INITIAL_CONTEXT_FACTORY, > "org.apache.activemq

[java ee programming] Message from ActMQ

2011-02-03 Thread Rafał Laczek
Hi, Can somebody help me to get Message using following code. Thanks Rafal try{ Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory"); props.setProperty(Context.PROVIDER_URL,"tcp://srv-waw-323:61222")