> You are right, I just didn't understand what this container is for. 

> I thought it starts some Web
> server listening on a tcp port ...

Apache OpenWebBeans is the CDI container used in TomEE.
It basically provides all the handling around @Inject, @RequestScoped, 
@SessionScoped, interceptors, decorators, etc. 


If you deploy a Spring application then you don't need it (Spring core provides 
something similar).
In any other case it's really nice to use.


A looong time ago Pete and I wrote an article about the basics over here:
https://jaxenter.com/tutorial-introduction-to-cdi-contexts-and-dependency-injection-for-java-ee-jsr-299-104536.html

That should get you started.


LieGrue,
strub



On Saturday, 10 September 2016, 22:58, Marcel Ruff <[email protected]> wrote:
>
>
>Am 24.08.2016 um 14:47 schrieb Romain Manni-Bucau:
>> Hi
>>
>> add a META-INF/scan.xml (assuming it is not a webapp but a flat classpath 
>> deployment) without
>> anything listed inside or a META-INF/application.properties with 
>> openejb.cdi.activated=false
>> should work as well.
>>
>> Just curiosity: why do you want to switch it off? it shouldn't make you 
>> saving much time since
>> scanning is shared accross the whole server and is not OWB specific (or do 
>> you want to gain these
>> 100ms?).
>You are right, I just didn't understand what this container is for. I thought 
>it starts some Web
>server listening on a tcp port ...
>
>Thank you
>Marcel
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog 
>> <https://blog-rmannibucau.rhcloud.com> |
>> Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github 
>> <https://github.com/rmannibucau> |
>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber 
>> <http://www.tomitribe.com> |
>> JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com>
>>
>> 2016-08-24 14:44 GMT+02:00 Marcel Ruff <[email protected] 
>> <mailto:[email protected]>>:
>
>>
>>     Hi,
>>
>>     I wonder how to disable OpenWebBeans as  I don't need it.
>>
>>     I run openEJB core 7.0.1 and hibernate-5.2.1 in a Java SE 8 environment.
>>
>>     On startup I get:
>>
>>     OpenWebBeans Container is starting...
>>     org.apache.webbeans.plugins.PluginLoader startUp: Adding 
>> OpenWebBeansPlugin : [CdiPlugin]
>>     org.apache.webbeans.config.BeansDeployer validateInjectionPoints: All 
>> injection points were
>>     validated successfully.
>>     OpenWebBeans Container has started, it took 112 ms
>>
>>     How can I switch this off?
>>
>>     Thanks
>>     Marcel
>>
>>
>
>
>
>

Reply via email to