I am following the instruction in the page
http://jakarta.apache.org/turbine/torque/tutorial.html
after generating all the peer class,the Bookstore.java can use the generated
class to do some work,my standalone application 'Bookstore' run correctly,

now I want to run my peer class in my porlet which run in Jetspeed.

so I inserted a new row value into the table 'ID_TABLE' in my jetspeed
default
database,and created the other tables corresponding my peer classes.

I tried to use the peer class directly in the action class of my Portlet
like
below:
................

            Publisher addison = new Publisher();
            addison.setName("Addison Wesley Professional");
            addison.save();

................

but the error happened,in Jetspeed.log file:

[15:48:01,216 WARN ] IDBroker is being used with db 'bookstore',which does
not support transactions.  IDBroker attempts to use transactions to limit
the possibility of duplicate key generation.  Without transactions,
duplicate key generation is possible if multiple JVMs are used or other
means are used to write to the database.
[15:48:01,226 INFO ] IDBroker thread was started.
[15:48:01,296 WARN ] A DBConnection was finalized, without being returned to
the ConnectionPool it belonged to
......................................

I dont know what happened.


in the standalone appliction,Bookstore.java source code:
_______________________________________

public class Bookstore
{
    public static void main(String[] args)
    {
        try
        {
            /*
             * Initializing Torque
             */
            Torque.init("Torque.properties");

.............

my question is:

in Jetspeed,do i need to write some code instead of
'Torque.init("Torque.properties")'?

any responding would be appreciated!




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to