[Microcontainer] - Re: Kernel/KernelController reference under JBossAS
by alesj
"obrien" wrote :
| as the Microcontainer is not singleton by its design, what is the recommended way how to retrieve reference of Kernel (or KernelContext) running within JBossAS?
|
Have a look at what I'm doing with MC/AS + WebBeans integration:
- http://anonsvn.jboss.org/repos/jbossas/projects/webbeans-ri-int/trunk/
In this case it's part of ServletContext's attributes.
If you have services, then you can simply inject it - see KernelConstants for the MC core bean names.
"obrien" wrote : What functionality is AS adding on top of Microcontainer itself?
|
Mostly it's the work around ProfileService (PS) - bootstrap, actual runtime managed objects handling, hot deployment, ...
And the legacy jmx handling is being done as part of AS code - but this can be easily stripped out (see my MC article on DZone).
And of course there is plenty of custom AS deployers that are too specific to be part of MC,
but they build on the helper deployers we've introduced in the MC itself.
"obrien" wrote :
| Is there any documentation related to it?
|
I know Scott has being working on the AS docs,
and since PS is mostly his work (and now Emanuel's) I'm sure he did touch on the subject.
And I think there are some wiki pages about the PS design, ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200262#4200262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200262
17 years, 3 months
[EJB 3.0] - Re: $Proxy200 error & Invalid (i.e. remote) invocation of lo
by ezanih
The error message on my Eclipse console stubbornly shows that I am still using Hibernate Annotations 2.1.GA despite me adding the latest versions of HA to the classpath. I have also tried adding them to the lib folder of server\default. That I guess is the source of my error but how do I get Eclipse to recognise that I'm using a later version of HA than 2.1.GA ???
Eclipse Console error message:
| - Hibernate Annotations 3.2.1.GA
| Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment <clinit>
| INFO: Hibernate 3.3.0.SP1
| Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment <clinit>
| INFO: hibernate.properties not found
| Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment buildBytecodeProvider
| INFO: Bytecode provider name : javassist
| Jan 8, 2009 3:08:51 PM org.hibernate.cfg.Environment <clinit>
| INFO: using JDK 1.4 java.sql.Timestamp handling
| Jan 8, 2009 3:08:51 PM org.hibernate.ejb.Version <clinit>
| INFO: Hibernate EntityManager 3.4.0.GA
| Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
| at org.hibernate.ejb.Ejb3Configuration.setProperty(Ejb3Configuration.java:535)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:165)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
| at BidClient.main(BidClient.java:53)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200261#4200261
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200261
17 years, 3 months