FYI https://issues.apache.org/jira/browse/TOMEE-1295


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-13 23:43 GMT+02:00 mauro2java2011 <[email protected]>:
> standalone significant for use only   with Jest servlet without another
> servlet . It is specificated the name of unit persistence into web.xml.
>
> The emf is instanciated from Jest servlet and not  detected from another
> servlet.
> So finally i you ask: i  set
> openjpa.EntityManagerFactoryPool=true in conf/system.properties ??
> or also with a ContextListener so it is set up at context start?
>
>
>
> 2014-08-13 21:53 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
> [email protected]>:
>
>> 2014-08-13 20:06 GMT+02:00 mauro2java2011 <[hidden email]
>> <http://user/SendEmail.jtp?type=node&node=4671118&i=0>>:
>> > But if i use the second solution i ask:
>> > If i inject a entitymanagerfactory then  is pooled ? Or i have to write
>> a
>> > method producer cdi for get thr entitymanagetfactory pooled?
>>
>> No you need to set *programmatically* this property.
>>
>> >
>> > And if i use the sokution 1  whst it is the dtandalond init parameter
>> ?77
>>
>> Sorry I don't parse it fully. Think the answer is: standalone means
>> reuse existing entity manager and don't create another one.
>>
>> > Il 13/ago/2014 17:27 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671118&i=1>>
>> ha scritto:
>> >
>> >> Hi
>> >>
>> >> I guess you have no exception?
>> >>
>> >> If so try to put
>> >>
>> >> openjpa.EntityManagerFactoryPool=true in conf/system.properties
>> >>
>> >> Also set "standalone" init parameter of the jest servlet to true.
>> >>
>> >>
>> >> An alternative is to extend jest servlet to set the entity manager
>> >> factory using an injected one.
>> >>
>> >>
>> >>
>> >> Romain Manni-Bucau
>> >> Twitter: @rmannibucau
>> >> Blog: http://rmannibucau.wordpress.com/
>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> Github: https://github.com/rmannibucau
>> >>
>> >>
>> >> 2014-08-12 17:10 GMT+02:00 mauro2java2011 <[hidden email]
>> >> <http://user/SendEmail.jtp?type=node&node=4671102&i=0>>:
>> >>
>> >> > hi all .
>> >> > I have tried to use JEST on tomee.
>> >> > But it not work .
>> >> >  ihave tried both to inject ENtityMAangerFactory and to create it
>> form
>> >> > PErsistence.class.
>> >> > But not work .
>> >> > From the examples of OpenJPA it is set the
>> >> >
>> >> > but not work .
>> >> > go at :  http://openjpa.apache.org/jest-examples.html
>> >> > <http://openjpa.apache.org/jest-examples.html>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/JEST-on-TOMEE-not-Work-tp4671016.html
>> >> > Sent from the TomEE Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ------------------------------
>> >>  If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >>
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/JEST-on-TOMEE-not-Work-tp4671016p4671102.html
>> >>  To unsubscribe from JEST on TOMEE not Work, click here
>> >> <
>>
>> >> .
>> >> NAML
>> >> <
>> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> >>
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/JEST-on-TOMEE-not-Work-tp4671016p4671111.html
>>
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://tomee-openejb.979440.n4.nabble.com/JEST-on-TOMEE-not-Work-tp4671016p4671118.html
>>  To unsubscribe from JEST on TOMEE not Work, click here
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671016&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NzEwMTZ8LTExMTcxODc2MjU=>
>> .
>> NAML
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/JEST-on-TOMEE-not-Work-tp4671016p4671128.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to