Tests for execution in managed environments / J2EE containers?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > Tests for execution in managed environments / J2EE containers?




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Tests for execution in managed environments / J2EE containers?  
Jörg von Frantzius


Report This Message To A Moderator Edit/Delete Message


 
12-13-05 12:45 PM

Hi,

does the TCK currently include any tests for managed environments?

Thanks for information,
Jörg

--
 ________________________________________
__________________
Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
|                Milastr. 4
Tel +49 (0)30 4435 099 26      |              10437 Berlin
Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
 _______________________________|________
__________________







[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
erik@jpox.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-13-05 12:45 PM

No.

Quoting Jörg von Frantzius <joerg.von.frantzius@artnology.com>:

> Hi,
>
> does the TCK currently include any tests for managed environments?
>
> Thanks for information,
> Jörg
>
> --
>  ________________________________________
__________________
> Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
>                                |                Milastr. 4
> Tel +49 (0)30 4435 099 26      |              10437 Berlin
> Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
>  _______________________________|________
__________________
>
>









[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
Michael Bouschen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-13-05 12:45 PM

Hi Jörg,

> Hi,
>
> does the TCK currently include any tests for managed environments?

not that I'm aware of.

Regards Michael

>
> Thanks for information,
> Jörg
>


--
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66
Fax.:++49/30/2175 2012		D-10783 Berlin






[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
Jörg von Frantzius


Report This Message To A Moderator Edit/Delete Message


 
12-13-05 12:45 PM

Alright, does anybody know if there is some rationale behind that? I'd
think that a majority of the JDO users are writing web applications and
need to run their stuff in an application server.

Doesn't that mean the TCK is of limited use for the majority of JDO users?
(Trying to be a little provocative here, the TCK surely still is very
useful ;)


erik@jpox.org schrieb:
> No.
>
> Quoting Jörg von Frantzius <joerg.von.frantzius@artnology.com>:
>
> 
>
>
>
>
>
>


--
 ________________________________________
__________________
Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
|                Milastr. 4
Tel +49 (0)30 4435 099 26      |              10437 Berlin
Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
 _______________________________|________
__________________







[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
erik@jpox.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-13-05 12:45 PM

To automate a JCA adapter test suite is hard. If you point us one open
source/free JCA container+Tx manager easy to launch from a junit test, I wou
ld
be glad to provide some unit tests.

Quoting Jörg von Frantzius <joerg.von.frantzius@artnology.com>:

> Alright, does anybody know if there is some rationale behind that? I'd
> think that a majority of the JDO users are writing web applications and
> need to run their stuff in an application server.
>
> Doesn't that mean the TCK is of limited use for the majority of JDO users?
> (Trying to be a little provocative here, the TCK surely still is very
> useful ;)
>
>
> erik@jpox.org schrieb: 
>
>
> --
>  ________________________________________
__________________
> Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
>                                |                Milastr. 4
> Tel +49 (0)30 4435 099 26      |              10437 Berlin
> Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
>  _______________________________|________
__________________
>
>









[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
erik@jpox.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-13-05 10:45 PM

I found one project that may be interesting. It is called Jencks (David Jenc
ks),
and apache licensed.

There are some samples of it in combination of Spring. Could the TCK incorpo
rate
JCA adapter tests if technically feasible?

Regards,

Quoting erik@jpox.org:

> To automate a JCA adapter test suite is hard. If you point us one open
> source/free JCA container+Tx manager easy to launch from a junit test, I
> would
> be glad to provide some unit tests.
>
> Quoting Jörg von Frantzius <joerg.von.frantzius@artnology.com>:
> 
>
>
>
>









[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
Jörg von Frantzius


Report This Message To A Moderator Edit/Delete Message


 
12-13-05 10:45 PM

One approach might by to start up the app server and have some kind of
startup class run the tests, i.e. a class that is invoked by the app
server upon startup.

It might be possible to startup the app server from within JUnit, but if
not that only means a second launch has to be made next to launching the
JUnit test suite.

erik@jpox.org schrieb:
> To automate a JCA adapter test suite is hard. If you point us one open
> source/free JCA container+Tx manager easy to launch from a junit test, I w
ould
> be glad to provide some unit tests.
>
> Quoting Jörg von Frantzius <joerg.von.frantzius@artnology.com>:
>
> 
>
>
>
>
>
>


--
 ________________________________________
__________________
Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
|                Milastr. 4
Tel +49 (0)30 4435 099 26      |              10437 Berlin
Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
 _______________________________|________
__________________







[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
Jörg von Frantzius


Report This Message To A Moderator Edit/Delete Message


 
12-14-05 12:45 PM

I think it would be nice if the tests would also say something about the
real world usability of the tested JDO implementation, i.e. whether it
will run inside e.g. the most widespread open-source J2EE container.

What does it help to be standards-compliant if e.g. my appserver ist
much more picky about things than the test container? It turned out e.g.
that JBoss doesn't like any calls to begin(), commit() or rollback() on
a java.sql.Connection that has autoCommit set to true.

How about this:

* a JBoss server is started from within the JUnit testsuite (the
JBoss installation would best be included in the test project) in
a separate VM,
* (the implementation is deployed in it using .rar and ds.xml)
* the test methods invoke individual corresponding JSPs in the JBoss
that try-catch Exception and either return a success HTML or the
stacktrace of any occurred exception


erik@jpox.org schrieb:
> I found one project that may be interesting. It is called Jencks (David Je
ncks),
> and apache licensed.
>
> There are some samples of it in combination of Spring. Could the TCK incor
porate
> JCA adapter tests if technically feasible?
>
> Regards,
>
> Quoting erik@jpox.org:
>
> 
>
>
>
>
>
>


--
 ________________________________________
__________________
Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
|                Milastr. 4
Tel +49 (0)30 4435 099 26      |              10437 Berlin
Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
 _______________________________|________
__________________







[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
Karan Malhi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-14-05 10:45 PM

Hi Jorg,

Getting an exception when in auto-commit mode should not be a JBoss specific
thing. Below is the description of the commit method from
java.sql.Connection class:

commit

public void *commit*()
throws SQLException
<file:///c:/Documents%20and%20Settings/karan/My%20Documents/DOCS/j2sdk1.4.2/
docs/api/java/sql/SQLException.html>

*Throws:* SQLException<file:///c:/Documents%20and%20Settings/karan/My%20Docu
ments/DOCS/j2sdk1.4.2/docs/api/java/sql/SQLException.html>-
if a database access error occurs or this
Connection object is in auto-commit mode

On 12/14/05, Jörg von Frantzius <joerg.von.frantzius@artnology.com> wrote:
>
> I think it would be nice if the tests would also say something about the
> real world usability of the tested JDO implementation, i.e. whether it
> will run inside e.g. the most widespread open-source J2EE container.
>
> What does it help to be standards-compliant if e.g. my appserver ist
> much more picky about things than the test container? It turned out e.g.
> that JBoss doesn't like any calls to begin(), commit() or rollback() on
> a java.sql.Connection that has autoCommit set to true.
>
> How about this:
>
>     * a JBoss server is started from within the JUnit testsuite (the
>       JBoss installation would best be included in the test project) in
>       a separate VM,
>     * (the implementation is deployed in it using .rar and ds.xml)
>     * the test methods invoke individual corresponding JSPs in the JBoss
>       that try-catch Exception and either return a success HTML or the
>       stacktrace of any occurred exception
>
>
> erik@jpox.org schrieb: 
> Jencks), 
> incorporate 
> I 
> and 
> users? 
>
>
> --
>  ________________________________________
__________________
> Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
>                                |                Milastr. 4
> Tel +49 (0)30 4435 099 26      |              10437 Berlin
> Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
>  _______________________________|________
__________________
>
>


--
Karan Malhi






[ Post a follow-up to this message ]



    Re: Tests for execution in managed environments / J2EE containers?  
Jörg von Frantzius


Report This Message To A Moderator Edit/Delete Message


 
12-14-05 10:45 PM

Karan Malhi schrieb:
> Hi Jorg,
>
> Getting an exception when in auto-commit mode should not be a JBoss specif
ic
> thing.
That's true, but it turned out to be a problem for JPOX only recently
when using JBoss 4.0.3.
> Below is the description of the commit method from
> java.sql.Connection class:
>
>  commit
>
> public void *commit*()
>             throws SQLException
> <file:///c:/Documents%20and%20Settings/karan/My%20Documents/DOCS/j2sdk1.4.
2/docs/api/java/sql/SQLException.html>
>
> *Throws:* SQLException<file:///c:/Documents%20and%20Settings/karan/My%20Do
cuments/DOCS/j2sdk1.4.2/docs/api/java/sql/SQLException.html>-
> if a database access error occurs or this
> Connection object is in auto-commit mode
>
> On 12/14/05, Jörg von Frantzius <joerg.von.frantzius@artnology.com> wrote:
> 
>
>
> --
> Karan Malhi
>
>


--
 ________________________________________
__________________
Dipl.-Inf. Jörg von Frantzius  |            artnology GmbH
|                Milastr. 4
Tel +49 (0)30 4435 099 26      |              10437 Berlin
Fax +49 (0)30 4435 099 99      |  http://www.artnology.com
 _______________________________|________
__________________







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:01 PM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register