[Objectbridge-developers] Re: A couple of suggestions
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2001-09-18 18:12:43
|
Hi Michael, thanks for your interest and your suggestions! Michal Kleczek wrote: > > Hi, > I downloaded ObjectBridge recently and I really like it; > I just have a couple of suggestions: > 1. Creating db connection > There could be ConnectionFactory interface defined so that I could provide > my own implementation looking for connection using JNDI. > This is quite important for me since I'd like to use OJB in J2EE > environment. I agree this is an important feature. I will make the ConnectionFactory pluggable so that you can implement your JNDI Version. I will include the fix in the next release (i hope to get it out within 1 or 2 weeks). I'm interested in your JNDI based implementation. Would you mind to contribute it ince it is finished? We could include it in the OJB Codebase. > 2. Reflection. > Calls to Field.set() or Field.get() should be encapsulated. > In current version setAccessible(true) is called once during repository file > parsing > - so the field is accessible everywhere (not only in OJB)!!!. > Additionally call to setAccesible() is not wrapped > by AccessController.doPrivileged() > so the whole application using OJB has to have "suppressAccessCheck" > privilege. Yes, my hack won't behave in controlled environments! Do you have sample code or a link to some information how to do these things properly? Of course I want to integrate OJB smoothly in J2EE environments. > 3. For convinience the virtual proxy architecture could be changed so that > it uses JDK 1.3 dynamic proxies. > I have been thinking of this too, but there are so many priority 1 topics on my list, that it will take some time... a question: Will you use EntityBeans? If so, did you have a look at the OJB EJB sample in package test.ojb.ejb ? It contains my suggestion for using OJB for BMP EntityBeans. best regards, --Thomas > Michal Kleczek > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com |