Another option, of course, depending upon what your perl code is doing, is to 
re-implement the logic in XQuery and run it directly in MarkLogic Server.  This 
will be especially beneficial if your perl code is manipulating documents that 
are stored in MarkLogic.

-Danny

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Karl Erisman
Sent: Friday, February 12, 2010 7:54 AM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] How to connect Perl code to xquery

As others have suggested, web services are probably the way you want
to go.  However, there is another option that may at times be
appropriate: you can use XCC-J (the MarkLogic Java API) through Perl.
I wrote some modules that use XCC-J via Inline::Java, internally
abstracting the awkward way you have to work with Inline::Java and
exposing XCC methods in a simplified way.

Not what I'd recommend in general, but it can be easier and faster to
write simple tools this way (I use it for a custom MarkLogic "shell"
as an alternative to CQ).

Karl

On Thu, Feb 11, 2010 at 11:10 PM, SrinivasanM
<[email protected]> wrote:
> Hi All,
>
>
>
>                 Thanks to all, Now i started to connect my java code in
> xquery using "MLJAM", side by side, i tried to connect perl code into
> xquery, but my friends said, there is no way to connect perl code to xquery.
> Is it true? If it is false, how to connect?
>
>
>
> Thanks
>
> Shri
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to