当多个用户正在使用该应用程序时,我的应用程序中经常出现这种"等待资源时检测到ora-00060死锁"的错误.我从oracle Admin获得了跟踪文件,但需要帮助才能阅读它.下面是跟踪文件中的一些数据,我希望这有助于找到原因.
*** 2013-06-25 09:37:35.324
DEADLOCK DETECTED ( ORA-00060 )
[Transaction Deadlock]
The following deadlock is not an ORACLE error. It is a deadlock due
to user error in the design of an application
or from issuing incorrect ad-hoc SQL. The following
information may aid in determining the deadlock:
Deadlock graph:
---------Blocker(s)-------- ---------Waiter(s)---------
Resource Name process session holds waits process session holds waits
TM-000151a2-00000000 210 72 SX SSX 208 24 SX SSX
TM-000151a2-00000000 208 24 SX SSX 210 72 SX …Run Code Online (Sandbox Code Playgroud) 我正在研究POC,其中包括以下内容
现在,如果消息的DB插入失败,我希望JMS消息返回到队列,以便以后可以重新尝试.
使用我的以下配置它似乎不起作用.(即使插入数据库时出现故障,消息将从队列中删除.
任何指针或示例配置都会有所帮助.
<integration:channel id="jmsInChannel">
<integration:queue/>
</integration:channel>
<int-jms:message-driven-channel-adapter id="jmsIn"
transaction-manager="transactionManager"
connection-factory="sConnectionFactory"
destination-name="emsQueue"
acknowledge="client" channel="jmsInChannel"
extract-payload="false"/>
<integration:service-activator input-channel="jmsInChannel"
output-channel="fileNamesChannel" ref="handler" method="process" />
<bean id="handler" class="com.irebalpoc.integration.MessageProcessor">
<property name="jobHashTable" ref="jobsMapping" />
</bean>
Run Code Online (Sandbox Code Playgroud) 我正在开发一个基于 spring MVC 的 Web 应用程序。我们有各种屏幕用于添加不同的域组件(例如帐户详细信息、员工详细信息等)。我需要为这些域组件中的每一个实现一个上传功能,即上传帐户、上传员工详细信息等,这些将在 csv 文件中提供(打开文件,解析其内容,验证然后保留)。
我的问题是,我应该考虑采用哪种设计模式来实现这样的要求,以便上传(打开文件、解析其内容、验证然后持久化)功能变得通用。我在考虑使用模板设计模式。模板模式
任何建议,指针,链接将不胜感激。