• 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

EJB: remote calling mechanism question

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd like to make clear about it. For example, one ejb jar file deployed on app server on machine1, and another (same content) on machine2. Is it possible that one client connects to machine1, but ejb container on it considers too many beans in pool and then put the request to the other container on machine2? When does it happen? How? What is its flow?
Moreover,where is the naming server? Does it exist on app server when running(on both machines?)? What is the content of JNDI name after registering ejb? Is there any info about machine/port(one machine, or two)?
I'm new to its internal flow, eager to wait for any explanation? Thanks a lot!
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.technicalfacilitation.com/get.php?link=naming

I think your first question is really asking is it possible to workload manage EJBs. Certainly it is. A properly developed application will spray EJB requrest to less busy servers. I think the actual implementation of this functionality has alot to do with the actual vendor, but I'm not totally sure.

As far as JNDI goes, I believe that's fairly vendor specific too. I know IBM had one sort of JNDI implementation with WAS 3.x and 4.x, but changed to a federated namespace with 5. Essentially, with a JNDI lookup, you can do a bad lookup, and end up looking up an EJB on just one machine all the time. On the otherhand, you can do a lookup to the federated namespace, and this becomes less dependent on any one machine. With WAS, each JVM maintains its own JNDI namespace, with becomes part of a federated namespace.

For a mind numbing amount of info on JNDI, check out my JndiBindiBoBindi link on pulpjava.com

http://www.technicalfacilitation.com/get.php?link=naming
 
Mike Sever
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, it is really very helpful.

Further, (1) how to see the setting of �topology dependent JNDI name� in was console?
(2) how to test the effect of such setting?
(3) is it the reason why the war module can not access (lookup) ejb when war module deployed in ear1 and ejb module in ear2 on the same server? (if deploy the war and ejb module into one ear, it is ok)
(4) is there any detailed information of implementation of �topology dependent JNDI name�, at least how one machine knows the information of another machine, is there any specific flag?
(5) where is naming server? located in admin server instance?
(6) how about the implementation of that in weblogic?

I'm obscure about it for a long time, wish to become clear to some extent, thanks for reply! ->
 
Mike Sever
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any update from any kindly senior person? Thanks in advance!
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may find more information when searching for "clustering" - I'm not sure if this is the kind of thing you're looking for - this isn't necessarily done at the EJB level, but is more directed at duplicating entire application server instances. However, it's much more common to do this, because if you're interested in load balancing/failover on one tier, you're probably interested in the others. (You *can* however, specify only specific tiers/services/EJBs to be duplicated in the cluster if you so wish.) Here is a starting document about clustering in Weblogic.
 
Cameron Wallace McKenzie
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I asked my boss for a raise, but she said "just use vectors instead."

Heh...Get it? A raise == arrays...I kill me.

The big this about arrays is you can group similar objects or primitive types together. You can have an array of int, doubles, Objects or Strings, it doesn't matter.

Arrays are great. Just don't ask your boss for one.

-Cameron McKenzie
 
Mike Sever
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Nathan!
Then, how about EJB remote call, how to test calling to ejb container in different application server (maybe in different machines)?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would probably be easier to test the failover capability of clustering rather than the load-balancing - just shut down one of the members of the cluster and see that the other gets the call.

To test load-balancing, you'd probably want to make use of a specific tool or framework to do so. There are some links to tools in this article from Sun. An open-source tool for this is The Grinder.
 
Mike Sever
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for considerable reply, I'll try to test as per it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic