You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Santhosh Nayak <gs...@gmail.com> on 2011/02/03 11:41:07 UTC

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

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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

Posted by Martin Gainty <mg...@hotmail.com>.
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: dantran@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 <gs...@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-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
 		 	   		  

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

Posted by Dan Tran <da...@gmail.com>.
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 <gs...@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


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

Posted by Wayne Fay <wa...@gmail.com>.
>    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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org