Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 40024 invoked from network); 2 Oct 2002 03:01:46 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Oct 2002 03:01:46 -0000 Received: (qmail 5209 invoked by uid 97); 2 Oct 2002 03:02:25 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 5165 invoked by uid 97); 2 Oct 2002 03:02:24 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 5153 invoked by uid 98); 2 Oct 2002 03:02:23 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) content-class: urn:content-classes:message Subject: RE: [JBoss-user] Starting JBoss from ANT Date: Wed, 2 Oct 2002 11:01:46 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JBoss-user] Starting JBoss from ANT Thread-Index: AcJpvtCVSCqEdH2cTfKJmRwX2oIXLgAAJQCw From: "Dushyant Shrivastava" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi david, Thanks for your reply! Yes you are right, I shouldn't have wasted time = on this stuff. I Guess I was trying to get out of it easily. I did = suggest another approach, the proxy approach to my Project Manager which = I think you are suggesting. Have an external client as a test case which = then calls an mBean (acting as a proxy to tests) inside JBoss to = actually execute the tests! Now just a quick question though, why can't i simply have a session bean = which would look up the local interfaces of other beans instead of an = Mbean or is a general convention to implement such a scenario with = mBeans? I still haven't got around to test that mBean dependency problem i was = having and you had suggested trialling it out with a simple mBean. I = keep getting shoved arounf in all sorts of different projects, but will = try that put and let you know! Cheers Dushy -----Original Message----- From: David Jencks [mailto:davidjencks@directvinternet.com] Sent: Wednesday, October 02, 2002 10:52 AM To: Ant Users List Subject: Re: [JBoss-user] Starting JBoss from ANT I think it is extremely unlikely that you will succeed in getting jboss = to run successfully in the ant vm (I have had bad experiences with the ant classloaders), and if you fork jboss you might as well have started = jboss first. Even if you succeed, I would not trust any test results due to = the different operational environment. I STRONGLY recommend that you use Dains junitejb, which I think Jason = just added to his "blocks" module in HEAD, and you can see examples of in the cmp2 tests, or just write mbeans that call the local interface methods.=20 The mbean technique in particular is really simple, you would have many running tests by now if you had used it instead of trying to start jboss = in exotic ways. david jencks On 2002.10.01 22:38:09 -0400 Dushyant Shrivastava wrote: > Hi again, > I have just been trying to figure out what exactly you are doing with > "spawn". This is what I am doing >=20 > > > > =20 > > > = classpath=3D"${java.home}/../lib/tools.jar;${jboss.home}/bin/run.jar;${jb= oss.home}/lib/crimson.jar"=09 > dir=3D"${jboss.home}/bin"> > /> > /> > > > >=20 > =20 > > > > =20 > > > >=20 > I don't even see the message "Started JBoss",I even tried the "Exec" = task > but still the same.=20 > I guess for once it would be nice If we were to get things working in = the > J2EE environment without any hassles :( and it gets even harder when = the > whole development team in the company is new to this environment >=20 > Dushy >=20 > -----Original Message----- > From: James Higginbotham [mailto:jhigginbotham@betweenmarkets.com] > Sent: Tuesday, October 01, 2002 9:41 PM > To: jboss-user@lists.sourceforge.net; ant-user@jakarta.apache.org > Subject: RE: [JBoss-user] Starting JBoss from ANT >=20 >=20 > Right.. What we did was spawn the jboss process, then create an = internal > custom ant tag to watch the jboss log for the microkernel started = (since > it releases the blocking after its initial startup but before = deployment > has occurred. Once the log says that things are ok, we then launch > junit. Here is a snippt of what we did, but you may have to do your = own > log watcher or similiar check, as I can't release the code (sorry).=20 > =20 > > > > > pattern=3D"Started in" lines=3D"5" timeout=3D"360"/> > >=20 > James >=20 > -----Original Message----- > From: Dushyant Shrivastava [mailto:dushys@yambay.com]=20 > Sent: Monday, September 30, 2002 11:01 PM > To: ant-user@jakarta.apache.org > Cc: jboss-user@lists.sourceforge.net > Subject: [JBoss-user] Starting JBoss from ANT > =09 > =09 >=20 >=20 > Hi,=20 > I had posted a message earlier about running JUnit tests inside > the same VM as JBoss so as to enable the testing of local interfaces = and > I did get a few responses back. Thanks everyone! >=20 > Now one of the most common response was to start Jboss > environment from within my tests.Hence i started by adding the = following > lines in my build.xml to start JBoss server >=20 > .=20 > =20 > =20 > =20 > =20 > =20 > executable =3D "${jboss.home}/bin/run.bat"=20 > os =3D "Windows 2000">=20 > =20 > =20 >=20 > However, now it starts JBoss but then does not execute any tasks > after this one as JBoss just holds on to the VM. Exec task does not > support the FORK option either, but in any case I do not wish to use = the > fork option as it will beat the whole purpose of running the tests > inside the same JVM as JBoss. Does anyone has any idea how to get = around > this problem? >=20 > P.S I know Cactus is one of the way out but at the moment, my > project team is not too keen on trialling out another new tool and = Junit > would be the easiest way for our implementation. >=20 > In short I would apprecate if anyone has already done this and > could give me specific directions or advise me on how to run the JUnit > tests inside the same VM as JBoss so that I can test my local = interfaces > as well! >=20 > Also attached is my build.xml file for anyone who wants to > investigate this further,=20 >=20 > Thanks a lot in advance,=20 >=20 > Cheers=20 > Dushy=20 > ______________________ > DUSHYANT SHRIVASTAVA > Software Engineer > =09 > YAMBAY > =09 > tel +61 (0) 8 9323 6999 > mob +61 (0) 402 902 652 > fax +61 (0) 8 9325 2688 > web www.yambay.com=20 > =09 > Yambay Technologies Pty Ltd > 7th Floor, The Victoria, 14-16 Victoria Ave, Perth. WA, 6000, > Australia > =09 > = ________________________________________________________________________ > _________________________ > =09 > This message and any files transmitted with it are confidential > and are intended solely for the use of those persons to > whom the message is addressed. If you have received this message > in error, please destroy and delete this > message from your computer. Any unauthorised form of > reproduction of this message or any files transmitted with > it is strictly prohibited. yambay does not make any warranty > concerning the security of any information electronically > transmitted and disclaims all liability for the proper and > complete transmission of any information contained or purportedly > contained in this message, nor for any delay in its receipt. If > you receive this message in error please notify the sender. > =09 > = ________________________________________________________________________ > _________________________=20 > <>=20 >=20 >=20 > -- > To unsubscribe, e-mail: = > For additional commands, e-mail: = >=20 >=20 >=20 -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: