Hi,
I tried that by using the following entries
<nodestore classname="slidestore.reference.JDBCDescriptorsStore">
<parameter name="driver">org.hsqldb.jdbcDriver</parameter>
<parameter name="url">jdbc:hsqldb:myDB</parameter>
<parameter name="user">SA</parameter>
<parameter name="password"></parameter>
There was a script file which was generated called mydb.script. But looks
like they were not executed I could not find those tables in the DB.
These are the messages I got while it was initializing . Its able to connect
but i dunno why its not executing the scripts or storing data.
29 Jul 2002 13:47:51 - slidestore.reference.JDBCDescriptorsStore - INFO -
Connecting to "jdbc:hsqldb:myDB" as user "SA"
29 Jul 2002 13:47:55 - org.apache.slide.store.StandardStore - INFO -
Delisting service slidestore.reference.JDBCDescriptorsStore@7ef5194a from
active transaction with failure
29 Jul 2002 13:47:55 -
org.apache.slide.transaction.SlideTransactionManager - INFO - Rollback
Transaction 1 xid main-1027930671819-1- in thread main
-Deepak
> -----Original Message-----
> From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 6:51 PM
> To: Slide Users Mailing List
> Subject: RE: Construction of Uri Object
>
>
>
>
>
> On Fri, 26 Jul 2002, A.N Deepak wrote:
>
> > Hi,
> > Well no, I want to store it in the slide nodestore. The example
> program has
> > no entry for nodestore. It has entry only for the
> contentstore. I have made
> > an entry for the nodestore in the domain.xml. Please look at
> the attached
> > domain.xml. Now my problem is storing the descriptor information in the
> > nodestore.
>
> Okay I see ...
>
> > Actually I am trying to build a versioning system and I want to
> store the
> > versioning information into the db and content into a file
> system. I am able
> > to store the content into the filesystem.
>
> You can try
>
> <nodestore classname="slidestore.reference.JDBCDescriptorsStore">
> <parameter name="driver">org.hsqldb.jdbcDriver</parameter>
> <parameter name="url">jdbc:hsqldb:slidestructure</parameter>
> <parameter name="user">sa</parameter>
> <parameter name="password"></parameter>
> </nodestore>
>
> or specially for MySQL
>
> <nodestore classname="slidestore.mysql.MySQLDescriptorsStore">
> <parameter name="driver">org.gjt.mm.mysql.Driver</parameter>
> <parameter name="url">jdbc:mysql://@DB_HOME@/myDB</parameter>
> <parameter name="user">****</parameter>
> <parameter name="password">****</parameter>
> </nodestore>
>
> But don't try a <nodestore clasname="......ContentStore"> ;-)
>
> Stephan Michels.
>
> >
> > > -----Original Message-----
> > > From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, July 26, 2002 4:32 PM
> > > To: Slide Users Mailing List
> > > Subject: RE: Construction of Uri Object
> > >
> > >
> > >
> > >
> > >
> > > On Fri, 26 Jul 2002, A.N Deepak wrote:
> > >
> > > > Hi,
> > > > Well i am using the same example. I need to store the revsision
> > > descriptor
> > > > information into a file or db store I am trying to figure how
> > > to do that ?
> > >
> > > If I understand you right, you want to write the information of the
> > > revision descriptor in a separate db, and not into the NodeStore of
> > > Slide?! And how hit this the 'create' method of the content helper?
> > >
> > > > Any ideas ???
> > >
> > > NodeProperty property;
> > > for(Enumeration e = revisionDescriptor.enumerateProperties();
> > > e.hasMoreElements();) {
> > >
> > > property = (NodeProperty)e.nextElement();
> > > myobject.mymethod(property.getNamespace(), property.getName(),
> > > property.getValue().toString());
> > > }
> > >
> > > Stephan Michels.
> > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Friday, July 26, 2002 3:45 PM
> > > > > To: Slide Users Mailing List
> > > > > Subject: Re: Construction of Uri Object
> > > > >
> > > > > On Fri, 26 Jul 2002, A.N Deepak wrote:
> > > > >
> > > > > >
> > > > > > Hi,
> > > > > > Can anybody let me know how to construct the Uri object. I need
> > > > > to call the
> > > > > > store.createRevisionDescriptor(Uri uri, NodeRevisionDescriptor
> > > > > > revisionDescriptor).
> > > > > > The constrcutor of the Uri(Namespace namespace,java.lang.String
> > > > > uri) needs
> > > > > > a Namespace object and Namespace Constructor is private. Where
> > > > > do i get the
> > > > > > namespace object from ??
> > > > > >
> > > > > > Can anybpdy please help.
> > > > >
> > > > > Why don't you try the following example from
> > > > > src/examples/version/Test.java:
> > > > >
> > > > >
> > > > > // Now creating some revisions
> > > > > NodeRevisionDescriptor revisionDescriptor =
> > > > > new NodeRevisionDescriptor(0);
> > > > >
> > > > > revisionDescriptor.setProperty("revision", "1");
> > > > > content.create(slideToken, "/test", revisionDescriptor, null);
> > > > >
> > > > >
> > >
> _______________________________________________________________________
> > > > > Stephan Michels EMail: [EMAIL PROTECTED]
> > > > > ICQ: 115535699 Tel: +49-030-314-21583
> > > > >
> > >
> ----+----|----+----|----+----|----+----|----+----|----+----|----+----|-|
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>