Anand Sidharth

Ranch Hand
+ Follow
since Dec 17, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anand Sidharth

Hi,
I am new to HP-UX.Can any body help me in finding java version 1.4.2_02 for
HP-UX machine?
In the sun site:
"http://java.sun.com/products/archive/j2se/1.4.2_02/index.html"
I find the following downloads:
Can i use any one of the below in my HP-UX box?

Windows Installation (info)
Windows Offline Installation (info)
Linux RPM in self-extracting file (info)
Linux self-extracting file (info)
Solaris SPARC 32-bit self-extracting file (info)
Solaris SPARC 32-bit packages - tar.Z (info)
Solaris SPARC 64-bit self-extracting file * (info)
Solaris SPARC 64-bit packages - tar.Z * (info)
Solaris x86 self-extracting file (info)
Solaris x86 packages - tar.Z (info)
Windows 64-bit Itanium
Linux 64-bit Itanium

Thank U.
Anand
19 years ago
There is an SSL enable MQ queuemanager.
I want to connect to this SSL enabled queue manager using a
JMS client.
What should be done to make my JMS client to connect to a
SSL enabled queue manager?
Can anybody give me some idea on this?
Thanks Brian...
Since there could be hundreds of senders (there is only one receiver) there is no way to lookup to the particular sender server.

I think the second option you gave on sending the context info along with the message is a good solution. I would let you know after the implementation.

Actually i was thinking that since the name is 'replyTo' Queue, the JMS provider should take care of finding where the replyTo Queue is located and sending back the reply message i.e., the message object should have provision to form the qcf for the replyTo Queue.
Thanks Brian
But the problem is that the sender and receiver are different queue managers in different machines ....
In the code you sent,
the session object used is created using the connection formed from the QCF information of the receiver side ...
But the replyToQueue is present in the sender queuemanager.
How is it possible to send a message to the replyToQ using the receiver connection session? Or am i missing out something here
I am setting the replyTo queue in the message i send to a queue in the following way:

QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup("TESTQMQCF");
QueueConnection connection = qcf.createQueueConnection();
Queue queue = (Queue)ctx.lookup("TESTQMQ");//remote queue
Queue replyqueue = (Queue)ctx.lookup("TESTQMQREPLY");//local queue
QueueSession session = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
QueueSender sender = session.createSender(queue);
TextMessage outMessage = session.createTextMessage();
outMessage.setText(line);
outMessage.setJMSCorrelationID("ANAND");
outMessage.setJMSReplyTo(replyqueue);
sender.send(outMessage);

In the receiving end, a java program receives the message and gets the
JMSreplyTo queue.

QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup("TESTQM100QCF");
QueueConnection connection = qcf.createQueueConnection();
Queue queue = (Queue)ctx.lookup("TESTQM100Q");//Local queue
QueueSession session = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
QueueReceiver receiver = session.createReceiver(queue);
connection.start();
outMessage = (TextMessage)receiver.receive(10000);
line = outMessage.getText();
Queue replyTo = (Queue) outMessage.getJMSDestination();

I want to post a message to this replyTo queue from the receiver side program. How can i put a message to this replyto queue?

Please suggest me a way -
Oops sorry i have posted the query in the wrong place...
i am posting it again in the J2EE section.
I am setting the replyTo queue in the message i send to a queue in the following way:

QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup("TESTQMQCF");
QueueConnection connection = qcf.createQueueConnection();
Queue queue = (Queue)ctx.lookup("TESTQMQ");//remote queue
Queue replyqueue = (Queue)ctx.lookup("TESTQMQREPLY");//local queue
QueueSession session = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
QueueSender sender = session.createSender(queue);
TextMessage outMessage = session.createTextMessage();
outMessage.setText(line);
outMessage.setJMSCorrelationID("ANAND");
outMessage.setJMSReplyTo(replyqueue);
sender.send(outMessage);

In the receiving end, a java program receives the message and gets the
JMSreplyTo queue.

QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup("TESTQM100QCF");
QueueConnection connection = qcf.createQueueConnection();
Queue queue = (Queue)ctx.lookup("TESTQM100Q");//Local queue
QueueSession session = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
QueueReceiver receiver = session.createReceiver(queue);
connection.start();
outMessage = (TextMessage)receiver.receive(10000);
line = outMessage.getText();
Queue replyTo = (Queue) outMessage.getJMSDestination();

I want to post a message to this replyTo queue from the receiver side program. How can i put a message to this replyto queue?

Please suggest me a way -
Thanks a lot Ernest,
That was really helpful.
20 years ago
What is Thread Dump and how can it be used by a java developer (like me)?
Thanks in advance,
Anand
[ January 22, 2004: Message edited by: Anand Sidharth ]
20 years ago
Can anybody tell me the difference between XALAN AND XERCES
PArsers and when to go for Xalan and when to go for Xerces.
ALso the advantage of each over the othar.
Any input on this would be of great help to me.
Thanks in Advance,
Anand R
Edit: I changed the subject to lowercase
[ January 21, 2004: Message edited by: Lasse Koskela ]
Pallavi,
Thanks for the explanation. That was helpful.
I found that option 2 and 3 are correct in another forum.
By Java spec ,an interface by default makes all members public,static even when a modifier isn't specified.
Anand
20 years ago
Can any one tell the correct answer for the following question and explain why?
Q: Which of the following are true about the class defined inside an interface
ANS:
1).it is not possible in the java Language.
2).The class is always public.
3).The class is always static.
4).the class methods cannot call the methods declared in the interface.
5).the class methods can call only the static methods declared in the interface.
The answer given was 2, 3 and 4

Thanks, Anand
20 years ago
Can any one tell the correct answer for the following question and explain why?

Q: Which of the following are true about the class defined inside an interface
ANS:
1).it is not possible in the java Language.
2).The class is always public.
3).The class is always static.
4).the class methods cannot call the methods declared in the interface.
5).the class methods can call only the static methods declared in the interface.

The answer given was 2, 3 and 4


Thanks, Anand
20 years ago
Can any one tell the correct answer for the following question and explian why?
Q: Which of the following are true about the class defined inside an interface
ANS:
1).it is not possible in the java Language.
2).The class is always public.
3).The class is always static.
4).the class methods cannot call the methods declared in the interface.
5).the class methods can call only the static methods declared in the interface.
The answer given was 2, 3 and 4
Can anybody substantiate this answers with explanation???
Thanks, Anand
Yi Meng,
That was was very well explained.