[JBoss JIRA] Created: (JBCACHE-1366) state transfer optimisation (with preload, and in memory state transfer)
by Mircea Markus (JIRA)
state transfer optimisation (with preload, and in memory state transfer)
------------------------------------------------------------------------
Key: JBCACHE-1366
URL: http://jira.jboss.com/jira/browse/JBCACHE-1366
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Mircea Markus
Assigned To: Manik Surtani
Priority: Minor
Fix For: 3.0.0
Optimization can be done in in a configuration where the following are true:
- prelaod
- in-memory state transfer is enabled
- no passivation
- a) shared cache loader OR b)fetch persistent state
Optimization:during in-memory state transfer frome cache ONE to cache TWO, do not transfer the regions which in cache TWO were set for preloading.
a) is shared cache loader is on that these regions will be loaded from the store anyhow, so transfer of these regions is redundant
b) the content of these regions will be transfered at persistent state transfer anyway, so again redundancy during in-memory state transfer
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[JBoss JIRA] Resolved: (JBAS-3343) JCA 1.5 Resource Adapter Config Properties cannot be specified
by Vicky Kak (JIRA)
[ https://jira.jboss.org/jira/browse/JBAS-3343?page=com.atlassian.jira.plug... ]
Vicky Kak resolved JBAS-3343.
-----------------------------
Resolution: Done
jboss-ra.xml can be used to override the properties as specified in ra.xml .
> JCA 1.5 Resource Adapter Config Properties cannot be specified
> --------------------------------------------------------------
>
> Key: JBAS-3343
> URL: https://jira.jboss.org/jira/browse/JBAS-3343
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: JCA service
> Affects Versions: JBossAS-4.0.4.GA
> Environment: All.
> Reporter: Andreas Mueller
> Assignee: Vicky Kak
> Fix For: JBossAS-5.0.0.CR2
>
> Attachments: ra.xml
>
>
> A JCA 1.5 resource adapter might contain config properties in ra.xml. It is not possible in JBoss to override them with -ds.xml file.
> For example, here is an excert of SwiftMQ's intraVM ra.xml:
> <resourceadapter>
> <resourceadapter-class>
> com.swiftmq.connector.v15.ResourceAdapterImpl
> </resourceadapter-class>
> <config-property>
> <config-property-name>ProviderURL</config-property-name>
> <config-property-type>java.lang.String</config-property-type>
> <config-property-value>smqp://intravm/timeout=10000</config-property-value>
> </config-property>
> <config-property>
> <config-property-name>IntraVM</config-property-name>
> <config-property-type>java.lang.Boolean</config-property-type>
> <config-property-value>true</config-property-value>
> </config-property>
> <config-property>
> <config-property-name>DebugMode</config-property-name>
> <config-property-type>java.lang.Boolean</config-property-type>
> <config-property-value>false</config-property-value>
> </config-property>
> <config-property>
> <config-property-name>RouterWorkingDirectory</config-property-name>
> <config-property-type>java.lang.String</config-property-type>
> <config-property-value><swiftmq_dir>/scripts/unix</config-property-value>
> </config-property>
> <config-property>
> <config-property-name>ConfigurationFilename</config-property-name>
> <config-property-type>java.lang.String</config-property-type>
> <config-property-value>../../config/router1/routerconfig.xml</config-property-value>
> </config-property>
> It is not possible to overwrite them during deployment. It is only possible to specify the config properties of the ManagedConnectionFactory in -ds.xml.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[JBoss JIRA] Created: (JBCACHE-1382) Investigate use of ExposedBAOS instead of BAOS when marshalling objects
by Manik Surtani (JIRA)
Investigate use of ExposedBAOS instead of BAOS when marshalling objects
-----------------------------------------------------------------------
Key: JBCACHE-1382
URL: http://jira.jboss.com/jira/browse/JBCACHE-1382
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Manik Surtani
Assigned To: Manik Surtani
Fix For: 2.2.0.GA, 3.0.0
>From Bela's email:
"At least in AbstractMarshaller:
public byte[] objectToByteBuffer(Object obj) throws Exception
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream out = ObjectSerializationFactory.createObjectOutputStream(baos);
objectToObjectStream(obj, out);
out.close();
return baos.toByteArray();
}
Here, an ExposedByteArrayOutputStream instead of a BAOS would prevent the COPY of the byte buffer. We also don't need to be concerned about reentrancy as the output streams are local (stack) variables...
Maybe you guys should take a look at all occurrences of BAOS !"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months