wood burning stoves*
The moose likes Websphere and the fly likes Qualified EJB Name in Cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Qualified EJB Name in Cluster" Watch "Qualified EJB Name in Cluster" New topic
Author

Qualified EJB Name in Cluster

Bryan Strange
Greenhorn

Joined: Mar 18, 2008
Posts: 2
I'm trying to be able to do a lookup for a specific instance of an EJB that is deployed to a cluster.

The clustering works wonders for redundancy, however I need to be able to find a specific instance of an EJB. The need is to verify that each EJB within the cluster is operational.

At the moment I have two EJBs deployed to separate nodes, each on a separate physical machine. Some of the underlying architecture services on machine 1 are offline and therefore cause EJB failures.

However on machine 2 these services are operational, therefore so are the EJBs.

My problem is when trying to do a look-up for the EJB. I have tried all of the folloing:

1. Using the 'corbaname' protocol and specifying the specific host, port, and EJB JNDI name (which is the only one on that machine) however I (sort of) randomly get the error from the other server.

2. Using corbaloc with a host/port and limiting the context to the 'NameServiceServerRoot' for the lookup. This, if given an relative JNDI name should locate the one on the identified server first. Result is still errored EJB.

3. Using corbaloc and specifying a fully qualified JNDI name (cell/nodes/nodename/servers/servername/jndiname. Still not working

4 & 5. Items 2 & 3 using a specific iiop instead of corbaloc.


So, am I missing something, is there another thing i can try? Basically I have to test cases, each of which is readily configured for the different EJB isntance. One should succeed, while the other should fail (- controlled known states), but for whatever reason the failure keeps showing up in my success area.

Which brings me to another question/point: Once it fails, it doesn't ever want to succeed... for an indeterminate amount of time. It is usually a while before i get from test run to test run, but when i hit the EJBs for after the first failure, regardless of which one i hit, or how many times i hit them, the look up always returns the failed case, until i take some time away to retool my tests.

Assistance would be greatly appreciated.

-B
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60740
    
  65

"Bryan S.", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bryan Strange
Greenhorn

Joined: Mar 18, 2008
Posts: 2
Done.
Jack- Wang
Greenhorn

Joined: Aug 31, 2008
Posts: 1
Does your problem fixed? if so, can you show me the solution?
Thanks
 
 
subject: Qualified EJB Name in Cluster
 
Similar Threads
How to version EJBs
Is there any way to not load balance EJB call in WAS cluster?
JNDI Lookup using T3 Protocol
Test 252: Mock exam
Communication error while calling EJB from WAS