[jboss-user] [Microcontainer] - Install from Annotations

gurkanerdogdu do-not-reply at jboss.com
Tue Jun 23 08:27:50 EDT 2009


Hi;
I am trying to install bean into kernel via bean class annotations. I wrote the following code
BeanMetaData meta = AnnotationToBeanMetaDataFactory.createBeanMetaData(Person.class);
  | KernelControllerContext context = getKernel().getController().install(meta);
  | 

I am getting exception with "Null name".

But if I set meta.setName(name), no exception.
Actually, Person class is annotated with @Bean(name="name"), why it throws Exception?

Thanks;

Gurkan

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

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



More information about the jboss-user mailing list