Issue Details (XML | Word | Printable)

Key: OPENEJB-894
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Blevins
Reporter: David Blevins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenEJB

LocalInitialContext.close() to shutdown embedded container

Created: 16/Aug/08 04:59 AM   Updated: 25/Jun/09 10:13 PM
Return to search
Component/s: configuration
Affects Version/s: 3.0-beta-1, 3.0-beta-2, 3.0
Fix Version/s: 3.1

Time Tracking:
Not Specified

Resolution Date: 25/Sep/08 07:36 PM


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
David Blevins added a comment - 16/Aug/08 05:01 AM
$ svn ci container server
Sending container/openejb-core/src/main/java/org/apache/openejb/OpenEJB.java
Sending container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
Sending container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/JndiEncBuilder.java
Adding container/openejb-core/src/main/java/org/apache/openejb/client/LocalInitialContext.java
Sending container/openejb-core/src/main/java/org/apache/openejb/client/LocalInitialContextFactory.java
Adding container/openejb-core/src/main/java/org/apache/openejb/core/TransactionSynchronizationRegistryWrapper.java
Sending container/openejb-core/src/main/java/org/apache/openejb/spi/Assembler.java
Adding container/openejb-core/src/test/java/org/apache/openejb/RecycleTest.java
Deleting container/openejb-core/src/test/resources/META-INF/application.xml
Sending container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
Transmitting file data .........
Committed revision 686450.


David Blevins added a comment - 16/Aug/08 05:18 AM
Think maybe it's a bad idea to have enabled by default. Maybe should force someone to add a property to the initialcontext to specify how much activity should be done on initialcontext.close(). The close() method seems would be most commonly used for login/logout.

David Blevins added a comment - 25/Sep/08 07:36 PM
Off my default. Enabled by setting the "openejb.embedded.initialcontext.close" InitialContext property to "destroy"

David Blevins added a comment - 25/Jun/09 10:13 PM
For those people using maven, the recommended approach is to set the surefire option <forkMode>pertest</forkMode> which is nearly as fast and cleans out 100% of all state. http://maven.apache.org/plugins/maven-surefire-plugin/examples/forking.html