• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS Clustering in Weblogic

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a sample application which i deployed in a admin server (of webloggic) with JMS configured, it works fine.

Then i created 2 managed Servers M1 & M2 , and configured JMS connection factories on both M1 & M2. Then i deployed my client and EJB both on admin server and trying to connect JMS server which is configured in the cluster (M1 & M2)..but is not connection and giving the following error.


.0-com.weblogic.sample.ejbapp.FubarBMTEJB.connectToQueue() exception occured: javax.naming.NameNotFoundException: While trying to lookup 'com.weblogic.sample.mdbapp.FubarQueueFactory' didn't find subcontext 'mdbapp'. Resolved 'com.weblogic.sample'; remaining name 'mdbapp/FubarQueueFactory'
1.0-com.weblogic.sample.ejbapp.FubarBMTEJB.sampleMethod() queuing request: [1.0-client123-true-false-0-1234]
1.0-com.weblogic.sample.ejbapp.FubarBMTEJB.putQueueMessage() exception occured java.lang.NullPointerException:



i am very new to this, can you please provide me any thoughts, on this issue. it will be a great help.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hope you have created JMS queues in managed servers also. if you have created jms queues on managed servers. Then create a distributed queue with a jndi name say "test.distributed.queue". Then add jms queues (already created) of each managed servers. Then try accessing the distributed queue with the jndi name. Also see that you are using the provider ur� of one of the managed srevers. Then you can see the expected behavior cluster. you can see jms messages distibuted to two jms queue , on each managed servers. Also remeber to configure the connection factory to loadbalance in round robin

...
Happy New Year...
Trimoorthy
 
Mohammed Yousuff
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trimoorthy Kotte thanks a lot for your comments. i created a distributed queues and when i try to add another queues i can't find the option for it... i tried my level best to configure weblogic JMS faii over.. however i can reach to a point where i can get the reference to the queue (where i am pointing reference URL of that server when i am doing JNDI lookup for the JMS connection factory and Queue) which is in the managered Server and messge is also posted. However when i turn off one server then it is not routing to another server....

I tried in net to find any sample application which does JMS failover, however i can't find one.Weblogic 9.2 documents is not userfriendly i can't follow the doc its HUGE and boaring ...

can you suggest me any article where i can have step by step process to create JMS failover ??? or please let me know how can add more queues to the managed servers...

it will great help for me ... thank you
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi,

For the Exception below:-

javax.naming.NameNotFoundException: While trying to lookup 'com.weblogic.sample.mdbapp.FubarQueueFactory' didn't find subcontext 'mdbapp'. Resolved 'com.weblogic.sample'; remaining name 'mdbapp/FubarQueueFactory'
1.0-com.weblogic.sample.ejbapp.FubarBMTEJB.sampleMethod() queuing request: [1.0-client123-true-false-0-1234]
1.0-com.weblogic.sample.ejbapp.FubarBMTEJB.putQueueMessage() exception occured java.lang.NullPointerException:

Try to deploy your EJB on managed servers MS1 & MS2..because you have created the JMS servers on these managed servers.

Rite now you have the EJB only on admin server and when it comes to the part of look up it will look only in the JNDI tree of admin server where there is no JMS server and queue created thereby throwing javax.naming.NameNotFoundException.......but actually the queue 's are targetted to managed servers.

Hope you understood....
 
reply
    Bookmark Topic Watch Topic
  • New Topic