[Design the new POJO MicroContainer] - Adding annotations to MDR via bean metadata
by kabir.khan@jboss.com
I am creating a bean metadata with some annotations added
| AbstractBeanMetaData metaData = new AbstractBeanMetaData("McBean", McBeanAnnotationsFromMetaData.class.getName());
| metaData.setAccessMode(BeanAccessMode.ALL);
|
| AbstractConstructorMetaData ctor = new AbstractConstructorMetaData();
| AnnotationMetaData initializer = new AbstractAnnotationMetaData("@" + Initializer.class.getName());
| ctor.setAnnotations(Collections.singleton(initializer));
| metaData.setConstructor(ctor);
|
I create a KCC from that and deploy it. When I read the metadata from my describe action there are no annotations in the metadata:
| private AnnotatedType<T> createMdrDecoratedAnnotatedType(Class<T> clazz)
| {
| AnnotatedType<T> type = context.getManager().createAnnotatedType(clazz);
|
| KernelController controller = (KernelController)context.getController();
| Kernel kernel = controller.getKernel();
| KernelMetaDataRepository repository = kernel.getMetaDataRepository();
| MetaData metaData = repository.getMetaData(context);
|
| return MDRAnnotatedTypeFactory.getInstance().getAnnotatedType(type, metaData);
| }
|
|
Am I adding them wrong?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250172#4250172
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250172
16 years, 7 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Bridge Leaking
by jmesnil
"clebert.suconic(a)jboss.com" wrote : From what I saw from a few tests I did now, this leak / Bridgeimpl.stop hanging would also eventually happen without the latest changes from 7763.
|
| However after 7763 the Bridge.stop is always hanging, making the testsuite to timeout.
|
>From the IRC discussion this morning:
| AndyTaylor: jmesnil: BridgeImpl stop method
| [10:48] AndyTaylor: jmesnil: you can see that we first closte the session factory i.e. csf.close();
| [10:48] AndyTaylor: jmesnil: then we execute a stop runnable
| [10:48] AndyTaylor: jmesnil: if you look at stopRunnable it calls session.close
| [10:49] AndyTaylor: jmesnil: this hangs on sendBlocking obviously because the session factpry has been closed
| [10:49] AndyTaylor: jmesnil: if i remove the tests don't hang and pass (apart from one)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250098#4250098
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250098
16 years, 7 months