问题标签 [spring-batch-admin]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
784 浏览

spring-data-jpa - 将spring data jpa与spring batch admin集成时出错

我正在使用带有spring批处理管理的spring data jpa,我配置了application-context.xml和persistance.xml,当我在tomcat中运行它时我得到了这个错误。

0 投票
1 回答
1025 浏览

hibernate - 在 Spring Batch 中启动作业发生 Hibernate 代理错误


您好,我在 Spring 批处理应用程序中遇到休眠错误


根据错误日志,我在抽象作业类(由 Spring Batch 提供)遇到代理错误
我猜由于抽象作业类没有任何非参数构造函数,CGLIB 无法提供任何代理类。
我该如何解决这个问题问题?

我现在正在使用 spring batch admin

0 投票
2 回答
3556 浏览

spring-batch-admin - 如何将 Spring Batch Admin 集成到现有的 Maven 项目中

我想将 spring batch admin 集成到我现有的 maven 项目中。另外我希望只有一个war文件应该生成我现有的maven项目的文件

0 投票
3 回答
9491 浏览

spring - 是否有春季批量“工作”范围?

我只想知道春季批次中是否有“JOB”范围,例如“STEP”范围?如果没有,我们应该开发我们的自定义范围,还是有更好的选择?

提前致谢。

0 投票
3 回答
26747 浏览

java - Spring batch: Writing column names as first line in flat file

I want to create a flat file which has the below format:

As seen, the first line in the flat file are the column names.

How to achieve this through header callback ?

I see that if the input file is of above format, there is an option as below to ignore first line:

Also, this Jira Issue indicates that what I want is implemeted and closed. However, I am unable to find any example for writing first line as column names.

My Item Writer looks as below:

Thanks for reading!

0 投票
3 回答
7975 浏览

java - Spring Batch:针对不同工作的不同工作启动器

我有 2 份不同的工作(实际上更多,但为简单起见假设 2 份)。每个作业都可以与另一个作​​业并行运行,但同一作业的每个实例都应按顺序运行(否则实例将蚕食彼此的资源)。

基本上我希望这些作业中的每一个都有自己的作业实例队列。我想我可以使用两个不同的线程池作业启动器(每个都有 1 个线程)并将作业启动器与每个作业相关联来做到这一点。

从 Spring Batch Admin Web UI 启动作业时,是否有办法做到这一点?

0 投票
1 回答
3518 浏览

spring - 如何将 Spring Batch Admin 与 Spring 3.2 和 @Schedule 注释一起使用?

我将 Spring Batch Admin 集成到我的应用程序中,该应用程序使用 Spring 3.2。

现在我尝试用 注释一个方法@Scheduled并用<task:annotation-driven/>. 当我启动 web 应用程序时,我得到了这个异常:

SimpleJobServiceSpring Batch Admin 在方法上使用了这个注解。

在春季 3.2 中。似乎没有必要将 cglib 放入类路径中,并且 spring-asm 也已过时。spring-asm我从 spring-batch-integration 中排除了依赖项。

我可以在哪里设置proxy-target-class=true(我已经尝试过<tx:annotation-config><aop:config>

如何@Scheduled在我的应用程序中使用?

0 投票
2 回答
1213 浏览

java - Spring Batch 管理控制台 - com.thoughtworks.xstream.mapper.CannotResolveClassException “类:java.util.HashMap”

我已经配置 SpringBatch-Admin-Console 来启动和查看我们在应用程序中使用的作业。

当我从应用程序的控制台启动作业时,作业完成,并且我能够按预期在控制台中查看作业的状态。

但是当我从 SpringBatch 管理控制台启动作业时,作业按预期完成,但是当我尝试在控制台中查看作业的状态时,我收到以下错误消息。

“HTTP 状态 500 - 请求处理失败;嵌套异常是 com.thoughtworks.xstream.converters.ConversionException: id : id : id : id ---- 调试信息 ---- 消息 : id : id 原因异常 : com。 thinkworks.xstream.mapper.CannotResolveClassException 原因消息:id:id 类:java.util.HashMap 所需类型:java.util.HashMap 路径:/map/entry[3]/masterdata.analyzer.metadata.Metadata/hubCodeTables/ masterdata.analyzer.metadata.MHubCodeTable/codeValueMap/entry[7]/id 行号:-1 ----------------------------- ——”

我认为可能会发生异常,因为我的应用程序能够使用java.util.HashmapJAVA_HOME 中的类,而 tomcat 中的 SpringBatch-Admin-War 不能使用相同的类。

所以我什至创建了一个包含所有 Java 类文件(包括java.util.HashMap)的 jar 文件,并包含在这个 SpringBatch-Admin-Console 的 LIB 文件夹中,但我仍然遇到同样的错误。

我还确保我的应用程序中所有必需的 LIB 文件也存在于 SpringBatch-Admin 的 LIB 文件夹中。仍然得到同样的错误。

奇怪的行为是我能够启动该作业,并且如果我从外部启动它,我也能够查看该作业,但只有当我从 SpringBatch-Admin-Console 启动时才会出现此错误。

谁能告诉我为什么会发生这个错误?

0 投票
1 回答
1859 浏览

java - 如何从其他应用程序中检索 Spring-batch 作业历史记录?

我想在我的应用程序中创建一个 UI,用于调用 spring-batch(单独运行)作业并在该 UI 中显示诸如历史记录等作业详细信息。您可以使用 REST 从其他应用程序调用 spring-batch 的作业。我们也可以类似地检索工作的其他信息(历史等)吗?

0 投票
7 回答
8440 浏览

spring-batch - Spring-Batch:如何保证一个Job在运行时,不允许同时再次运行

如何保证一个Job在运行时,不允许同时再次运行?

我们有 BJ 需要 1 小时来处理提要并填充临时表。此 BJ 的第一步是清除临时表并开始填充主商店前台表中的数据。

考虑一个场景,当 BJ 启动(第一次运行)时,如果我们再次启动 BJ,它将作为第一步的一部分从临时表中删除内容。

所以请建议我如何保持第二次执行直到第一次没有完成?