hi Rainer,

a bundle is not a managed class but you can use deltaspike BeanProvider or
if you use TomEE 7 CDI utility class to get any CDI bean from the bundle.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2016-01-27 11:53 GMT+01:00 Rainer Hochreiter <[email protected]>:

> hi,
>
> i am also interested in loading translations from database for my JSF
> based webapp - but still got it not working - see attached
> DatabaseResourceBundle.java!
>
> Main problem is, that i can't get an EntityManager (neither the normal
> way, nor via @Inject) and this results in a NullPointerException in my
> webapp.
>
> so, i am very interested how you solved this. can you provide your code?
>
> thanks in advance!
>
> regards,
> rainer
>
>

Reply via email to