Re: maximum open cursors exceeded in entity bean

2013-04-03 Thread Romain Manni-Bucau
Hi, should be linked to tomcat-jdbc configuration. Maybe start by adding the property: IgnoreDefaultValues = true It will force tomee to not add some default to the datasource configuration. *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: maximum open cursors exceeded in entity bean

2013-04-03 Thread BKumar
When I add IgnoreDefaultValues = true and remove DataSourceCreator dbcp, the cursor count in Database never comedown until I stop the never. When I use IgnoreDefaultValues = true with DataSourceCreator dbcp , then active count come down process complete. -- View this message in context:

Re: maximum open cursors exceeded in entity bean

2013-04-03 Thread Romain Manni-Bucau
all tomee have it about the config: Resource id=... type=... attribute_name = value /Resource *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-03 Thread Romain Manni-Bucau
yes, the issue is you pass through the interface so the interface doesn't have the interceptor binding i mailed OWB list asking if we should support it providing a patch, waiting for some answers *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: JAX-RS with CDI interceptor IN Tomee

2013-04-03 Thread ZhongGuan
Thanks, And I also find a way to deal with this case. I can change the Bound Type as same as interface in abstractImpl class. So, the signature is same. and interceptor works.. Thank you very much. -- View this message in context:

Re: maximum open cursors exceeded in entity bean

2013-04-03 Thread BKumar
Ok I got you what you are saying.Your help is really awesome . One more thing when I am using dbcp pool then why the cursor count increase in data base abruptly, although it come down when process ends. So, based on this behavior i cannot fix the size of cursor in database because when my

How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread ymaraner
I have an EAR that consists primarily of a number of EJB modules. Now I need to develop a WAR that can be deployed separately from the EAR but references EJBs from within the EAR. Since this makes them separate applications, I know that I need to use remote business interfaces. So, I annotated

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread Romain Manni-Bucau
remote reference are obtained either using a lookup or openejb remote injection feature (see http://tomee.apache.org/ejb-refs.html) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread John D. Ament
Using CDI, you should be able to write an extension that observes BeforeBeanDiscovery to add the annotated types using beanManager.createAnnotatedType(Interface.class) and Impl.class. On Wed, Apr 3, 2013 at 12:56 PM, ymaraner tpha...@gmail.com wrote: Romain Manni-Bucau wrote remote reference

Re: web application not work with db mysql and derby

2013-04-03 Thread John D. Ament
According to your code, line 45 is: out.println( Servlet InserimentoServlet at + request.getContextPath() + ); though it would be easier if you gist'd this since the lines don't necessary match up correctly. But that would imply that the request is null at this time. Can you gist

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread ymaraner
John D. Ament wrote Using CDI, you should be able to write an extension that observes BeforeBeanDiscovery to add the annotated types using beanManager.createAnnotatedType(Interface.class) and Impl.class. Looking at those APIs; it doesn't look like I would get a reference to the Singleton in my

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread John D. Ament
I don't believe that's the EJB. Singleton is still a generic singleton typed object. You could always test this idea out by putting a log statement in the constructor and seeing how many times it gets called. On Wed, Apr 3, 2013 at 1:19 PM, ymaraner tpha...@gmail.com wrote: John D. Ament

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread ymaraner
As it turns out, *it /is/ as simple as I had hoped.* The only thing I was missing was the mappedName=/ServerState/ attribute in my @Singleton annotation. *This is my REST class:* *My Singleton has the following annotations and interfaces: * *And it now works just fine.* Thanks for the

Re: Feedback on TomEE 1.5.1

2013-04-03 Thread Eric Henson
I have found some issues with using CXF on IBM i. It appears that J9 does not supply the com.sun.org.apache... classes in order to consume SOAP services. IBM told me they do not supply any com.sun.* classes. Which jars do I have to include to make this work? Eric Henson Gartman Systems