<div dir="ltr">Jan, James,<div><br></div><div>Thanks for your help, that looks promising. Mincong, the GSoC student, will give your proposals a try tonight.</div><div><br></div><div>--Gunnar</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-18 18:32 GMT+02:00 James Perkins <span dir="ltr"><<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">You might need to implement an SPI [1] that would expose the job XML. WildFly will look for SPI's and use those to validate and get the job XML data.</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1]: <a href="https://github.com/jberet/jsr352/blob/master/jberet-core/src/main/java/org/jberet/spi/JobXmlResolver.java" target="_blank">https://github.com/<wbr>jberet/jsr352/blob/master/<wbr>jberet-core/src/main/java/org/<wbr>jberet/spi/JobXmlResolver.java</a></div><div class="gmail_extra">[2]: <a href="https://github.com/wildfly/wildfly/blob/master/batch/extension-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/WildFlyJobXmlResolver.java#L154-L160" target="_blank">https://github.com/<wbr>wildfly/wildfly/blob/master/<wbr>batch/extension-jberet/src/<wbr>main/java/org/wildfly/<wbr>extension/batch/jberet/<wbr>deployment/<wbr>WildFlyJobXmlResolver.java#<wbr>L154-L160</a></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Aug 18, 2016 at 12:59 AM, Gunnar Morling <span dir="ltr"><<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<br><br>Is there any example which shows how to deploy a JSR 352 batch job via a module added to WildFly rather than through a deployed application? This batch job should then be usable from applications which declare a dependency to that module.<br><br>Trying this, I'm getting an error saying that the batch job's XML descriptor cannot be found [1]. I.e. the module with the batch job is visible to the deployed application (as the MassIndexer class can be accessed), but then JBeret cannot "see" the job XML descriptor within that module.<div><br></div><div>Is there anything I can configure in the module.xml of the batch job's module for exposing its contents to JBeret?<br><br>The use case is Hibernate Search where a GSoC student is working on a JSR 352 batch job for re-indexing entities. This job eventually should be part of Hibernate Search's modules, allowing users to run it if Hibernate Search is enabled for their application.</div><div><br></div><div>Thanks for any pointers,</div><div><br></div><div>--Gunnar<div><br></div><div>[1] Exception: javax.batch.operations.JobStar<wbr>tException: JBERET000601: Failed to get job xml file for job mass-index.xml</div><div> at org.jberet.creation.ArchiveXml<wbr>Loader.getJobXml(ArchiveXmlLoa<wbr>der.java:129)<br> at org.jberet.creation.ArchiveXml<wbr>Loader.loadJobXml(ArchiveXmlLo<wbr>ader.java:91)<br> at org.jberet.operations.JobOpera<wbr>torImpl.start(JobOperatorImpl.<wbr>java:102)<br> at <a href="http://org.hibernate.search.jsr352.Ma">org.hibernate.search.jsr352.Ma</a><wbr>ssIndexer.start(MassIndexer.ja<wbr>va:90)<br></div><div> at <a href="http://org.hibernate.search.jsr352.Pe">org.hibernate.search.jsr352.Pe</a><wbr>rformanceIT.testNewMassIndexer<wbr>(PerformanceIT.java:167)<br></div><div> ...</div></div></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/wildfly-dev</a><br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br></div>