Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Can different clients access one same stateful session bean?

Can different clients access one same stateful session bean?

2003-10-20       - By Gupta, Pranshu

 Back
Reply:     1     2     3     4     5     6     7     8  

Hi

What Le has pointed out is absolutely correct, but some containers like
WebLogic App Server (WAS) do allow concurrent calls to a SB be serialized.
Though, per the EJB specs clients cannot rely on this behaviour.

However, in the example that Wang has pointed out there should not be any
problem provided C1 does not invoke SB concurrently with C2.

Thanks
Pranshu Gupta

-- --Original Message-- --
From: Le Quang Tu [mailto:lqtu@(protected)]
Sent: Saturday, October 18, 2003 11:08 PM
Subject: Re: Can different clients access one same stateful session
bean?


If a client-invoked business method is in progress on an instance when
another client-invoked call, from the same or different client, arrives at
the same instance of a   tateful session bean class, the container may throw
the java.rmi.RemoteException Source code of java.rmi.RemoteException to the second client[4], if the client is a
remote client, or the javax.ejb.EJBException Source code of javax.ejb.EJBException, if the client is a local
client.  (from EJB  spec )
And the message from Exception is: SessionBean is executing another request.

-- -- Original Message -- --
From: "PavanKumar Keely" <keelypavan@(protected)>
To: <J2EEPATTERNS-INTEREST@(protected)>
Sent: Saturday, October 18, 2003 11:13 AM
Subject: Re: Can different clients access one same stateful session bean?


> I don't think there is any problem implementing this
> scenario. Because the remote reference is same the
> container treats multiple requests as the requests
> from the same client.
>
> bye and haffun
> Keely Pavan
>
>
> --- peng wang <wp0@(protected)> wrote:
> > Hi,
> >
> > Image a scenario like this: there is a client, C1,
> > accessing a stateful bean, SB. C1 does some
> > operations
> > on SB and then C1 sends an event to another client,
> > C2,
> > the remote ojb reference of SB is carried in the
> > event
> > (C2 and C1 are in different machines).When C2
> > receives
> > the event, C2 get SB reference from event and C2
> > also
> > does some operations on the same SB, after that C2
> > send a noticing event back to C1, on receiving the
> > noticing event C1 then removes SB and done.
> >
> > Is the scenario able to realized by using stateful
> > session bean? if not, which mechanism should be
> > used?
> >
> > thanks in advance!
> >
> > wp
> >
> > __ ____ ____ ____ ____ ____ ______
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product
> > search
> > http://shopping.yahoo.com
> >
> >
> ====================================================================
> > Companion Site: http://www.corej2eepatterns.com
> > J2EE BluePrints:
> > http://java.sun.com/blueprints/corej2eepatterns
> > List Archive:
> >
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> > Unsubscribing: email "signoff J2EEPATTERNS-INTEREST"
> > to listserv@(protected)
>
>
> __ ____ ____ ____ ____ ____ ______
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> ====================================================================
> Companion Site: http://www.corej2eepatterns.com
> J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
> List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
listserv@(protected)

====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
listserv@(protected)
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.