Hi,
I think you can't use IsModified with lagacy apps! Try whitout it!
Burkhard
----- Original Message -----
From: "Syed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 4:46 AM
Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C
>
> Yes I have transaction Required flag.
>
>
> Thanks & Best Regards,
> Mustaffa Syed Meerkasim.
>
>
>
>
> Date: Thu, 19 Jul 2001 22:26:48 -0400
> From: David Jencks <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
> You do have all your methods with transaction Required or RequiresNew,
> right?
> david jencks
>
> On 2001.07.19 22:03:57 -0400 Syed wrote:
> >
> > I am using JBoss 2.4 BETA(Rel_2_4_0_14).
> >
> > In the standardjboss.xml file under container configuration for
Standard
> > BMP EntityBean, I set the commit-option to C.
> > But it does not seem to be working.
> > I think it behaves this way,,
> >
> > when ejbFindByPrimarykey is called,
> > it finds the bean from the cache(if it is not in cache it eventually
> > calls
> > ejbLoad, so no problem during first invocation),
> > then checks the isModified & calls ejbStore if isModified returns true..
> > that's it.. it never calls ejbLoad.
> > it can call ejbLoad if isModified returns false as there is possibility
> > for
> > the data be modified outside the entity bean.
> > if isModified is true, it calls ejbStore and that means whatever data it
> > has
> > is the latest and no need to call ejbLoad...
> >
> > I don't know the complete cycle of events and the above given is my
> > assumption of what is happening
> > after looking at its behaviour ..
> >
> > Pls let me know if there are any other settings which can help ...
> >
> > Thanks & Best Regards,
> > Mustaffa Syed Meerkasim.
> > ----------------------------------------------------------------------
> > From: "Burkhard Vogel" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is
C
> > Date: Thu, 19 Jul 2001 15:11:53 +0200
> > Reply-To: [EMAIL PROTECTED]
> >
> > Hi,
> > commit option C MUST do the job, if not I guess you are misconfigured.
> > Where
> > and how do you set your commit-option to C how do you deploy your beans
> > (ejb-jar/jboss/jaws)?
> > Burkhard
> > ----- Original Message -----
> > From: "Luke Studley" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 19, 2001 2:35 PM
> > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is
C
> >
> >
> > > Hello
> > >
> > > I think this relates exactly to the same problem I am having, see my
> > post
> > > from about 18 hours ago below. When I went back to read the ejb1.1.
> > spec
> > it
> > > seems to suggest that there are 3 different ways a container may
behave
> > > between transactional calls on a bean (see mail below), it appears to
> > me
> > > that JBoss is taking option A, which is allowable, but not very useful
> > for
> > > what I want to achieve (i.e. dB access from without the bean).
> > >
> > > I am hoping that somebody will rubbish my conclusions and tell me how
> > we
> > can
> > > make JBoss call ejbLoad at the beginning of each transactional set of
> > calls.
> > >
> > > If you find any solution to this please do post it.
> > >
> > > Best of luck
> > >
> > > Luke
> > >
> > > ---------------------
> > > FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user]
JBoss
> > > Entity Bean Transactions This message is in MIME format. Since your
> > mail
> > > reader does not understand
> > > this format, some or all of this message may not be legible.
> > >
> > > ------_=_NextPart_001_01C10FD9.171B7B80
> > > Content-Type: text/plain
> > >
> > > Hi all
> > >
> > > In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new
> > > transactions for entity beans) it mentions 3 options for a container
to
> > end
> > > a transaction:
> > > A. mark "not registered"
> > > B. mark "invalid state"
> > > C. ejbPassivate()
> > >
> > > Which relates to the following actions for starting the next
> > transaction:
> > > A. Do nothing
> > > B. ejbLoad()
> > > C. ejbLoad()
> > >
> > > Would it be true to say that JBoss implements option A? I am certainly
> > > seeing this type of behaviour with my session wrapped entity beans,
> > i.e.
> > no
> > > ejbLoad() called for new Transactions after the initial
> > find/ejbActivate
> > > combo.
> > >
> > > If this is the case then you cannot pick up new transaction data
> > changed
> > in
> > > the dB from outside of JBoss without restarting or re-deploying your
> > beans.
> > > Which is quite annoying for the application I have.
> > >
> > > Is any / all / none of this true?
> > > Is it possible to configure JBoss to use one of the other options
> > mentioned
> > > in the spec? I.e. I basically need ejbLoad to be called on the entity
> > beans
> > > afresh in each transaction.
> > >
> > > As always any answers appreciated.
> > >
> > > Thanks
> > >
> > > Luke
> > > -------------------------------------------------
> > >
> > >
> > >
> > >
> > > Message: 3
> > > From: Syed <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Date: Thu, 19 Jul 2001 17:58:20 +0800
> > > Subject: [JBoss-user] ejbLoad not called even when commit-option is C
> > > Reply-To: [EMAIL PROTECTED]
> > >
> > > Wehave two entity beans, we use one entity bean for updation which =
> > updates
> > > a few tables and call it U The other entity bean just loads data only,
> > let's
> > > call it R. When we use the bean U to update the data, the data gets
> > updated.
> > > Then we call the bean R to read the data. ejbLoad in R is called the =
> > the
> > > latest data is loaded. Then we use bean U to change the data again and
> > the
> > > data is modified. Now we use findByPrimaryKey in R to find and read
the
> > data
> > > but this = time it returns the old data not the data just updated.
Then
> > we
> > > put some logging and found that ejbLoad is not called during = second
> > > invocation. I think that if we give commit-option as C means that
> > ejbLoad
> > is
> > > = supposed to be called before every business method invocation which
> > > includes ejbFindByPrimarykey = also.
> > >
> > > Is there any other setting which can make the entity beans' ejbLoad =
> > called
> > > whenever ejbFindByPrimaryKey is called.
> > >
> > >
> >
> >
> >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
> --__--__--
>
> Message: 8
> From: "Michael Jara" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] JBoss/JAAS - changing credential (password) with
> FORM based authentication.
> Date: Thu, 19 Jul 2001 20:20:01 -0600
> Reply-To: [EMAIL PROTECTED]
>
> I haven't dealt with HTTP authentication, so I'm not sure if there are
any
> problems with that. But if you are using the DatabaseServerLoginModule,
the
> reason is probably that it caches userIDs and passwords. It's been a
while
> since I've looked at the code, but it might be reading the user ID + new
> password out of the database when it can't authenticate via the old ones.
>
> At any rate, the old password should stop working within 30 minutes, which
> is the default cache time. As far as I can tell, the only way to change
the
> cache time is to implement your own cache policy and write your own MBean
to
> bind it to the appropriate place in JNDI on startup. (Don't ask me how to
> do that last thing, I'm just regurgitating what I read somewhere. :)
>
> If anybody has a great solution to this problem, I'd be interested to hear
> about it as well!
>
> Mike
>
> ----- Original Message -----
> From: "Shamis, Leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 19, 2001 7:01 PM
> Subject: [JBoss-user] JBoss/JAAS - changing credential (password) with
FORM
> based authentication.
>
>
> > Hello,
> >
> > I work with JBoss-2.2.2_Tomcat-3.2.2 and J2SE 1.3.1, Windows NT 4 (SP6).
> > All my Entity EJB's are CMP.
> >
> > I've implemented JAAS Based Security with FORM based authentication that
> > uses a JDBC based LoginModule defined in auth.conf.
> >
> > User logs in with his "username" and password "XXXXXX" (using logon.jsp,
> see
> > below). If the parameters are correct, the user is authenticated and
> > authorized.
> > User can then access protected resources.
> >
> > I tried to introduce a "My Details" form where user can change the
> password.
> > After populating password and hitting Submit the password is stored in
the
> > DB.
> > User then logs out by hitting Logoff, and is forwarder to logoff.jsp:
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --
> > <%@ page import="web.BeanManager" %>
> > <%
> > request.getSession().invalidate();
> > HttpSession newSession = request.getSession(true);
> > %>
> > <center>
> > <h3>Thank you for participating in our Competition</h3>
> > <h3><a href="<%=request.getContextPath()%>/main">Logon</a>
> > </center>
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --
> >
> > By hitting Logon again, user is forwarded to "/main" and logon.jsp
appears
> > to request user to authenticate himself (populate username and
password):
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --
> > <center>
> > <h3><p>Please enter your username and password and click Submit.</h3>
> > <br><br><form action="j_security_check" method=post>
> > <table>
> > <tr>
> > <td align="center" >
> > <table border="0">
> > <tr>
> > <td><b>Username:</b></td>
> > <td>
> > <input type="text" size="15" name="j_username">
> > </td>
> > </tr>
> > <tr>
> > <td><b>Password:</b></td>
> > <td>
> > <input type="password" size="15" name="j_password">
> > </td>
> > </tr>
> > <tr>
> > <td></td>
> > <td align="right">
> > <input type="submit" value="Submit">
> > </td>
> > </tr>
> > <tr>
> > <td><br></td>
> > </tr>
> > </table>
> > </td>
> > </tr>
> > </table>
> > </form>
> > </center>
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --
> >
> > So far everything works fine.
> >
> > Now the problem:
> >
> > User can still use his PREVIOUS password to login to application !!!
> >
> > Is it because I use CMP Entity EJB to update the user's password?
> > Should I destroy some sort of context to force new password to become
> > active?
> >
> > Again, password is updated in DB to new password, but user can still log
> in
> > with the old one !!!
> >
> > You help will be much appreciated.
> >
> > Best Regards,
> >
> > Leonid Shamis
> > --------------------
> > Directory Technology Pty. Ltd.
> > Team Leader - Publishing On-Line System
> >
> > Phone: +61 3 9856 5352
> > Fax: +61 3 9856 5000
> > E-Mail: mailto:[EMAIL PROTECTED]
> >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user