John,
I'm excellent....thanks. You?
Yes, this seems more like a question for weld/hibernate, than
resteasy...but I thought to start at the top :)
Maybe I misunderstand injection, within the jax-rs environment, or in
general. I'm not sure which component drives the initialization of the
validator, I guess its weld. On the other hand, if I have a faulty
understanding of jax-rs integration with cdi, I could be inadvertently
causing multiple initializations.
Thanks for the response. I posted a similar question to weld after you
implicitly confirmed my code is not at fault.
John
On Fri, Dec 20, 2013 at 6:50 PM, John D. Ament <john.d.am...@gmail.com>wrote:
> Hey John,
>
> How are you?
>
> It seems like your issue is more Hibernate Validator related. What
> version are you using? I don't see that message on the 4.3 branch or
> the 4.1 branch.
>
> - John
>
> On Fri, Dec 20, 2013 at 5:53 PM, John Franey <jjfra...@gmail.com> wrote:
> > Hi,
> >
> > I have a resource that injects the validator, and the rest method invokes
> > the validator. On every request, I see these entries in the log. That
> is
> > 'Parsing XML based configuration by 4 on every request. Is that
> reasonable?
> > If not, how do I workaround?
> >
> > 17:38:14,022 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000007: META-INF/validation.xml
> found.
> > Parsing XML based configurati
> > on.
> > 17:38:14,027 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000003: Using
> > org.jboss.seam.validation.InjectingConstraintValidator
> > Factory as constraint factory.
> > 17:38:14,046 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000007: META-INF/validation.xml
> found.
> > Parsing XML based configurati
> > on.
> > 17:38:14,051 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000003: Using
> > org.jboss.seam.validation.InjectingConstraintValidator
> > Factory as constraint factory.
> > 17:38:14,068 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000007: META-INF/validation.xml
> found.
> > Parsing XML based configurati
> > on.
> > 17:38:14,073 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000003: Using
> > org.jboss.seam.validation.InjectingConstraintValidator
> > Factory as constraint factory.
> > 17:38:14,093 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000007: META-INF/validation.xml
> found.
> > Parsing XML based configuration.
> > 17:38:14,099 INFO
> > [org.hibernate.validator.internal.xml.ValidationXmlParser]
> > (http-localhost/127.0.0.1:8080-1) HV000003: Using
> > org.jboss.seam.validation.InjectingConstraintValidatorFactory as
> constraint
> > factory.
> >
> >
> >
> > This is a simplification of my code:
> >
> > @Path(....)
> > public class MyResource {
> >
> > @Inject
> > private Validator validator;
> >
> > @PUT
> > public create(MyObject myObject) {
> > validator.validate(myObject);
> > }
> > }
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> > Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Resteasy-users mailing list
> > Resteasy-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/resteasy-users
> >
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users