File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Understanding ServerSessionPool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Understanding ServerSessionPool " Watch "Understanding ServerSessionPool " New topic
Author

Understanding ServerSessionPool

faiza athar
Ranch Hand

Joined: Oct 30, 2001
Posts: 136
Hi
What is the difference b/w :
ServerSessionPool, which is used to process msgs concurrently,
and
having multiple sessions or receivers for a single queue.
Whats the benefit of this ServerSessionPool???
thanx
faiza
Seenu Reddy
Ranch Hand

Joined: Apr 03, 2002
Posts: 108
hi faiza,
the basic diffrence between the sessionpool over queue/topic is provide convinent way to deploy asynchronous listeners to wl server with out have to set up and tear down the JMS infrastructure. for each session pool u create, weblogic allocates a thread and jms session for the message listener u provide. so weblogic handles the jms infrastructure for u, so there's no need to obtain server context, connection's,sessions or any ther jms infrastructere.
before using conside two things.
1.prticipants in a session pool consume messages concurrently so message ordering is not garunted.
2.there is no way to predict which particent in pool will recieve any given message,so session pools only used for "stateless" conversations, in which the identity of messge's recipient doesn't matter.
i hope it solves...
regards,
seenu


Thanks,<br />Seenu<br />SCJP1.4,SCBCD1.3,Next-->SCWCD1.4
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Understanding ServerSessionPool