Author: alex.guizar(a)jboss.com
Date: 2008-09-25 12:21:31 -0400 (Thu, 25 Sep 2008)
New Revision: 2385
Modified:
jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/bytes/ByteBlockChopper.java
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/bytes/ByteArray.hbm.xml
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/default.jbpm.cfg.xml
jbpm3/branches/aguizar/modules/userguide/src/main/docbook/en/modules/configuration.xml
Log:
changed byte block size from 1024 to 255 in order to accommodate the varbinary limits of
sybase 12.5
Modified:
jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/bytes/ByteBlockChopper.java
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/bytes/ByteBlockChopper.java 2008-09-25
16:19:49 UTC (rev 2384)
+++
jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/bytes/ByteBlockChopper.java 2008-09-25
16:21:31 UTC (rev 2385)
@@ -31,8 +31,12 @@
* is used by {@link org.jbpm.bytes.ByteArray} to chop a
* byte arrays into a list of chunks and glue them back together.
*/
-public abstract class ByteBlockChopper {
+public class ByteBlockChopper {
+ private ByteBlockChopper() {
+ // hide default constructor to prevent instantiation
+ }
+
public static List chopItUp(byte[] byteArray) {
int blockSize = JbpmConfiguration.Configs.getInt("jbpm.byte.block.size");
List bytes = null;
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/bytes/ByteArray.hbm.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/bytes/ByteArray.hbm.xml 2008-09-25
16:19:49 UTC (rev 2384)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/bytes/ByteArray.hbm.xml 2008-09-25
16:21:31 UTC (rev 2385)
@@ -13,7 +13,7 @@
cascade="all">
<key column="PROCESSFILE_" foreign-key="FK_BYTEBLOCK_FILE"
/>
<list-index column="INDEX_" />
- <element type="binary" length="1024"
column="BYTES_" />
+ <element type="binary" length="255"
column="BYTES_" />
</list>
</class>
</hibernate-mapping>
Modified:
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/default.jbpm.cfg.xml
===================================================================
---
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/default.jbpm.cfg.xml 2008-09-25
16:19:49 UTC (rev 2384)
+++
jbpm3/branches/aguizar/modules/core/src/main/resources/org/jbpm/default.jbpm.cfg.xml 2008-09-25
16:21:31 UTC (rev 2385)
@@ -30,7 +30,8 @@
<string name="resource.varmapping"
value="org/jbpm/context/exe/jbpm.varmapping.xml" />
<string name="resource.mail.templates"
value="jbpm.mail.templates.xml" />
- <int name="jbpm.byte.block.size" value="1024"
singleton="true" />
+ <!-- make sure the block size matches the length in ByteArray.hbm.xml -->
+ <int name="jbpm.byte.block.size" value="255"
singleton="true" />
<bean name="jbpm.task.instance.factory"
class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl"
singleton="true" />
<bean name="jbpm.variable.resolver"
class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true"
/>
<string name="jbpm.mail.smtp.host" value="localhost" />
Modified:
jbpm3/branches/aguizar/modules/userguide/src/main/docbook/en/modules/configuration.xml
===================================================================
---
jbpm3/branches/aguizar/modules/userguide/src/main/docbook/en/modules/configuration.xml 2008-09-25
16:19:49 UTC (rev 2384)
+++
jbpm3/branches/aguizar/modules/userguide/src/main/docbook/en/modules/configuration.xml 2008-09-25
16:21:31 UTC (rev 2385)
@@ -65,7 +65,7 @@
<string name='resource.parsers'
value='org/jbpm/jpdl/par/jbpm.parsers.xml' />
<string name='resource.varmapping'
value='org/jbpm/context/exe/jbpm.varmapping.xml' />
- <int name='jbpm.byte.block.size' value="1024"
singleton="true" />
+ <int name='jbpm.byte.block.size' value="255"
singleton="true" />
<bean name='jbpm.task.instance.factory'
class='org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl'
singleton='true' />
<bean name='jbpm.variable.resolver'
class='org.jbpm.jpdl.el.impl.JbpmVariableResolver' singleton='true'
/>
Show replies by date