Running The HSQLDB org.hsqldb.Server Java in the background!

2011-02-03 Thread Santhosh Nayak

Hi,
I tried to run the HSQLdb server using the maven exec:java plugin. But
the Server is starting in the background. But my requirement needs it to run
in the background, since I want to execute the sql scripts using the same
command prompt.So,
1) Is there any way to tell the maven to run exec-maven-plugin java goal
in the background? 
2) And what is best way to shutdown the hsqldb server using maven
(goals)?

thanks,
Santhosh

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Running-The-HSQLDB-org-hsqldb-Server-Java-in-the-background-tp3369095p3369095.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Running The HSQLDB org.hsqldb.Server Java in the background!

2011-02-03 Thread Dan Tran
It is best to write a plugin start/stop your db

this may help: http://jira.codehaus.org/browse/MOJO-557



On Thu, Feb 3, 2011 at 2:41 AM, Santhosh Nayak gsanthosh...@gmail.com wrote:

 Hi,
    I tried to run the HSQLdb server using the maven exec:java plugin. But
 the Server is starting in the background. But my requirement needs it to run
 in the background, since I want to execute the sql scripts using the same
 command prompt.So,
 1)     Is there any way to tell the maven to run exec-maven-plugin java goal
 in the background?
 2)     And what is best way to shutdown the hsqldb server using maven
 (goals)?

 thanks,
 Santhosh

 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Running-The-HSQLDB-org-hsqldb-Server-Java-in-the-background-tp3369095p3369095.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Running The HSQLDB org.hsqldb.Server Java in the background!

2011-02-03 Thread Martin Gainty

assuming dbmanager.rc and setup.rc are located in your home folder and are 
configured properly what happens when you execute the Server class with  
java -cp ../lib/hsqldb.jar org.hsqldb.Server -database.0 file:mydb -dbname.0 
xdb (appending  to run in background)
?

http://www.hsqldb.org/doc/guide/ch01.html#N10148
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Thu, 3 Feb 2011 09:00:08 -0800
 Subject: Re: Running The HSQLDB org.hsqldb.Server Java in the background!
 From: dant...@gmail.com
 To: users@maven.apache.org
 
 It is best to write a plugin start/stop your db
 
 this may help: http://jira.codehaus.org/browse/MOJO-557
 
 
 
 On Thu, Feb 3, 2011 at 2:41 AM, Santhosh Nayak gsanthosh...@gmail.com wrote:
 
  Hi,
 I tried to run the HSQLdb server using the maven exec:java plugin. But
  the Server is starting in the background. But my requirement needs it to run
  in the background, since I want to execute the sql scripts using the same
  command prompt.So,
  1) Is there any way to tell the maven to run exec-maven-plugin java goal
  in the background?
  2) And what is best way to shutdown the hsqldb server using maven
  (goals)?
 
  thanks,
  Santhosh
 
  --
  View this message in context: 
  http://maven.40175.n5.nabble.com/Running-The-HSQLDB-org-hsqldb-Server-Java-in-the-background-tp3369095p3369095.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
  

Re: Running The HSQLDB org.hsqldb.Server Java in the background!

2011-02-03 Thread Wayne Fay
    I tried to run the HSQLdb server using the maven exec:java plugin. But
 the Server is starting in the background. But my requirement needs it to run
 in the background, since I want to execute the sql scripts using the same
 command prompt.So,

You may want to ask a similar question on the HSQLdb User list. There
may be HSQLdb users who are doing this in their own Maven builds who
have some suggestions for you.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org