You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org> on 2008/10/02 21:39:44 UTC
[jira] Created: (UIMA-1196) Add support for binary serialization
and deserialization in Uima AS
Add support for binary serialization and deserialization in Uima AS
-------------------------------------------------------------------
Key: UIMA-1196
URL: https://issues.apache.org/jira/browse/UIMA-1196
Project: UIMA
Issue Type: Bug
Components: Async Scaleout
Reporter: Jerry Cwiklik
Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (UIMA-1196) Add support for binary serialization and deserialization in Uima AS
Posted by Burn Lewis <bu...@gmail.com>.
What should happen if a <serialzer method="binary"> is specified for a
delegate whose typesystem is not the same as the merged one, or is running
2.2.2 and doesn't support binary serialization? Presumably we should fail
the deployment. If the serialization method is not specified then we could
default to binary if all the conditions are satisfied, else xmi. This would
let us gracefully add support for binary serialization of delta CASes and
parallel delegates when necessary.
On Wed, Oct 8, 2008 at 1:11 PM, Jerry Cwiklik (JIRA) <
uima-dev@incubator.apache.org> wrote:
>
> [
> https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637988#action_12637988]
>
> Jerry Cwiklik commented on UIMA-1196:
> -------------------------------------
>
> While addressing binary serialization I need to determine the default
> serialization strategy for CASes destined for remote delegate. Binary
> serialization, although much faster than XMI has one serious problem. It
> requires that all uima AS services use a common type system. Also merge is
> not yet supported for binary serialization as well as delta CAS. It seems
> that XMI, albeit slower, is a better choice as a default serialization
> strategy. Comments?
>
> > Add support for binary serialization and deserialization in Uima AS
> > -------------------------------------------------------------------
> >
> > Key: UIMA-1196
> > URL: https://issues.apache.org/jira/browse/UIMA-1196
> > Project: UIMA
> > Issue Type: Bug
> > Components: Async Scaleout
> > Reporter: Jerry Cwiklik
> >
> > Uima AS needs faster serialization and deserialization logic for CASes
> destined for remote delegates. XMI serialization introduces a significant
> overhead. Modify Uima AS Serializer to use existing binary Serializer and
> Deserializer from Uima Core. Modify code that creates outbound jms messages
> to carry binary cargo instead of a String. Modify inbound code to recognize
> binary cargo and deserialize CAS using binary serialization.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Closed: (UIMA-1196) Add support for binary serialization and
deserialization in Uima AS
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerry Cwiklik closed UIMA-1196.
-------------------------------
> Add support for binary serialization and deserialization in Uima AS
> -------------------------------------------------------------------
>
> Key: UIMA-1196
> URL: https://issues.apache.org/jira/browse/UIMA-1196
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
> Fix For: 2.3AS
>
> Attachments: uimaj-as-activemq-UIMA-1196-patch.txt, uimaj-as-core-UIMA-1196-patch.txt, uimaj-as-jms-UIMA-1196-patch.txt
>
>
> Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1196) Add support for binary serialization
and deserialization in Uima AS
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637998#action_12637998 ]
Marshall Schor commented on UIMA-1196:
--------------------------------------
While Jerry was testing this he discovered that dd2spring was failing to correctly pass in the <serializer method="xxxx"/> to the delegate endpoint property. This was because the xsl XPATH expression for this is missing the namespace. Fix this in dd2spring.
> Add support for binary serialization and deserialization in Uima AS
> -------------------------------------------------------------------
>
> Key: UIMA-1196
> URL: https://issues.apache.org/jira/browse/UIMA-1196
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
>
> Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1196) Add support for binary serialization
and deserialization in Uima AS
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637988#action_12637988 ]
Jerry Cwiklik commented on UIMA-1196:
-------------------------------------
While addressing binary serialization I need to determine the default serialization strategy for CASes destined for remote delegate. Binary serialization, although much faster than XMI has one serious problem. It requires that all uima AS services use a common type system. Also merge is not yet supported for binary serialization as well as delta CAS. It seems that XMI, albeit slower, is a better choice as a default serialization strategy. Comments?
> Add support for binary serialization and deserialization in Uima AS
> -------------------------------------------------------------------
>
> Key: UIMA-1196
> URL: https://issues.apache.org/jira/browse/UIMA-1196
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
>
> Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-1196) Add support for binary serialization
and deserialization in Uima AS
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637997#action_12637997 ]
Marshall Schor commented on UIMA-1196:
--------------------------------------
I agree. We probably should add 2 Jira's to
# fix xmi serialization to reuse XMLReaders per Adam Lally's suggestion on uima-dev http://markmail.org/message/vpt7dx7lrjp6g35v, and
# make delta cas work with binary serialization/deserialization
> Add support for binary serialization and deserialization in Uima AS
> -------------------------------------------------------------------
>
> Key: UIMA-1196
> URL: https://issues.apache.org/jira/browse/UIMA-1196
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
>
> Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (UIMA-1196) Add support for binary serialization
and deserialization in Uima AS
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerry Cwiklik updated UIMA-1196:
--------------------------------
Attachment: uimaj-as-jms-UIMA-1196-patch.txt
uimaj-as-core-UIMA-1196-patch.txt
uimaj-as-activemq-UIMA-1196-patch.txt
Modified UIMA AS code to use binary serialization and deserialization for remote delegates. The strategy for the serialization for each remote delegate is defined in the deployment descriptor as either "xmi" or "binary". In case where the serialization is not specified in the deployment descriptor the default is "xmi". The Uima AS client application may specify the type of serialization to be used by adding a new property in the context map as follows:
appCtx.put(UimaAsynchronousEngine.SerializationStrategy,"binary" );
This will configure the UIMA AS client code to send CASes in binary instead of XMI. The service receiving binary CAS will reply to the client with binary CAS. The binary CAS is added as cargo to the JMS BytesMessage.
> Add support for binary serialization and deserialization in Uima AS
> -------------------------------------------------------------------
>
> Key: UIMA-1196
> URL: https://issues.apache.org/jira/browse/UIMA-1196
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Attachments: uimaj-as-activemq-UIMA-1196-patch.txt, uimaj-as-core-UIMA-1196-patch.txt, uimaj-as-jms-UIMA-1196-patch.txt
>
>
> Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (UIMA-1196) Add support for binary serialization
and deserialization in Uima AS
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor resolved UIMA-1196.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.3AS
Assignee: Jerry Cwiklik
applied patches. Assigned to Jerry for checking and closing
> Add support for binary serialization and deserialization in Uima AS
> -------------------------------------------------------------------
>
> Key: UIMA-1196
> URL: https://issues.apache.org/jira/browse/UIMA-1196
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
> Fix For: 2.3AS
>
> Attachments: uimaj-as-activemq-UIMA-1196-patch.txt, uimaj-as-core-UIMA-1196-patch.txt, uimaj-as-jms-UIMA-1196-patch.txt
>
>
> Uima AS needs faster serialization and deserialization logic for CASes destined for remote delegates. XMI serialization introduces a significant overhead. Modify Uima AS Serializer to use existing binary Serializer and Deserializer from Uima Core. Modify code that creates outbound jms messages to carry binary cargo instead of a String. Modify inbound code to recognize binary cargo and deserialize CAS using binary serialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.