How to acces specific resource in a server in clustering
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > How to acces specific resource in a server in clustering




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to acces specific resource in a server in clustering  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-07 12:24 PM

Hi all,
I have this environment:
-WebSphere 5.1
-1.4.2 IBM jvm

We have 2 server in clustering with 2 nodes with load balancing, so -->

cell/nodes/myNode1/servers/myWSServer1
cell/nodes/myNode2/servers/myWSServer2

I need to lookup a resource from both servers, so I tried to lookup the JNDI
 name using the "full path" -->

context.lookup("cell/nodes/myNode1/servers/myWSServer1/ejb/myEjb");
context.lookup("cell/nodes/myNode2/servers/myWSServer2/ejb/myEjb");

but what I get is not what I expected, because the resource that is given to
 me is independet from the "path" I use, and it comes from one server or the
 other, dependig on the load balancing...

I also tried to use Persistent Namespace Binding -->
I set two different Persistent binding for two EJBs (the "same" EJB in two s
ervers), but when I make the lookups I get the EJBs in the same server...

There's a way to do what I'm trying to do?


Thanks in advance


nihilim





[ Post a follow-up to this message ]



    Re: How to acces specific resource in a server in clustering  
Ben_


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-07 06:23 PM

If they are clustered, they are supposed to be identical.

Why are you interested in speaking to a particular instance ?





[ Post a follow-up to this message ]



    Re: How to acces specific resource in a server in clustering  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-13-07 12:24 PM

We have to call a static method of an object loaded in memory...

So I thought that it could be done via EJB, but we have the problem of the 2
 environment...


nihilim





[ Post a follow-up to this message ]



    Re: How to acces specific resource in a server in clustering  
Paul Ilechko


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-13-07 12:24 PM

master76@libero.it wrote:
> We have to call a static method of an object loaded in memory...
>
> So I thought that it could be done via EJB, but we have the problem of the
 2 environment...
>

You'd likely have a problem even in one environment, with classloader
issues. You should never expect to have a true singleton in a J2EE
application, and should design accordingly. The developer does not
control deployment, and should not architect a system that has
deployment specific dependencies.





[ Post a follow-up to this message ]



    Re: How to acces specific resource in a server in clustering  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 12:27 PM


> You'd likely have a problem even in one environment,
> with classloader
> issues. You should never expect to have a true
> singleton in a J2EE
> application, and should design accordingly. The
> developer does not
> control deployment, and should not architect a system
> that has
> deployment specific dependencies.

I know it, but I was asked to look for a possible solution...

I think we'll leave this problem... it was a sort of study case...

Thank you


nihilim







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register