Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Database persistent storage: msg#00290

apache.jackrabbit.devel

Subject: Re: Database persistent storage

Edgar

Thanks and good to hear from you again. Ok, I believe that I
can follow this. A couple of more questions, if I may...

1. Do I need to create a mysql.ddl file? If so, where in my directory
structure does that file reside? Or is it created automatically, or
exist as part of the jackrabbit download?

e.g.

./src/main/java/org/apache/jackrabbit/core/fs/db/derby.ddl
./src/main/java/org/apache/jackrabbit/core/fs/db/postgresql.ddl
./src/main/java/org/apache/jackrabbit/core/fs/db/mssql.ddl
./src/main/java/org/apache/jackrabbit/core/fs/db/mysql.ddl
./src/main/java/org/apache/jackrabbit/core/fs/db/daffodil.ddl
./src/main/java/org/apache/jackrabbit/core/fs/db/default.ddl
./src/main/java/org/apache/jackrabbit/core/state/db/derby.ddl
./src/main/java/org/apache/jackrabbit/core/state/db/postgresql.ddl
./src/main/java/org/apache/jackrabbit/core/state/db/mssql.ddl
./src/main/java/org/apache/jackrabbit/core/state/db/mysql.ddl
./src/main/java/org/apache/jackrabbit/core/state/db/daffodil.ddl
./src/main/java/org/apache/jackrabbit/core/state/db/default.ddl




2. Will the code in my JackTest.java program

e.g.

if (!rn.hasNode("testnode"))
{
System.out.println("creating testnode");
Node n=rn.addNode("testnode", "nt:unstructured");
n.setProperty("testprop", session.getValueFactory().createValue("Hello,
World."));
session.save();
}

for manipulating items be sufficient? Or do I need to use different
statements?

Thanks again for your time and effort.


On Thu, Dec 15, 2005 at 09:42:28PM -0300, Edgar Poce wrote:
> Hi rick,
>
> you can take a look to
> http://incubator.apache.org/jackrabbit/apidocs/org/apache/jackrabbit/core/state/db/SimpleDbPersistenceManager.html,
>
> it contains documentation and examples that will help you to configure your
> jdbc connection.
>
> br,
> edgar
>
> milhri@xxxxxxxx wrote:
> >First time mailer...
> >
> >I have successfully downloaded Apache Jackrabbit, and
> >developed (from a variety of sources) a couple of working
> >repositories. Further, I haven't added anything to the standard
> >configuration.
> >
> >e.g.
> >
> >/home/milhri
> > JCRTest.java
> > repotest
> > JackTest.java
> > repotest2
> >
> >/home/milhri/repotest2
> > jaas.config
> > repository
> > repository.xml
> > versions
> > workspaces
> >
> >In both cases, I am using local flat files for persistent storage.
> >I need to demo persistent data storage in a database.
> >
> >Database server = DB2/6000 8.2.1
> >
> >We currently use this database as persistent storage for a J2EE
> >application.
> >
> >Can someone lend assistance getting a similar example program to
> >persist data in the database above?
> >
> >Thanks.
> >
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation