Temporary queue problem
Hi,
I cannot create a receiver for the temporary queue. It throws "Invalid Destination"
exception. I disassembled the session class and the reason is the session class casts the
temporary query to Query and it throws null pointer exception as the temporary queue does not extend this
interface. The code I used is written as I had read in Sun's JMS tutorial, why it does not work?
Context ctx = new InitialContext();
QueueConnectionFactory factory = (QueueConnectionFactory)ctx.lookup("jms/QueueConnectionFactory");
QueueConnection connection = factory.createQueueConnection();
QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue tempQueue = session.createTemporaryQueue();
QueueReceiver receiver = session.createReceiver(reportQueue); <-- this is the place where the exception is thrown
receiver.setMessageListener(new ReportQueueListener());
connection.start();
Exception:
javax.jms.InvalidDestinationException: Invalid queue
at com.evermind.server.jms.EvermindQueueSession.createReceiver(EvermindQueueSession.java:145)
at com.evermind.server.jms.EvermindQueueSession.createReceiver(EvermindQueueSession.java:134)
Thanks, Zbynek
P.S. I found similar questions in this forum but no answer ???
You already have a reference to the Queue from msg.getJMSReplyTo(). There
should be no need to look it up again.
I don't think you are supposed to be able to look up a temporary queue in
this fashion anyway.
Bob
"Chuck Kiefriter" <[email protected]> wrote in message
news:3d209522$[email protected]..
>
> I send an object message to a queue with the JMSReplyTo set to a temporay
queue the
> client uses to sit and listen for a response. When the MDB tries to do a
lookup
> on the temporary queue to send a response, it gives me the following
error:
>
> javax.naming.NameNotFoundException: Unable to resolve
eDailiesJMSServer.TemporaryQueue56
> Resolved: '' Unresolved:'eDailiesJMSServer' ; remaining name
'TemporaryQueue56'
> <<no stack trace available>>
>
> I checked in the WebLogic console while the client was still listening for
a response
> and it shows a temporay queue up and running called
eDailiesJMSServer.TemporaryQueue56
>
> Is there something else I should do to resolve the JNDI name? I used the
following
> code in the MDB to get the temporary queue name:
>
> (Queue)msg.getJMSReplyTo()).getQueueName()
>
> Any ideas?
>
Similar Messages
-
Hi,
I've setup a template for temporary queues in the weblogic console (8.1SP4). However, I'm getting an exception when trying to destroy the queue after use. This doesn't happen with other JMS providers, so is there something special to Weblogic about temp queues? Is there a specific option that needs to be set in the template?
Queue: MyJMSServer.TemporaryQueue1390
weblogic.jms.common.JMSException: Destination is in use
at
weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at
weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
at
weblogic.jms.dispatcher.DispatcherImpl_814_WLStub.dispatchSyncFuture(Unknown
Source)
at
weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSync(DispatcherWrapperState.java:3
45)
at
weblogic.jms.client.JMSConnection.destroyTemporaryDestination(JMSConnection.java:1089)
at
weblogic.jms.common.DestinationImpl.delete(DestinationImpl.java:455)
at
com.trs.cv.fmk.fcms.common.impl.TimeoutQueueRequestor.request(TimeoutQueueRequestor.java:
203)
at
com.trs.cv.fmk.fcms.cas.client.impl.CasCnsIntegration.request(CasCnsIntegration.java:203)
Thanks,
NasrinIf there are still application receivers on the temporary destination, the call will fail. (As specified in the JMS javadoc.) Perhaps this is the reason for the exception? In which case the application needs to close its receivers first.
-
I send an object message to a queue with the JMSReplyTo set to a temporay queue the
client uses to sit and listen for a response. When the MDB tries to do a lookup
on the temporary queue to send a response, it gives me the following error:
javax.naming.NameNotFoundException: Unable to resolve eDailiesJMSServer.TemporaryQueue56
Resolved: '' Unresolved:'eDailiesJMSServer' ; remaining name 'TemporaryQueue56'
<<no stack trace available>>
I checked in the WebLogic console while the client was still listening for a response
and it shows a temporay queue up and running called eDailiesJMSServer.TemporaryQueue56
Is there something else I should do to resolve the JNDI name? I used the following
code in the MDB to get the temporary queue name:
(Queue)msg.getJMSReplyTo()).getQueueName()
Any ideas?
You already have a reference to the Queue from msg.getJMSReplyTo(). There
should be no need to look it up again.
I don't think you are supposed to be able to look up a temporary queue in
this fashion anyway.
Bob
"Chuck Kiefriter" <[email protected]> wrote in message
news:3d209522$[email protected]..
>
> I send an object message to a queue with the JMSReplyTo set to a temporay
queue the
> client uses to sit and listen for a response. When the MDB tries to do a
lookup
> on the temporary queue to send a response, it gives me the following
error:
>
> javax.naming.NameNotFoundException: Unable to resolve
eDailiesJMSServer.TemporaryQueue56
> Resolved: '' Unresolved:'eDailiesJMSServer' ; remaining name
'TemporaryQueue56'
> <<no stack trace available>>
>
> I checked in the WebLogic console while the client was still listening for
a response
> and it shows a temporay queue up and running called
eDailiesJMSServer.TemporaryQueue56
>
> Is there something else I should do to resolve the JNDI name? I used the
following
> code in the MDB to get the temporary queue name:
>
> (Queue)msg.getJMSReplyTo()).getQueueName()
>
> Any ideas?
>
-
Temporary queue - what am I doing wrong?
I have two different apps - one server and many clients, both are working with OpenMQ 4.2 on SP1 Vista x86.
Conception is:
1. Server has an one permanent queue to whom clients send auth requests.
2. Each time client prepares authorization request it creates temporary queue, where response from server should arrive - one queue per each client.
3. Name of this temporary queue is attached to authorization request.
But it doesn't work =((((((((
Piece of code on client dedicated to temp queue:
dataQueue = session.createTemporaryQueue();
dataQueueName = dataQueue.getQueueName();then DataQueueName is being sent to server as simple String message (something like temporary_destination://queue/***.***.***.***/61253/1 )property where it tries to use this queue:
// processing received message...
dataQueue = new com.sun.messaging.Queue(receivedString);But it doesn't work, Connection not created exception occurs.
What am I doing wrong?
Thanks to everybody for your future answers.thanks for your answer!
I've tried to work with autocreated queues as you wrote and it works, great =)
but I have a problem when adopting your example
Queue tmp = m.getJMSReplyTo();
there is type mismatch here, tmp is an +com.sun.messaging.Queue+ object, but method +getJMSReplyTo()+ returns +javax.jms.Destination+ =(
Edited by: GlebHappy on 17.11.2008 0:11 -
When Broker Restarts None of the Temporary Queues Are Created
Somehow when the broker restarts none of the temporary queues are getting recreated. The queues were created successfully the 1st time and the applications were happily exchanging messages. Things just fall apart when the broker restarts.
I'm able to reproduce this problem consistently by doing the following:
1. Start imqbrokerd (mq start)
2. Start client application
3. Shutdown imbrokerd (mq stop)
4. Start imqbrokerd (mq start)
After the producers in the client application have reconnected the following messages are displayed in the console. I'm only able to get the client app to work again is if I restart the client apps.
[02/Mar/2009:23:01:01 CST] attempting to set Message Bytes Limit to 10485760K for destination temporary_destination://queue/192.168.20.14/49823/1 [Queue]
[02/Mar/2009:23:01:01 CST] attempting to set Message Size Limit to 10240K for destination temporary_destination://queue/192.168.20.14/49823/1 [Queue]
[02/Mar/2009:23:01:01 CST] [B1065]: Accepting: [email protected]:57123->jms:37646. Count: service=9 broker=9
[02/Mar/2009:23:01:01 CST] [B2083]: Unable to create destination temporary_destination://queue/192.168.20.14/49823/1 [Queue], autocreation is forbidden
Do you guys have any idea on what's going on? Does anybody know of an existing workaround?
Environment:
- OpenMQ 4.3
- CentOS 5.2
- Sun JDK 1.6_05
- Spring 2.5.5
- Camel 1.3.0
I also looked at the code and found only one location where the error message is used. I still need to figure our how I can get the conditional expression to evaluate to false.
share/java/com/sun/messaging/jmq/jmsserver/core/Destination.java
1395 if (!DestType.isAdmin(type) && !canAutoCreate(DestType.isQueue(type),type) && !BrokerMonitor.isInternal(destination)) {
1396 throw new BrokerException(
1397 Globals.getBrokerResources().getKString(
1398 BrokerResources.W_DST_NO_AUTOCREATE,
1399 getName()),
1400 BrokerResources.W_DST_NO_AUTOCREATE,
1401 (Throwable) null,
1402 Status.FORBIDDEN);
-bash-3.2$ /tmp/openmq-4.3/mq/bin/imqcmd query bkr -t q -n MYQUEUE -u admin
Password: admin
Querying the broker specified by:
Host Primary Port
localhost 7676
Version 4.3
Instance Name imqbroker
Broker ID
Primary Port 7676
Broker is Embedded false
Instance Configuration/Data Root Directory /tmp/openmq-4.3-data/var/mq
Current Number of Messages in System 202
Current Total Message Bytes in System 317483
Current Number of Messages in Dead Message Queue 201
Current Total Message Bytes in Dead Message Queue 316444
Log Dead Messages true
Truncate Message Body in Dead Message Queue false
Max Number of Messages in System unlimited (-1)
Max Total Message Bytes in System unlimited (-1)
Max Message Size 70m
Auto Create Queues true
Auto Create Topics true
Auto Created Queue Max Number of Active Consumers unlimited (-1)
Auto Created Queue Max Number of Backup Consumers 0
Cluster ID
Cluster is Highly Available false
Cluster Broker List (active) mq://192.168.1.123:7676/
Cluster Broker List (configured)
Cluster Master Broker
Cluster URL
Log Level DEBUG
Log Rollover Interval (seconds) 604800
Log Rollover Size (bytes) 268435456
Successfully queried the broker.
I also tried versions 4.4 and 4.2 and received the same behavior :(The application is inside an app server but we're not using a resource adapter as we're using Spring and Camel to hide the JMS details. Spring (JMSComponent) manages the connection directly. (We current don't have any JMS connection pooling as well.)
<bean id="jmsTransactionManager" class="org.springframework.jms.connection.JmsTransactionManager">
<property name="connectionFactory" ref="jmsConnectionFactory" />
</bean>
<bean id="jmsConnectionFactory" class="com.norvax.framework.jms.OpenMQConnectionFactory">
<property name="openmqBrokerConfiguration">
<props>
<prop key="imqBrokerHostName">$remoting{openmq.hostName}</prop>
<prop key="imqBrokerHostPort">$remoting{openmq.hostPort}</prop>
<prop key="imqReconnect">true</prop>
</props>
</property>
</bean>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="jmsConnectionFactory" />
</bean>
I'm going to write a very basic producer using Spring without using Camel and see if I'll get the same behavior. I'd like to see if the way Camel uses JMS is what's making OpenMQ broker to deny creation of temporary queues.
Thanks,
Jeff -
Cannot receive message on temporary queue
I am executing the following code in a web application.
It is sending a message to a JMS queue. The MDB
listening to that queue processes the message
and posts a reply to the temporary queue specified in
the JMS Reply to field. The queue browser code below
shows that the message is in the queue, but the receive
times out and returns null. My question is why can't the
receiver get the message?
Am I missing something?
Thanks in advance,
-Doug.
=====WEBAPP SIDE===========
QueueConnection connection = null;
QueueSession session = null;
QueueSender sender = null;
QueueReceiver receiver = null;
Queue respQueue = null;
try
connection = QUEUE_CON_FACTORY.createQueueConnection();
connection.start();
session = connection.createQueueSession(false, Session.CLIENT_ACKNOWLEDGE);
TextMessage textMessage = session.createTextMessage();
textMessage.setText(xmlInput);
if (wait)
respQueue = session.createTemporaryQueue();
textMessage.setJMSReplyTo(respQueue);
receiver = session.createReceiver(respQueue);
sender = session.createSender(INPUT_QUEUE);
sender.send(textMessage);
if (wait)
QueueBrowser qB = session.createBrowser(respQueue);
Enumeration enum = qB.getEnumeration();
while (enum.hasMoreElements())
Message msg = (Message) enum.nextElement();
LOG.debug("msg = " + msg);
return ((TextMessage) receiver.receive(10000)).getText();
return DEFAULT_RESPONSE;
=======MDB side============
QueueConnection queueConnection = QUEUE_CON_FACTORY.createQueueConnection();
queueConnection.start();
QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
TextMessage textMsg = queueSession.createTextMessage();
textMsg.setText(buffer.toString());
QueueSender queueSender = queueSession.createSender((Queue)getReplyDestination());
queueSender.send(textMsg);
queueSender.close();
QueueBrowser qB = queueSession.createBrowser((Queue)bpelCtx.getReplyDestination());
Enumeration enum = qB.getEnumeration();
while (enum.hasMoreElements())
Message msg = (Message) enum.nextElement();
LOG.debug("msg = " + msg);
queueSession.close();
queueConnection.close();
==== LOG ====
[DEBUG] 2006-01-16 14:51:17,780 MDB - msg = TextMessage[ID:N<192225.1137444677780.0>, <unique-id-response xmlns
="htt...]
[DEBUG] 2006-01-16 14:51:27,374 WEBAPP -
msg = TextMessage[ID:N<192225.1137444677780.0>, <unique-id-response xmlns="htt..
.]At first glance, this looks like a standard design to me. Does the same problem occur when there are no browsers?
Tom
(Performance note: It is quite CPU-intensive to continually create and close connections/temporary destinations/sessions/consumers/producers. Cache and/or pool them for re-use when possible. Use a cached anonymous producer on the MDB for sending replies [pass null for the dest when creating it, and specify the dest as a send parameter].) -
MDBs responding via Temporary Queue
Hello,
I've been attempting to get this working in test code, but i seem to be missing something. I want a message producer to send a message to an administered queue, have the message processed by a Message Driven Bean, and have the bean post a response back to a temporary queue that was setup in the original producer. All over the net i find statements that this can be done and is reasonably normal, but i have not found a single code snippet to this effect, nor can i apparently get it to work on my own. I am using JMS with J2EE 1.3 on websphere 5.0.
Within the message producer, i create the temporary queue and pass it in the JMSReplyTo field.
<code>
TemporaryQueue tempq = queueSession.createTemporaryQueue();
message.setText("Temporary Queue Test Message");
message.setJMSReplyTo(tempq);
queueSender.send(message);
</code>
The MDB sees the message and onMessage is called normally. From within the MDB code, i have the temporary queue object (i print out the name of the queue in the message ReplyTo field with toString() to confirm) and i have the MDB context from getMessageDrivenContext() supplied by javax.ejb. Unfortunately, javax.ejb.MessageDrivenContext is not the same or similar to javax.naming.Context.
To send a message, i need the send() method from the QueueSender interface, which is generated from the QueueSession interface, which is generated from the QueueConnection interface, which is generated from a QueueConnectionFactory, and is ultimately reliant upon javax.naming.Context. So, i have the (temporary) queue object, but see no method to put a message on it for consumption by the creator of the temporary queue. (messages on temporary queues can only be consumed by the creator of said queue. if no other producer can use it, too, perhaps i am missing the point on temporary queues)
I can easily get the MDB to fire off messages to other administered queues. How do i get it to respond with a message on a temporary queue?
Could somebody please enlighten me?
thanks,
camThanks Andreas, your answer sent me off on new trails to read, but something is still missing. I hope that you (or anybody else) is able to see what i do not.
Your code was J2EE 1.4 (beta), but Websphere 5.0 still uses J2EE 1.3.1. I was able to translate most of your code back to the older form but some doesn't fit, which may be part of my problem (as shown below).
I have connection factories and queues already setup on the server. they work fine as far as all other non-temporary queue usage is concerned.
Using your code, here's some of the problems i have crossed while trying to sort this out
public void onMessage(Message inMessage)
Destination dest = (Destination) ctx.lookup("jms/t0");
MessageProducer producer = session.createProducer(dest);
producer.send(msg);
}My first question is how are you looking up a temporary (i.e. dynamically created) queue with some hard-coded string ("jms/t0")? I assume that your string was meant to be arbitrary but it must still represent the destination, which is the temporary queue that doesn't have a hardcodable name (AFAIK). I have tried using the name inMessage.getJMSReplyTo().toString(), which in my case gives me "queue://WAS_localhost_server1/AMQ.10000009?persistence=1", but this only throws a NamingException (not found) when trying to do a lookup() on it.
If you already had the Destination object from inMessage.getJMSReplyTo().toString(), why would you bother to go through a String lookup just to get the object again? (for use in the createProducer() call)
To get past the above naming exception, i commented out the Destination getting line and used the object from the getJMSReplyTo() message method. In 1.3.1, the equivalent Producer line looks like:
QueueSender producer = session.createSender(replyTo);which is pretty much like what i already had. Unfortunately, an error is reported that it is unable to open the specified queue. (J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adaptor for resource JMS$MyMDBConnectionFactory$JMSManagedConnection@580144656. The exception which was received is MQJMS2008: failed to open MQ queue)
I double checked to make sure both the creator of the temporary queue and the MDB were both using the same administered Connection Factory. They are. I don't know if it's relevant.
Any further ideas?
Thanks,
cam -
Temporary Queue - Multithreaded Consumption?
I would like to create a single temporary queue, and then have multiple message listeners to process messages from it in parallel (i.e. using multiple JMS threads)
Is this doable? Are there any gotchas?
Will the following work?
Tks
Session session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
javax.jms.Queue tq = session.createTemporaryQueue(); then
In loop:
for ( int i = 0 ; i < numListeners ; i++ ) {
// Session comes with new thread
Session ses = connection.createSession(...);
MessageConsumer con = session.createConsumer(tq );
// listener for that thread
con.setMessageListener(new MyMessageListener());I still am having problems creating a consumer. The following test code gets a Naming Exception looking up the temporary queue. If I use the tempQueue object itself, it fails because the object belongs to a different connection.
Note: this code is being invoked by a ServletContextListener.
protected void doTest() throws Exception {
Context ctx = new InitialContext();
queueConnectionFactory = (QueueConnectionFactory) ctx.lookup("jms/queueConnectionFactory");
sendCon = queueConnectionFactory.createQueueConnection();
sendCon.start();
sendSession = sendCon.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue tempQueue = sendSession.createTemporaryQueue();
tempQueueName = tempQueue.getQueueName();
logger.info("Temp Q Name:"+tempQueueName);
producer = sendSession.createProducer(tempQueue);
rcvCon = queueConnectionFactory.createQueueConnection();
Session rcvSes = rcvCon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
logger.info("Looking up queue:"+tempQueueName);
Queue dest = (Queue)ctx.lookup(tempQueueName); // <<<<<FAILS - NAMING EXCEPTION
MessageConsumer consumer = rcvSes.createConsumer(dest)
rcvCon.start();
consumer.setMessageListener(new MyMessageListener(me, "Test"));
TextMessage msg = sendSession.createTextMessage("Test message");
producer.send(msg);
}Looking up queue:temporary_destination://queue/138.113.193.36/52744/1
javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:268)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:191)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at TesterThreadUsingTempQueue.doTest(TesterThreadUsingTempQueue.java:112) -
MDB replying to temporary queue
Hi,
I'm having problems getting an MDB to reply to a temporary queue set by an EJB. It seems to be getting the correct temporary queue, but the EJB that is meant to receive the reply times out, and then gives a null pointer exception, which I assume means no text in the reply message.
here's the relevant code from both the EJB and MDB:
EJB:-
QueueSession queueSession = null;
QueueSender queueSender = null;
TemporaryQueue tq = null;
QueueReceiver queueReceiver = null;
TextMessage message = null;
try
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queueSender = queueSession.createSender(queue);
tq = queueSession.createTemporaryQueue();
queueReceiver = queueSession.createReceiver(tq);
message = queueSession.createTextMessage();
message.setText("Message from EJB to MDB");
message.setJMSReplyTo(tq);
System.out.println("Temp queue = " + tq.toString());
queueSender.send(message);
Message response = queueReceiver.receive(20000);
TextMessage responseText = (TextMessage)response;
System.out.println("EJB: Message received: " + responseText.getText());
MDB:-
public void onMessage(Message inMessage)
TextMessage msg = null;
QueueConnection queueConnection = null;
QueueSession queueSession = null;
QueueSender queueSender = null;
TextMessage replyMsg = null;
try
if (inMessage instanceof TextMessage)
msg = (TextMessage) inMessage;
System.out.println("MESSAGE BEAN: Message received: " + msg.getText());
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
System.out.println("Temp Queue = " + msg.getJMSReplyTo().toString());
queueSender = queueSession.createSender((Queue)msg.getJMSReplyTo());
replyMsg = queueSession.createTextMessage();
replyMsg.setText("From MDB: Right back at ya");
System.out.println("Sending Reply Message");
queueSender.send(replyMsg);
Any ideas?
Thanks.Yes, I kind of figured there was no message to be found on the temporary reply queue.
I was wondering why this is, both beans have a toString() method that displays the same queue name, so they're using the same temporary queue, and the MDB definitely replies to the EJB. So I'm still not sure why the EJB doesn't find a message.
The MDB sends its reply long before the EJB times out on its receive. The only reason I put in the value 20000 ms was that with a blocking receive the EJB would wait indefinitely.
Still stuck,
thanks. -
What is Event queue problem?
HI,
I have come across JSF document, they mentioned that Event queue
Problem ins SUN's JSF implementation. what is that?You're going to have to be a little more specific.
-
OSB 10.3 JMS queue problem: JMSCorrelationID is null
Hi everybody,
I am new to OSB/ALSB, and need some help regarding JMS message handling. I am trying to put some input data into a JMS queue( say, reqQueue) and to get the response from another JMS queue(say resQueue). My architecture is:
OSB proxy service->OSB business service->JMS queue(reqQueue)->BPEL process(through JMS adapter) ->JMS queue(resQueue)->OSB business service->OSB proxy service.
I have used JMSCorrelationID for response correlation. but my problem is that when I am trying to test the service from proxy service, I am getting the JMSCorrelationId as null in BPEL process as well as in the weblogic server JMS log, and as I am getting the CorrelationId as null, I am unable to correlate the response, so I am not getting any response.
This is urgent, please help me as soon as possible as possible.
Thanks in advance.
JoySovled it..
OSB 10.3 JMS queue problem: JMSCorrelationID is null -
Run filters on folder - 4.7.0 Temporary System Problem
When I try to run filters on folder to clean up my inbox into my folders I am getting this message -
An (SMTP) error occurred while sending mail. The server responded: 4.7.0 Temporary System Problem. Try again later (WS). t6sm1646118qai.10 - gsmtp.
How can I fix this, my inbox is horrifying!
Filters do work on start up, but only if I haven't opened them via mobile. And I can create and sort new filters.That sounds like your using filters to send mail. If you sending lots of mail gmail will simply stop sending as your outside the terms of use. Hence the temporary nature of the error.
-
How to bind Temporary Queue to Context in FioranoMQ
I have two JMS clients sending messages to each other via FioranoMQ.
And one client creates a temporary queue, for example
Temporary Queue auction1Queue = qSession.createTemporaryQueue();
My question is how to bind this auction1Queue to Context? so that the client on the side can lookup
I don't use the usual way of set/getJMSReplyTo() to message because it will change the logic of my program.
With SonicMQ, I just simply bind it like this
jndi.bind("auction1", auction1Queue);
then the other side just need to jndi.lookup("auction1")
and with ActiveMQ it is even simpler
Both side just need to lookup for the same name like that
jndi.lookup("dynamicQueues/auction1");
http://activemq.apache.org/jndi-support.html
But FioranoMQ does not support both of the above operations.
I don't really know how to do the same thing with FioranoMQ.
Hope that somebody can help me.
Thank you very much
Edited by: dannytrinh1 on Apr 16, 2009 5:53 AMHow to look up for temporary queue by using temporary queue name using JNDI context. I am getting lookup faild error" for temporary queue. While trying to bind this temporary queue name to jndi , it is throwing an exception as: notsupported exception. I am using ActiveMQ 5.2.
See below sample code...
tq = session.createTemporaryQueue();
jndiContext.bind("queue.MyTempQueue",tq); -
Hello,
a customer of mine has issues sending email to @hotmail/@live/@outlook mail addresses.
the problem only occurs with these Microsoft addresses!
when sending an email they get an error email reply (generated from within outlook) from "systemmanager"
saying "Servererror: 451 Temporary local problem - please try later"
just like Graylisting, when the costumer sends the email for the second time all works fine.
My exim server log says:
2014-05-27 15:03:19 H=(MAC01) [37.xxx.xx.130] F=<[email protected]> A=login:[email protected] temporarily rejected RCPT <[email protected]>: host lookup did not complete
2014-05-27 15:03:22 H=(MAC01) [37.xxx.xx.130] incomplete transaction (QUIT) from <[email protected]>
can somebody tell me how to fix this?
and or point me in the right direction where the problem might be (Microsoft, my server, costumer mac)!Hi,
To narrow down the issue, please do the following checks:
1. What’s you Outlook client, Outlook 2013 or Outlook 2011 for Mac?
2. Does the issue only happen to one specific user? How about other users?
3. What’s the problematic user’s account used to send messages? Exchange account or other webmail account such as Hotmail, Gmail?
4. Please close Outlook and access the webmail to send test messages to @hotmail/@live/@outlook mail addresses and check whether the issue persists.
5. If the issue doesn’t happen in webmail, please also create a new Outlook profile to have a try:
http://support.microsoft.com/kb/829918/en-us
Thanks,
Winnie Liang
TechNet Community Support -
Temporary Queue BMQ size limit?
Hi,
is there a size limit for tha temporary queue on BEA Message queue?
To explain better the ones managed by BMQ itself, not the permanent ones configured in the init files.
I ask this since I have this kinf of transaction on my application:
client send a message by BMQ to Server that performs the receive and send the ACK Message to client whose buffer is 30 KB(30.000 byte), so is there a size limit on the BEA Message Q temporary queues?
Thanks.
Ciao
AndreaThat depends. In most cases, there is no limit for tmq queue size.
But you need to know the following things:
1. On Unix/Win, the tmp queue is stored in the heap of qe process and doesn't have size limit. But on OVMS, tmp queue shares the global section with other queues. So obviously the max tmp queue size is limited.
2. You can define the tmp queue quota in init file. In this case, the queue size is limited.
3. If the tmp queue quota is exceeded, the message will be stored in SAF/DQF files, which may have size limit.
4. If the message is sent cross groups, the message may be in link_buffer_pool when linkdriver is busy for network I/O. The link_buffer_pool is limited.
5. Each message cannot exceed the specified max message in this group, which is defined in init file and needs to be less than or equal to 4M bytes.
Regards,
Leo
Maybe you are looking for
-
My ipod touch 8gb has a blank white screen what do i do
hello i need help with my ipod touch 8gb 3rd geniration i dont no how to spell gen. because the screen turned white when i did nothing i tried pushing the awake/sleep button with the home menu buttton it did not work eny ideas
-
Why there is no sound when i connect my ipod to my pc via bluetooth
i dont know why there is no sound, even though it worked i believe before IOS 7
-
For those of you Struggling with videos!
Even though i had been using the videora converter my videos were playing as songs, with only the artwork picture instead of the video. Well to change this so that you are able to view the video and hear the sound all you have to do is go to video se
-
Project delivery not able to punch tax invoice
dear all we are running on project scenario. we deliver the material against project through tcode : CNS0, that time document type is LP. when we go for tax invoice through VF01 system shows error. that no document type assign to LP docement type.
-
hello i would like to learn how i can create a flat file db..just for the sake of it. can anyone tell me what i need to lookup and learn. thanks alot.