score:0
you are creating a new spring context on every instance creation of your servicefacade, try either injecting the context or creating a singleton. i don't believe jax-rs or resteasy gurantees only a single instance of a annotated class is created.
also, i am just getting up to speed on scala myself, but should you not place the annotations on the implementation and not the trait?
Source: stackoverflow.com
Related Query
- Config RestEasy service using Spring
- How to get a collection out of Spring config using ApplicationContext
- Image gives NULL when passing from service to controller using MultipartFile in spring
- How do I autowire Spring config in a Executable Jar using Scala?
- How to implement a REST Web Service using Akka?
- Overriding multiple config values in Typesafe config when using an uberjar to deploy
- How to separate out parsing from validation in case of versioned config using scala?
- Using Spring as a dependency injection framework with play 2.4.x?
- Using Play 2.0 to create a web service
- Using Spring @Autowired with Scala Trait
- Using typesafe's config to manage my database connection
- config directory when using sbt-native-packager
- Using typesafe config with Spark on Yarn
- Unit-testing Spring applications using Scala's Specs
- Spring Data Neo4j in Play 2.x app using Scala
- Using a global object or parameters to pass config data, which one is better in Scala?
- In spark code manage conf.setMaster() using a config file to autoset local or yarn-cluster
- Using @Autowired of spring with scala
- merging multiple levels of configuration using typesafe/akka config
- Using Scala classes as DTOs in Spring MVC
- Spark Kubernetes - FileNotFoundException when copying config files from driver to executors using --files or spark.files
- scala-pact provider verification using specific service url
- Using Akka to seperate a Lucene service form a website
- Can we implement a REST service using Akka and Camel Integration?
- Resolve a standalone string/file using typesafe config
- Would the basic design of a service using a repository and interfaces be the same in Scala?
- Using @RelatedTo with Spring Data Neo4j and Scala - annotation arg is Scala reserved word
- Merge array values in configuration using withFallBack in typesafe config
- Unable to compile spring boot project with java and scala using maven
- Consuming a service using WS in Play
More Query from same tag
- "build.js does not exist" after upgrading to Play 2.3 (requireJsShim)
- Unable to remove empty strings in scala list
- Spark/Scala repeated calls to withColumn() using the same function on multiple columns
- How do you test the read-side processor in Lagom?
- How to make the map returned by GroupBy mutable?
- Why does SimpleDateFormat parse incorrect date?
- Java/Scala Kafka Producer does not send message to topic
- How can I use Spark to check if two HDFS datasets are equal?
- java.lang.StackOverflowError when trying to optimize Java+Scala with ProGuard
- How to list paths through DAG in Scala
- Why is this code throwing a null pointer exception
- Unexpected Error: Reassignment to val
- Permutations with for comprehensons
- Custom client/server protocol in Scala
- Spark actorStream ClassNotFoundException
- Generate a JAR from one Scala source file
- mongodb distinct values of a row in a generic fashion
- Iterate over fields in typesafe config
- foo: { $gt: "A", $lt: "Z"}; How do I write this in the scala driver?
- How to write class and tableclass mapping for slick2 instead of using case class?
- Scala Compiler throws: java.lang.IllegalAccessError: Class 'scala.tools.nsc.transform.patmat.PatternExpansion$ExtractorAlignment'
- Translating generic wildcards from Java to Scala
- How to safe interpolate strings in slick
- Scala class with covariance in derivable type of parameter
- Compare enumerable values that can't be sorted
- Best Scala collection type for vectorized numerical computing
- How to compare floating point values in Scala?
- Fastest way to lemmatize sentences
- Scala + Gradle + AndroidStudio 0.8.+
- Rewrite local var assignment in