[Design of AOP on JBoss (Aspects/JBoss)] - ClassLoading Module usage
by kabir.khan@jboss.com
As discussed in Neuchatel last week, I will make the first iteration of the scoped aop stuff work on the new classloaders, using the Module hack for now, and upgrade to use metadata later.
But when I deploy a sar with the following jboss-service.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <loader-repository>
| aop.loading:loader=scope1
| </loader-repository>
| <mbean code="org.jboss.test.aop.scoped.ScopedTester" name="jboss.aop:name=ScopedTester1">
| <attribute name="ExpectedInterceptorValue">11</attribute>
| <attribute name="ExpectedAspectValue">21</attribute>
| <attribute name="MetadataSuffix">1</attribute>
| </mbean>
| </server>
|
I don't seem to get any special information from the module?
| private ClassLoader getScopedClassLoader(VFSDeploymentUnit unit)
| {
| ...
| Module module = unit.getAttachment(Module.class);
| ...
| String domainName = module.getDomainName();
| ClassLoaderMetaData cmd = module.getMetadata();
| // boolean parentDelegation = cmd.isJ2seClassLoadingCompliance();
|
| System.out.println("****** DomainName: " + domainName + " parentDomain: " + module.getParentDomain());
| }
|
just gives
| [STDOUT] ****** DomainName: <DEFAULT> parentDomain: null
|
Should I be using something other than the Domain/parentDomain, or is this broken somehow in ASS trunk?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090369#4090369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090369
16 years, 7 months
[Design of JBossCache] - Re: Removing classloader issues for PojoCache
by jason.greene@jboss.com
Ah, so I am not alone here :)
Ok so, off the top of my head, I can see 3 possible core cache solutions to this problem.
1) Have an option that enables lazy wrapper style serialization (like you are suggesting) using the TCL. The reason this should be optional is that any wrapper serialization usage has greater cost than a region CL (double buffering + additional synchronization).
2) Add a serialization manager which allows app registered callbacks when deserializing/serializing an Object. This is essentially the reverse of a region CL. The callback would be passed various node information that could be used to locate the correct deployment CL.
3) Both 1 + 2. A registered serialization callback could decide to use a wrapper type, which would be deserialized and automatically unwrapped by the cache layer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090357#4090357
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090357
16 years, 7 months
[Design of EJB 3.0] - Re: EJBTHREE-786
by wolfc
There are a couple of things tied together:
- getInvokedBusinessInterface returns an interface based on method signature
- multiple local business interfaces doesn't work properly
- EJB 3 4.7.1: generated classes
- EJBTHREE-786: remove method
If we take 4.7.1 literaly then we must have a proxy class for each interface that the bean has. I don't know if TCK demands such a thing. But if we want to know for sure which interface was invoked we need to have different proxies and thus different bindings. This would also resolve EJBTHREE-786.
Note that in a lot of code the distinction between a local business interface and a local 2.1 interface isn't properly made.
The question is does it eliminate the possiblity for a combined binding (issue 540)?
Probably not, but it would make things more complicated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090344#4090344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090344
16 years, 7 months