Win a copy of High Performance Python for Data Analytics this week in the Python forum!

Java Buzz

Greenhorn
+ Follow
since Mar 11, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Java Buzz

Posting on behalf of a friend. Urgent help required...

============================================================================
I require suggestions on bridging 2 JMS queues set up on 2 different IBM Websphere 6.0 servers.

In my application I have a MDB listening to a local JMS queue and an external application which will post messages on to their own JMS queue. Now bridging has to done between these two JMS queue.

We have configured JMS Q using Default messaging under JMS Providers and not WebSphere MQ. Kindly suggest as to how do I go about bridging them.
Can the bridging be done only by configuring JMS provider using Websphere MQ and not through Default messaging?
I also wanted to know if my MDB can be configured to directly listen to the external application?s JMS queue thus avoiding bridging?

============================================================================
Hi,
I am facing a weird problem with struts. I have a link on the first page of my application, clicking on which I invoke a action class. It connects to database, pulls out data populates a form bean and forwards to a jsp.

In the jsp, I am accessing the properties of the form bean and I am displaying. But when I run the same, all the values displayed are empty. However logs at action classes convey that data was fetched from database and is set into the form bean. I have set the scope of the bean to be request.

Any guess what could be the problem?

Regards,
Hari
14 years ago
Hi,

I wrote the following test client that runs as standalong program to post a message into the topic. This topic is hosted in the server instance running inside WSAD and I am using the default JMS service.

=======================
Exception
=======================

com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: De-reference of JMS provider's Reference failed - check provider is on classpath
at com.ibm.ejs.jms.JMSConnectionFactoryFactory.getObjectInstance(JMSConnectionFactoryFactory.java:89)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1674)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at TopicClient.main(TopicClient.java:44)







================
Client Code
================

try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");

ctx = new InitialContext(env);

//System.out.println( ctx.

TopicConnectionFactory tcf = (TopicConnectionFactory) ctx.lookup("WASTopicConnectionFactory");
TopicConnection connection = tcf.createTopicConnection();

connection.start();
boolean transacted = false;
TopicSession session =
connection.createTopicSession( transacted, Session.AUTO_ACKNOWLEDGE);

TopicPublisher pub = session.createPublisher(topic);
TextMessage outMessage = session.createTextMessage("Heloooooo");
pub.publish(outMessage);

System.out.println("Message placed");
Jaikiran,
This seems to be more viable solution. I will try this and will post if I face any issue in this approach.

Thanks !

~Hari
I checked the documentatin of both Websphere default JMS and the websphere MQ. Both of them doesn't seem to provide. Weblogic 9.2 offers. In my case, I need to design some thing on my own to implement the same.

I had been searching about this for the past 6 hours. There are so many "weird" implementations being suggested. But I am looking for a cleaner one.

*Note - The same question has been raised on some forum way back in 1999
Hi,
The consumers are MDB's in my case. And regarding the retries I want to retry only three times max, with a time difference of 5 mins. So it is like after first attempts, rety attempts will be made at 5th, 10th and 15th min. If this is the requirement, then how can I go about?
Regards,
Hari
Hi,
I am using JMS topic(websphere default JMS) to notify some consumers. The consumers have to process and push the data to other external systems. Sometimes the external systems might be down temoporarily, in which case I need to redeliver the message to the consumer.

Which is the most elegant way of implementing this.
Regards,
Hari
Hi,

Have anyone in this group tried remote caching feature of JCS. Does any other caching product support this feature

Regards,
Hari
15 years ago
Hi, Can you please share the info as to how u configured MQSeris as a Foreign JMS provider in weblogic 8.1.

Mail to hari.manivannan@gmail.com ASAP.
15 years ago