Topic
  • 3 replies
  • Latest Post - ‏2013-03-14T23:54:57Z by SystemAdmin
SystemAdmin
SystemAdmin
590 Posts

Pinned topic Using CDI in a websphere shared library

‏2013-03-05T07:05:23Z |
We use a shared library defined in the websphere admin console to share classes between several applications. I was wondering if it is possible to use CDI in these classes? If so do I just need to put the beans.xml in the jar that is in the shared library, or are there further steps?

Note: I can't move away from using a shared library, as this would be too much refactoring work.
  • bergmark
    bergmark
    42 Posts

    Re: Using CDI in a websphere shared library

    ‏2013-03-05T15:04:02Z  
    Unfortunately the CDI container does not scan shared libraries for CDI managed beans.
  • SystemAdmin
    SystemAdmin
    590 Posts

    Re: Using CDI in a websphere shared library

    ‏2013-03-08T22:05:03Z  
    • bergmark
    • ‏2013-03-05T15:04:02Z
    Unfortunately the CDI container does not scan shared libraries for CDI managed beans.
    That's disappointing, thanks for the reply though.
  • SystemAdmin
    SystemAdmin
    590 Posts

    Re: Using CDI in a websphere shared library

    ‏2013-03-14T23:54:57Z  
    • bergmark
    • ‏2013-03-05T15:04:02Z
    Unfortunately the CDI container does not scan shared libraries for CDI managed beans.
    Is this a limitation of the Liberty profile, or is this limitation present in traditional WAS too?