Hi,

I am attampting to decouple my business logic from my persistence layer 
(Cayenne). I do not want to code Cayenne modeller classes into my business 
layer. The business layer should deal with interfaces and the database access 
taken care of by services in a container, a bit like EJB!

Anyway I am using HiveMind and Cayenne.

I'd like to make Cayenne pick up classes that have been RT changed using 
javassist (very nice thankyou!) to implement the interface of the business 
layer. I wrote the code and write the class using writeFile on the new Ct 
class, which seems to work. I can't find where the class goes though, and 
although the same class loader is used to fudge the class as the one which runs 
Cayenne, the modified class is not picked up! I know all my runtime changes 
before I load the classes. The notes seem to infer that writeFile is all I need 
to do.

So where is my new class and how can I force it to be loaded? I don't like JDA 
BTW. It's no use to instantiate the modified classes manually from the pool, as 
this also needs to happen in Cayenne which I cannot modify.

I thought of just copying bean properties using proxy classes but then again 
the same problem. So I really do need a way to make sure cayenne loads up my 
version of the class. t's possible the class loader needs a new path adding to 
it?

What do you think? I'm running with the latest Tomcat. It's threads kick off 
the services in HiveMind.

TIA





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908721#3908721

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908721


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to