> -----Original Message----- > From: Juan Pablo Lorandi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 28, 2002 2:43 PM > To: [EMAIL PROTECTED] > Subject: Re: OC4J: Writing class derived from DataSourceUserManager > > I never used DataSourceUserManager, because my PoCs proved it didn't > work well, as it doesn't allow complete flexibility in creating roles > after deployment. > > Anyway, for free, here's a tip: implement your UserManager > from scratch. > It took me < 20 man hours, and I had lots of figuring out to do the > first time I did it; it's soooooooooo easy, you'll tackle it > in no time. > But don't extend any class, not even AbstractUserManager...
Ok, I've started down this path. I have a UserManager implementation with just stubs, at this point. I still may have some configuration problem, which may explain the symptoms I'm seeing with this class. I've put breakpoints in all of the methods of the new class, so I can see when the framework calls it. When the server is just starting up, the "setParent()" and "init()" methods get called very close together. Then, the server goes through other startup work, like creating any necessary tables. Then, I get a call to the "isUpdated()" method, which is apparently called just about once a second, continuously. If I return "true", then the "update()" method is immediately called. I suppose a better name for this method would be "needUpdate()". At this point, the server is started and waiting for something to do. So, I request my protected URL from a browser. Right after this, I hit a breakpoint in my Struts Action code for the given URL, which indicates to me that it didn't try to forward to the login page. After it does its work and sets up to forward to the view page, I get a breakpoint in the "getAnonymousUser()" method. After I return null from that, the browser gets a ServletException with a root cause message of "User was null" (I'm not sure where that message is coming from). It never called any of the "getUser()" methods, or anything else. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
