kink80 / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Cannot have multiple ODataProducer Impl instances in a single JVM #248

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The OData4J gets the Producer object using the Producer Resolver as follows:
ODataProducer producer = producerResolver.getContext(ODataProducer.class);

Here, the ProducerResolver object is nothing but the class defined by 
ODataApplication.
server.setODataApplication(myODataApp.class);

This model works only if I have different Class Names for different 
ODataProducers in my JVM.

If I have a generic ODataProducer implementation and I want to create multiple 
instances of it to start multiple OData endpoints, I cannot use Odata4J.

Is my understanding correct? If so, are there are plans of supporting such 
scenarios in odata4j? If not, how to achieve it using the existing odata4j 
implementation?

Original issue reported on code.google.com by gvnan...@gmail.com on 5 Mar 2013 at 9:49