Ab Sharma

Greenhorn
+ Follow
since May 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ab Sharma

I am getting the following error ...(failed to create MQQueueManager for '') while tryingto get a JMS connection .. Can somebody help... I am appending the code and the exception faced


------------------------Code-----------------------

---------------------------------------------------



--------------------------Exception----------------------------
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for ''
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:556)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1736)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1129)
at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:207)
at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:127)
at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:389)
at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:262)
at com.jasmine.utils.MessageSender.init(MessageSender.java:46)
at com.jasmine.utils.MessageSender.main(MessageSender.java:99)
Exception in thread "P=816903 =0:CT"
--------------------------------------------------------------------
[ August 21, 2004: Message edited by: Marilyn de Queiroz ]
Praveen,

Congrats on your certificaion!
I too am planning for the exam. I want to know if any mock/evaluation/Sample tests are available on net. I will be higly appreciative if you could pass any exams you culled while preparing.

Thanks,
Abhishek (rush2abhishek@rediffmail.com)
IBM, Bangalore
No Rajani,

b is a byte... so has 7 bits ie can attain calues from +127 to -128. So the loop wraps around after 128 and gets the cvalue -127 and terminates.

Hope that clarifies..
Rajani,

By default 6.5 is taken as double rathe than float. and Math.round has only two signatures:

static long round(double a)
static int round(float a)

So C should be the correct answer as the return value should be long.

Hopre that clarifies..
Abhishek
Sridhar,

You must have tried and know the answer for your query.
The explanation is :-

ClassCastException occurs whenever the actual object does not have a "is a" relationship with the class it is being casted to.

Lets analyze this rule in context with the ablve example:-
Cat "is a" animal.
So if a cat object is casted to an animal its well and good.

Example cited in the second post first casts the cat object to an animal. So when this object is being casted to a Dog, obviously exception occurs as Cat "Is NOT a" Dog.

Creating an Animal object and casting to a Cat is again not aceptable as Animal "is NOT a" cat .. only reverse is true.

Hope that was useful..
Regards