WebSockets in TomEE

2016-07-01 Thread Martin Funk
Hi, I'm struggling to get an WebSocket running on TomEE. Inspired by a talk on JavaLand 2016 http://javaakademie.de/artikel/video-streaming-javaland2016-prototyp I wanted to get an WebSocket up and running on TomEE. I know they are supported by Tomcat. Running a tomcat 8.5.3 works and the exampl

Re: WebSockets in TomEE

2016-07-02 Thread Martin Funk
bucau> | Tomitriber > <http://www.tomitribe.com> | JavaEE Factory > <https://javaeefactory-rmannibucau.rhcloud.com> > > 2016-07-01 16:42 GMT+02:00 Martin Funk : > > > Hi, > > > > I'm struggling to get an WebSocket running on TomEE. > > > > I

EJB example in YouTube video

2014-01-27 Thread Martin Funk
Hi, I am working my way through the "Apache TomEE: JavaEE 6 Web Profile on Tomcat" video on youtube and I have a question. The EJB annotation example, right around 20 minutes, does that only works when used in a Servlet? So what has to be done to use the annotation in an arbitrary class? For

Re: EJB example in YouTube video

2014-01-27 Thread Martin Funk
managed classes. > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > > 2014-01-27 Martin Funk : >> Hi, >> >> I am worki

Warning: Shameless self-plug!

2014-02-02 Thread Martin Funk
Kicking myself towards learning about TomEE, I came up with a 40 minutes Screencast. There is nothing new in it. It has the very same content as what David showed on his talk at the JAX Conference in Santa Clara in June 2013. It is just in a different Language, as being native German, I chose t

Servlet, CDI, EJB

2014-02-10 Thread Martin Funk
Hi, I have a questions of understanding. As I understand servlets instantiated in an TomEE Server are under control of CDI (if a beans.xml is present) and of EJB. Is that behavior part of the JEE Spec or is that a property of the TomEE Container? I assume the later. Is there a way to configur

Context in a Restful Service

2014-02-19 Thread Martin Funk
Working my way through, "Java Web Services" up and running. On Page 69 i stumble over a @Context Annotation [...] import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import com.fasterxml.jackson.databind.ObjectMapper; @Path("/predict") public cl

Re: Context in a Restful Service

2014-02-19 Thread Martin Funk
I boiled my question down to a tiny Eclipse project containing 4 classes and published that on github. https://github.com/mafulafunk/FooJaxRs Quite happy if someone could put an eye on that. mf Am 19.02.2014 um 18:36 schrieb Martin Funk : > Working my way through, "Java Web Services

Re: Context in a Restful Service

2014-02-20 Thread Martin Funk
in the spec. >> >> >> >> 2014-02-19 18:36 GMT+01:00 Martin Funk : >> >>> Working my way through, "Java Web Services" up and running. >>> >>> >>> On Page 69 i stumble over a @Context Annotation >>>

Re: Context in a Restful Service

2014-02-20 Thread Martin Funk
an-Louis MONTEIRO : >> >> I will fixed that. We forgot that type in @Context injection (bug) >>> >>> JLouis >>> >>> >>> 2014-02-20 16:44 GMT+01:00 Martin Funk : >>> >>> Hi JLouis, >>>> >>>>

Re: Context in a Restful Service

2014-02-20 Thread Martin Funk
works like a charm now :-) Am 20.02.2014 um 19:11 schrieb Thiago Veronezi : > Try skipping the tests. Its much faster (~5 mins?). > > "mvn clean install -DskipTests=true" > > []s, > Thiago. > > > > > On Thu, Feb 20, 2014 at 1:08 PM, Martin Funk

Re: Context in a Restful Service

2014-02-20 Thread Martin Funk
Both, the mvn build with bigger MaxPermGen and without the tests and the Rest Application itself. mf Am 20.02.2014 um 22:27 schrieb Jean-Louis MONTEIRO : > You mean the compilation or the fix :) ? > Le 20 févr. 2014 19:20, "Martin Funk" a écrit : > >> works like a ch

What is the meaning of: javax.ejb.Stateless

2014-03-06 Thread Martin Funk
Hi again, still at a very early stage of conquering the domain of TomEE+. I have a question on javax.ejb.Stateless. In the specs I read that in the area of SOAP based web services, which are implemented by an EJB component the class implementing the endpoint must be annotated @Stateless or @Sin

Re: What is the meaning of: javax.ejb.Stateless

2014-03-06 Thread Martin Funk
safe (pooled) and it allows you to handle > transaction and security as any ejb > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > > 2014-