Re: PasswordSource if passwordLocation is executable

From: lenka (
Date: Thu Oct 29 2009 - 11:09:24 EDT

  • Next message: Miloš Bielik: "DataContext, webapp and serialization"

    Hi Michael,

    Thank you very much for the answer. Yes, I would like to use the Java
    function. But I think I understand it now.

    Thank you a lot

    -----Original Message-----
    From: Michael Gentry <>
    Subject: Re: PasswordSource if passwordLocation is executable
    Date: Thu, 29 Oct 2009 09:42:48 -0400

    Hi Lenka,

    The passwordSource in the XML is overloaded in this case and should
    reference the executable to run along with any parameters it needs.
    It looks to me like you are trying to run a Java method? If so,
    you'll need to have a "java ..." command there. I also suspect you
    might could use the URL method. I've used that in the past to read an
    encrypted password off the filesystem. For that, part of my XML
    looked something like:

    <login userName="username" encoderClass="my.TripleDESPasswordEncoder"
    encoderSalt="94VW4MOreXfvbSbB6ewbfp3XkdoZvgwp" passwordLocation="url"


    On Thu, Oct 29, 2009 at 3:45 AM, lenka <> wrote:
    > Dear Cayenne users,
    > I have a problem here. I need to change the password in a runtime.
    > Therefore I set in Cayenne Modeler:
    > in Password Encoder the following values:
    > Password Location: Executable Program
    > Password Executable: lenka.Application.test()"
    > In the xml file, the following code was produced.
    > <driver project-version="3.0" class="org.postgresql.Driver">
    > <url value="jdbc:postgresql://"/>
    > <connectionPool min="1" max="1"/>
    > <login userName="user_name"
    > encoderClass="org.apache.cayenne.conf.Rot47PasswordEncoder"
    > passwordLocation="executable"
    > passwordSource="sk.lenka.Application.test()"/>
    > </driver>
    > I wonder what to enter in "passwordSource" if I need to read the
    > password from the method: lenka.Application.test();
    > Any help will be appreciated.
    > Lenka

    This archive was generated by hypermail 2.0.0 : Thu Oct 29 2009 - 11:09:58 EDT