[jBPM Users] - Error while creating process
by TejJBPM
Hi all
I have been trying the hello world example in http://www.jorambarrez.be/blog/2009/07/01/jbpm4-hello-world
I have configured and when I run the main class which just prints a hello world message..I get this exception..Can anybody guide me what could be wrong..? thanks in advance..
org.jbpm.api.JbpmException: couldn't instantiate configuration of type org.jbpm.pvm.internal.cfg.ProcessEngineImpl
| org.jbpm.api.Configuration.instantiate(Configuration.java:92)
| org.jbpm.api.Configuration.<init>(Configuration.java:62)
| org.jbpm.api.Configuration.<init>(Configuration.java:51)
| be.jorambarrez.jbpm4.helloworld.Main.doGet(Main.java:31)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
|
| root cause
|
| java.lang.ClassCastException: org.jbpm.pvm.internal.cfg.ProcessEngineImpl cannot be cast to org.jbpm.api.Configuration
| org.jbpm.api.Configuration.instantiate(Configuration.java:90)
| org.jbpm.api.Configuration.<init>(Configuration.java:62)
| org.jbpm.api.Configuration.<init>(Configuration.java:51)
| be.jorambarrez.jbpm4.helloworld.Main.doGet(Main.java:31)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265856#4265856
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265856
16 years, 7 months
[jBPM Users] - [jBPM 4.2] MySQLIntegrityConstraintViolationException ending
by xalperte
This is the exception thrown by the engine when I try to __end__ a running instance using the EndProcessInstance command. The instance has one active task (Evaluate web order), and that task has a swimlane associated (Sales Representative).
It seems a problem with the swimlane relationship.
NOTE: I already have configured the dialect to "org.hibernate.dialect.MySQLInnoDBDialect".
The exception:
| com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`bpm4_jbpm/jbpm4_task`, CONSTRAINT `FK_TASK_SWIML` FOREIGN KEY (`SWIMLANE_`) REFERENCES `jbpm4_swimlane` (`DBID_`))
|
The process definition:
| <?xml version="1.0" encoding="UTF-8"?>
| <process description="This is a test process to test: tasks, swimlanes, reminder/notifications, timers." name="Test Websale" xmlns="http://jbpm.org/4.2/jpdl">
| <swimlane assignee="${buyer}" name="Buyer"/>
| <swimlane candidate-groups="sales" name="Sales Representative"/>
| <swimlane assignee="jim" name="Finantial Department"/>
| <swimlane assignee="luci" name="Shippment Department"/>
|
| <start form="tasks/form.create.xhtml" g="81,126,48,48" name="Create new web sale order">
| <transition g="-51,-24" name="Start web sale" to="Evaluate web order"/>
| </start>
|
| <task g="209,110,153,80" name="Evaluate web order" swimlane="Sales Representative">
| <on event="timeout">
| <timer duedate="3 days"/>
| <event-listener class="com.rudder.bpm4.processes.tests.websale.Escalate">
| <field name="swimlaneName"><string value="Sales Representative"/></field>
| <field name="roleName"><string value="manager"/></field>
| <field name="defaultUser"><string value="jim"/></field>
| </event-listener>
| </on>
| <reminder duedate="1 day" repeat="4 hours"/>
| <transition g="220,245:-67,-3" name="More info needed" to="Fix web order data"/>
| <transition g="-31,-24" name="Order ok" to="Processing Fork"/>
| </task>
|
| <task g="204,300,169,43" name="Fix web order data" swimlane="Buyer">
| <!-- notification/ --> <!-- Workaround for the notification tag, force the email sent using timer -->
| <!-- on event="start" -->
| <!-- mail template="task-notification" / -->
| <!-- event-listener class="org.jbpm.jpdl.internal.activity.MailListener"></event-listener -->
| <!-- /on -->
| <transition g="363,246:-62,-2" name="More info added" to="Evaluate web order"/>
| </task>
|
| <fork g="432,126,48,48" name="Processing Fork">
| <transition g="457,78:-83,-22" name="Process payment" to="Wait for money"/>
| <transition g="457,220:-67,4" name="Process shipping" to="Ship item"/>
| </fork>
|
| <task g="509,38,116,80" name="Wait for money" swimlane="Finantial Department">
| <!-- notification/ -->
| <transition g="-42,-24" name="Update stock" to="Update books"/>
| </task>
|
| <state g="615,180,100,80" name="Ship item">
| <transition g="862,221:-136,-23" name="Items sent" to="Processing Join"/>
| </state>
|
| <join g="839,126,48,48" name="Processing Join">
| <transition g="-39,-31" name="Close order" to="Web sale processed"/>
| </join>
|
| <end g="949,126,48,48" name="Web sale processed" state="completed"/>
|
| <state g="714,39,117,78" name="Update books">
| <transition g="862,76:-30,-26" name="Stock updated" to="Processing Join"/>
| </state>
| </process>
|
You need to start the process with the variable "buyer". This variable will maintain the userId of the user that starts the process. It will be used by the "Buyer" swimlane (assignee="${buyer}").
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265854#4265854
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265854
16 years, 7 months
[JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService
by richard.opalka@jboss.com
"xiangyingbing" wrote : Dear JBoss developers,
| please give me an simple example about polymorphism webservice.
| Thanks!!! I DO need it.
Download native source distro.
I found these tests there:
| [/home/opalka][/home/opalka/svn/jbossws/framework/trunk/testsuite]>grep -r XmlSeeAlso * | grep -v "\.svn"
| test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java: assertTrue("@XmlSeeAlso expected on SEI (types not referenced by the Port in the wsdl)", sei.isAnnotationPresent(XmlSeeAlso.class));
| test/java/org/jboss/test/ws/jaxws/jbws2701/Endpoint.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/jbws2701/Endpoint.java:@XmlSeeAlso(value={ClassA.class})
| test/java/org/jboss/test/ws/jaxws/jbws2701/JBWS2701TestCase.java: * [JBWS-2701] @XmlSeeAlso and generated wsdl
| test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassA.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassA.java:@XmlSeeAlso({ClassB.class, ClassC.class})
| test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassC.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassB.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassB.java:@XmlSeeAlso({ClassC.class})
| test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Registration.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Registration.java:@XmlSeeAlso({
| test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/RegistrationFault.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/RegistrationFault.java:@XmlSeeAlso({
| test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Customer.java:import javax.xml.bind.annotation.XmlSeeAlso;
| test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Customer.java:@XmlSeeAlso({
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265852#4265852
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265852
16 years, 7 months
[Installation, Configuration & Deployment] - Issue with XA datasource on JBoss 5.1. GA
by katoch
Hi,
I am getting below exception with XA datasource deployed on JBoss 5.1.
data source file is :
====================
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: oracle-xa-ds.xml 77479 2008-08-26 10:33:09Z alex.loubyansky(a)jboss.com $ -->
<!-- ===================================================================== -->
<!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml -->
<!-- ===================================================================== -->
<xa-datasource>
<jndi-name>jdbc/eloquence</jndi-name>
<!-- uncomment to enable interleaving -->
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@cst:1521:orcl</xa-datasource-property>
<xa-datasource-property name="User">ddd</xa-datasource-property>
<xa-datasource-property name="Password">ddd</xa-datasource-property>
<use-java-context>false</use-java-context>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
<no-tx-separate-pools/>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<!-- Oracle9i mapping can be used for Oracle10g -->
<type-mapping>Oracle9i</type-mapping>
</xa-datasource>
<depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager
==================
Exception is ::
2009-11-16 17:31:47,402 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Destroying connection that could not be successfully matched: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@11eeb3f[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@b2d46e handles=0 lastUse=1258372722094 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@13578ff context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@19aeb84 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@b2d46e txSync=null]
2009-11-16 17:31:47,449 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: invalid arguments in call)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:465)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:409)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:104)
at cincom.iDGenesis.Framework.CSConnectionPool$CSPooledConnection.acquireDataSourceConnection(Unknown Source)
at cincom.iDGenesis.Framework.CSConnectionPool$CSPooledConnection.acquire(Unknown Source)
at cincom.iDGenesis.Framework.CSConnectionPool.getConnection(Unknown Source)
at cincom.iDGenesis.Framework.CSDatabaseResource.query(Unknown Source)
at cincom.iDGenesis.Framework.CSDatabaseResource.initialise(Unknown Source)
at TAn.processBody1(TAn.java:121)
at TAn.start(TAn.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at cincom.iDGenesis.Framework.CSDocument.Start(Unknown Source)
at cincom.iDGenesis.Framework.CSCollDocuments.generateDoc(Unknown Source)
at cincom.iDGenesis.Framework.CSCollDocuments.generateDocs(Unknown Source)
at cincom.iDGenesis.Framework.CSApplication.generateDocs(Unknown Source)
at cincom.iDGenesis.Framework.CSCompositionProcessor.processApplication(Unknown Source)
at cincom.iDGenesis.Framework.CSInflowHandlerNativeXML.endCollDocuments(Unknown Source)
at cincom.iDGenesis.Framework.CSSAXEngineHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at cincom.iDGenesis.Framework.CSInflowHandlerNativeXML.parseInflow(Unknown Source)
at cincom.iDGenesis.Framework.CSInflowHandlerNativeXML.start(Unknown Source)
at cincom.iDGenesis.Framework.CSCompositionProcessor.handleNativeXMLInflow(Unknown Source)
at cincom.iDGenesis.Framework.CSCompositionProcessor.processRequest(Unknown Source)
at cincom.eloquence.framework.request.EngineRequestProcessor.processRequest(Unknown Source)
at cincom.eloquence.framework.request.EngineRequestProcessor.processRequest(Unknown Source)
at cincom.eloquence.common.server.request.RequestWS.onMessage(Unknown Source)
at cincom.iDGenesis.EngineServer.ws.CEEngineWS.onMessage(Unknown Source)
at cincom.iDGenesis.EngineServer.ws.CEEngineWSDelegate.onMessage(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: invalid arguments in call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:236)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297)
at oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:472)
at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:159)
at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:133)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:449)
... 87 more
Can any one tell where is the issue. Is this issue with JBoss configuration or with data source file.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265837#4265837
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265837
16 years, 7 months
[JBoss Cache Users] - Bug: Endless-loop in EvictionTimer thread when using LFUAlgo
by pb00067
Hi all, I like to notice a bug in JBoss-Cache but I don't know where is the right place to do it. Anyone can help ?
The bug consist in the fact that at a certain point BaseEvictionAlgorithm#prune method never exits his loop (see code below) anymore because of evictionQueue.getFirstNodeEntry() always returning the same value. Debugging the code we saw that the actual bug stays in method
LFUQueue#removeNodeEntry:
This method don't handles correctly the case non- existance of the node:
if ne == null, then neither removalQueue nor the evictionList is touched.
This causes evictionQueue.getFirstNodeEntry() returning always the same result.
BaseEvictionAlgorithm.java
| ...
| protected void prune() throws EvictionException
| {
| NodeEntry entry;
| while ((entry = evictionQueue.getFirstNodeEntry()) != null) --> ENDLESS-LOOP
| {
| if (this.shouldEvictNode(entry))
| {
| this.evict(entry);
| }
| else
| {
| break;
| }
| }
| }
LFUQueue.java:
| public void removeNodeEntry(NodeEntry entry)
| {
| NodeEntry ne = nodeMap.remove(entry.getFqn());
| if (ne != null)
| {
| // don't remove directly from the LinkedList otherwise we will incur a O(n) = n
| // performance penalty for every removal! In the prune method for LFU, we will iterate the LinkedList through ONCE
| // doing a single O(n) = n operation and removal. This is much preferred over running O(n) = n every single time
| // remove is called. There is also special logic in the getFirstNodeEntry that will know to check
| // the removalQueue before returning.
| this.removalQueue.add(ne);
| /* if(!evictionList.remove(ne)) {
| throw new RuntimeException("");
| } */
| this.numElements -= ne.getNumberOfElements();
| }
| }
Solution: following Else-block added in method LFUQueue#removeNodeEntry resolves the problem.
else { // ELSE BLOCK: bugfix: this prevents endless loop in BaseEvictionAlgorithm#prune method
| if(!evictionList.remove(entry))
| throw new RuntimeException("");
| this.removalQueue.add(entry);
| this.numElements -= entry.getNumberOfElements();
| }
Background:Im using JBoss-cache 3.2.1 GA as 2L-cache for a Hibernate application.
As Hibernate does not suggest LRU as algorhythm for 2L-cache, I use the LRU.
regards
G.D.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265825#4265825
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265825
16 years, 7 months