Hi,
We're using EJB3 SLSB beans as remote delegates for Spring business service Pojo's. We're building a SOA backend service provider, so therefore we don't have any stateful service. For each Spring service bean there is an another EJB3 SLSB implementing same business interface. So relation is one-to-one. But from the instance point of view, situtation is different. EJB container keeps an instance pool for ejb beans, whereas Spring's default behaviour is using singleton. That means, we'll have more than one ejb instance referencing the same spring service singleton instance.
What i'm trying to figure out is, does it make sense to change spring bean scoping to "prototype" to be able to reference separate spring bean instance from each ejb instance? Is there any architectural concern / benefit of this approach? Since all services will be stateless, multi-threading issue should't be a problem. right?
Thanks for any help,


Reply With Quote
