[JBossCache] - Re: Minimizing POJOCache impact on existing codebases
by gregory.pierce@jboss.com
"ben.wang(a)jboss.com" wrote : Greg,
|
| To answer your questions regarding load-time instrumentation.
|
| 1. You will notice in the examples dir, I have not put any load-time examples there. The main reason actually is that we don't encourage load time option for production usage. This is because, say, 1) run under JBoss AS, it will be very slow to start AS because JBoss Aop/Javaassit need to inspect all of the classes involved, and 2) under other AS envs, no way we can have our own special class loader without servere tinkering.
|
The issue, however, is that there are plenty of people who would want to use JBossCache in a standalone mode and as such not even documenting the option makes things a little bit more painful - especially when you want to compare/compete with a standalone product.
anonymous wrote :
| And honestly, I don't see the downside of using AOPC for production. Do you see one?
|
The ant driven aopc path makes some assumptions about the availability of precompiled class files. If you have an environment where that isn't the case and I have one that isn't even a contrived example as I've written a tool that generates templated classes, and while I can do aopc in the background I really just want to use the 'scripting' environment that created the classes and instrument them as class-load or runtime.
anonymous wrote :
| 2. So like you mentioned, it is good to learn this product using load-time option. I agree. Actually, I use the following Java options to run the unit test inside my IDE:
|
| -Djboss.aop.path=${output}/resources/jboss-aop.xml -javaagent:${lib-50}/jboss-aop-jdk50.jar
|
| So can you possibly contribute an example that runs with load time? :-)
|
I am working on that very thing. Actually putting together a whitepaper that speaks to JBossCache specifically.
anonymous wrote :
| 3. Finally, PojoCache with default configuration property (e.g., LOCAL mode) is simply not interesting. You can't see the fine-grained graph replication at work!
|
| -Ben
|
While its not all that interesting, you have to be able to show people how to walk before they can run. The problem with the current stuff is that we show people EVERYTHING, and the simple cases are simply missing. I want to do this as a progression showing the bare basics of getting started and going from there - assumig that JBossCache is used in a standalone manner.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972747#3972747
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972747
19 years, 7 months
[Installation, Configuration & Deployment] - hot redeploy a single WEB-INF/classes accessed through EJBs
by msprague
I have an extremely large project (thousands of classes) which takes forever (10-20 minutes per cycle on souped up PCs) to compile, package, copy, and deploy
I am trying to set it up so I can change a class and have the appserver redeploy that one class and I am being stopped by something.
here is my ear structure
Domain.ear/
......Domain.jar/
.................META-INF/
.................com/....{SLSB classes and xml/property files}
......META-INF/
......Domain.war/
.................META-INF/
.................WEB-INF/
.........................classes/....{POJOs}
......lib/
fairly straight forward.
I have have sucessfully setup an exploded helloworld.war that does what I want in the place of Domain.war. I access the classes via a two liner jsp page and the changes show up as expected.
My class access goes through my domain SLSB into my domain.war classes. I think this is my problem, but I can't find any posts to tell me what to change so that the app server will use my new class.
Do I have a class loader issue getting in the way on ears that doesn't impact the directly hit wars?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972741#3972741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972741
19 years, 7 months