own module

View: New views
3 Messages — Rating Filter:   Alert me  

own module

by Robert Karbowiak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

What should I do to use own java programs in xhtml and queries . Create own module?
 

Robert

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: own module

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You have two options -

1) Place your java classes on the eXist classpath, enable Java Binding
in conf.xml and then bind your class to a namespace and you can call
the java functions directly from XQuery.
This is good for calling simple operations but can be cumbersome for
larger needs.

2) Create a module as you suggest - see
EXIST_HOME/extensions/modules/src/org/exist/xquery/modules/* - the
example module is a good starting place.

2009/10/29 Robert Karbowiak <wobrak@...>:

> Hi
>
> What should I do to use own java programs in xhtml and queries . Create own
> module?
>
>
> Robert
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: own module

by Florent Georges-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert Karbowiak wrote:

  Hi,

> What should I do to use own java programs in xhtml and queries.
> Create own module?

  You can have a look at the following blog post:

http://fgeorges.blogspot.com/2009/07/exist-extension-functions-in-java.html

  Regards,

--
Florent Georges
http://www.fgeorges.org/























     


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open