I try create one instance of my custom application which extend
javax.ws.rs.core.Application, but when it begin run my custom application
created at multiple times.

@ApplicationPath("services")
public class AcceptorApplication extends Application {
   ...
}

Log output:
2016-08-18T17:30:31,837 [INFO ] (AcceptorApplication.java:51) - Acceptor
application created
2016-08-18T17:30:31,860 [INFO ] (AcceptorApplication.java:51) - Acceptor
application created
2016-08-18T17:30:32,076 [DEBUG] (AcceptorInitializer.java:30) - Acceptor
initializer created
2016-08-18T17:30:32,418 [DEBUG] (AcceptorContextConfig.java:33) - Acceptor
context config created
2016-08-18T17:30:32,618 [INFO ] (AcceptorApplication.java:51) - Acceptor
application created

Such behavior doesn't have place in GlassFish server. I need only one
instance of my extension. 



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/JAX-RS-Multiple-Application-instance-when-application-started-tp4679798.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Reply via email to