Shutting the database in a java application

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

Shutting the database in a java application

by karanjit cheema :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi
i am using this code to shutdown an instance of the database which i
started in a java application:

// shut down the database
       DatabaseInstanceManager manager =
(DatabaseInstanceManager)col.getService("DatabaseInstanceManager",
"1.0");
       manager.shutdown();

but it is giving me the error that only users in group dba can
shutdown the database. how do i log in as a user of group-dba?
please help


Regards

Karanjit Cheema

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Shutting the database in a java application

by Dannes Wessels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Wed, Nov 4, 2009 at 11:32 AM, karanjit cheema <karanjitcheema@...> wrote:
but it is giving me the error that only users in group dba can
shutdown the database. how do i log in as a user of group-dba?
please help

You could check the samples directory (e.g. multipledatabases.java) or EmbeddedExistTester.java (in release 1.4) how to do it. The bundled documentation will suggest what to do in detail.

regards

Dannes

ps.
some hints: http://www.exist-db.org/devguide_xmldb.html


--
eXist-db Native XML Database - http://exist-db.org
Join us on linked-in: http://www.linkedin.com/groups?gid=35624

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open