[
https://issues.apache.org/jira/browse/QPID-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987242#action_12987242
]
Ted Ross commented on QPID-3009:
--------------------------------
I have a comment that pertains to the structure of these Swig-generated
bindings and the examples in this contribution:
The Swig-generated binding is called "cqpid" which denotes a mechanical binding
of the C++ API in the target scripting language. It is identical to the C++
API in class and method names and style. This is not necessarily appropriate
for the scripting language which may typically use another style.
I would suggest that a thin layer of Perl be added that defines a module called
"qpid" (without the 'c'). This layer can provide a more Perl-like interface
that adheres to Perl coding conventions and provides whatever
self-documentation/annotation that is available for Perl.
An example of a difference can be seen in the map-message examples. In C++ the
following pattern is used:
my $message = new cqpid::Message();
my $content = { ... };
cqpid::encode($content, $message);
$sender->send($message);
However, in Perl, it might be nicer to be able to do something like:
my $message = new qpid::Message({...});
$sender->send($message);
or even:
$sender->send({...});
Comments welcome.
-Ted
> Perl binding to Qpid messaging
> ------------------------------
>
> Key: QPID-3009
> URL: https://issues.apache.org/jira/browse/QPID-3009
> Project: Qpid
> Issue Type: New Feature
> Components: C++ Client
> Affects Versions: 0.8
> Environment: -
> Reporter: Hao Chang Yu
> Assignee: Ted Ross
> Fix For: 0.8
>
> Attachments: QPID-3009.diff, qpid_perl.patch
>
>
> As we need to use perl programs to send amqp messages but there is no perl
> version of qpid messaging.
> Therefore, I had written a perl api to bind with c++ qpid messaging library.
> This perl api for qpid messaging is developed using swig and is base on qpid
> 0.8.
> Please see the attached patch file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]