Re: Standalone OpenEJB application example

2014-05-04 Thread Radhakrishna Kalyan
Hi Andy, Thank you for the comments. I tried the way you mentioned. I used 'openejb-standalone' instead of 'openejb-cxf-rs' But then I didn't able to access my REST resources after the application has started. Am I doing anything wrong? On Fri, May 2, 2014 at 12:27 PM, Andy Gumbrecht

Re: Standalone OpenEJB application example

2014-05-04 Thread Andy Gumbrecht
I'm mobile right now so not able to dig in, but it'll be a library/service issue. You will still require the cxf libs etc. there is a way using maven-dependency-plugin goal to write all the libs a project requires to a directory. Run that on your standalone project and see what might be missing

Re: Standalone OpenEJB application example

2014-05-04 Thread Nrkkalyan
Hi If i use cxf libs then it works as expected. Regards /Kalyan 0733312584 PS: May have typos due to using mobile On 4 maj 2014, at 13:14, Andy Gumbrecht agumbre...@tomitribe.com wrote: I'm mobile right now so not able to dig in, but it'll be a library/service issue. You will still

Re: TomEE and CDI

2014-05-04 Thread Romain Manni-Bucau
hi do you have a beans.xml (even empty) in WEB-INF? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-05-04 11:53 GMT+02:00 john77eipe john77e...@gmail.com: I'm a start

Re: TomEE and CDI

2014-05-04 Thread john77eipe
No. What should the configuration be? Regards, John Eipe “The Roots of Violence: Wealth without work, Pleasure without conscience, Knowledge without character, Commerce without morality, Science without humanity, Worship without sacrifice, Politics without principles” - Mahatma Gandhi --

Re: TomEE and CDI

2014-05-04 Thread Romain Manni-Bucau
just put an empty file in WEB-INF called beans.xml or https://github.com/rmannibucau/JeBlog/blob/master/src/main/webapp/WEB-INF/beans.xml if you want the xsd Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github:

Re: TomEE and CDI

2014-05-04 Thread John D. Ament
Hi, Actually when you directly instantiate a class, you bypass CDI. In order to use CDI, your servlet needs this: @Inject private Exam exam; Within the class itself. John On Sun, May 4, 2014 at 5:53 AM, john77eipe john77e...@gmail.com wrote: I'm a start in CDI. To test CDI. I created 2