Hi all,
This is to know if I post to this list by e-mail do others see this mail
?. I asked a question in this list but it didn't appeared in the list. I
subscribed to this list from sourceforge.net. Is this the right way to post
to this list ?. Or is there any other good JBoss mailing list. I
Thanks, Dain. At first, I was encouraged by your reply, so I checked
out the source, but it doesn't address my needs. At least, the branch
I checked out (3.0 and jboss-head) could not run the testsuite
successfully without first firing up JBoss.
I want to be able to test my CMP's in an
give more info on how I used this stuff if you are interested.
-Fred
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Wednesday, December 11, 2002 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJB's
If you want
What's the current best practice for unit testing EJB's, (both Entity
and Session)?
I'm trying to avoid having to deploy them to a separate JBoss instance
to test them. More precisely, I want to be able to deploy them to an
in-memory container, if possible, similar to Hypersonic's in-memory
Title: RE: [JBoss-user] Testing EJB's
My advice will be to expose the remote interface of the component, so that
you can test is with standard JUnit test cases.
Its easy and you test framework is simple.
But, you have to deploy your component to JBoss
-Original Message-
From: Jim
, December 10, 2002 9:53 AM
To: jboss-user
Subject: [JBoss-user] Testing EJB's
What's the current best practice for unit testing EJB's, (both Entity
and Session)?
I'm trying to avoid having to deploy them to a separate JBoss instance
to test them. More precisely, I want to be able to deploy them
Jim,
I currently do not unit test either Entity or Session Beans. Entity Beans
are trivial to write, and I trust that the application server will persist
them as advertised. To unit test Session Beans would require that they be
deployed. Since deployment complicates unit testing and
This aproach does not test deployment descriptors. I've had quite a few
problems with missing ejb-ref, resource-ref, etc. What is especially bad
is that you do not know if your deployment descriptor has a problem
until you actually try to execute line of code that uses missing resource.
These are good points, and I appreciate yours and others' prompt
replies. However, the solutions presented so far seem to force me to
complicate my object model to facilitate testing.
I agree that an app that is difficult to test probably suffers from poor
design, but web apps by their very
Jim,
How do you think we test JBoss? Take a look at the CMP tests in the
testsuite. We have an addon to JUnit that can deploy and undeploy
applications. Also we have a tool that can run the tests on the server
side like (I wrote this to test local interfaces), but does not require
a
is
greatly minimized.
Craig
-Original Message-
From: Igor Fedorenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 3:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJB's
This aproach does not test deployment descriptors. I've had
quite a few
-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 3:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJB's
These are good points, and I appreciate yours and others' prompt
replies. However, the solutions presented so far seem
On Tue, Dec 10, 2002 at 02:32:17PM -0600, Dain Sundstrom wrote:
Jim,
How do you think we test JBoss? Take a look at the CMP tests in the
testsuite. We have an addon to JUnit that can deploy and undeploy
applications. Also we have a tool that can run the tests on the server
side like
On Tue, Dec 10, 2002 at 03:23:31PM -0500, Jim Crossley wrote:
The app I'm currently working on is very CRUD-ish; it does simple
read/write maintenance on a bunch of related objects. I don't want the
web tier to access the Entity beans directly -- this would violate the
transactional
Hello!
Has someone experience with testing EJBs using JUnit?
I've some entity beans and want to ensure that their basic functions
(creation, editing and deletion of records in the database) do work
properly after changes (see attachment TestProjectBean.java).
But I get a NoClassDefFoundError
Title: RE: [JBoss-user] Testing EJBs with JUnit
Yes we're doing itfor all of our beans as well. When it's run you need the jndi.properties file or to pass all of the jndi on the command line. I would guess that you don't have the classes available (Home /Remote interface) available. Also
I would love to see your example of using JUnit with an EJB.
Thanks!
-Noah Horton
-Original Message-
From: Emerson Cargnin - SICREDI Serviços
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJBs with JUnit
: [JBoss-user] Testing EJBs with JUnit
I just did a test with ejb / jaas and junit, let me know if
you want so
I can send it to you (about 1 meg). If someone else want too,
just tell me.
Emerson
John Moore wrote:
Yes we're doing itfor all of our beans as well. When it's
run you need
: Dimitri PISSARENKO [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Testing EJBs with JUnit
Hello!
Has someone experience with testing EJBs using JUnit?
I've some entity beans and want to ensure that their basic functions
Hi Emerson,
Can you send me a copy too.
Thanks,
Subu
-Original Message-
From: Emerson Cargnin - SICREDI Serviços [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 12:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJBs with JUnit
I just did a test
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Testing EJBs with JUnit
Hello!
Has someone experience with testing EJBs using JUnit?
I've some entity beans and want to ensure that their basic functions
(creation, editing
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJBs with JUnit
I just did a test with ejb / jaas and junit, let me know if
you want so
I can send it to you (about 1 meg). If someone else want too,
just tell me.
Emerson
would love to see your example of using JUnit with an EJB.
Thanks!
-Noah Horton
-Original Message-
From: Emerson Cargnin - SICREDI Serviços
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJBs with JUnit
I just
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJBs with JUnit
As there's so many people intersted in this code, i'm translating it and
will let it available through ftp (soon).
Dimitri PISSARENKO wrote:
Hello!
The JBossCMP example in the newest Quick Start guide uses my JUnit
.
Thanks!
-Noah Horton
-Original Message-
From: Emerson Cargnin - SICREDI Serviços
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Testing EJBs with JUnit
I just did a test with ejb / jaas and junit, let me know if
you want
Testing
Kam Lung Leung
System Architect
Wireless Web Access Inc.
___
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
Hello Everybody,
I have wrote a small application having 2 CMP beans and 1 session bean
in it. Now i am testing the performance and resource consumption of
application servers using this application. so i have deployed this
application on JBoss 2.2.1 version and starting 25 client, each firing
Naresh,
please have a look at the JBoss in production chapter in the manual.
There is also a special Performance section.
If you are already testing I would be really interested in hearing if
switching between the native_ and green_thread implementation of the JDK
gives any performance
the 'tuned-updates' option in jaws.xml is pretty critical - it prevents
wasting time updating the database with data that hasn't changed.
You can also impliment an 'boolean isModified()' method on your entity
beans that returns false if nothing changed. This will allow JBoss to
bypass even
testing
___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
30 matches
Mail list logo