[jboss-dev-forums] [JBoss AS7 Development] - Re: Embedded AS

Kabir Khan do-not-reply at jboss.com
Tue Nov 9 09:24:17 EST 2010


Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] created the discussion

"Re: Embedded AS"

To view the discussion, visit: http://community.jboss.org/message/570267#570267

--------------------------------------------------------------
> David Lloyd wrote:
> 
> > Jason Greene wrote:
> > 
> > > David Lloyd wrote:
> > > 
> > > Well, any of the following solutions would work:
> > > 1. Run embedded stuff in a fully modularized environment
> > > 2. Put everything on the app classpath (and hope there's no duplicate dependencies...)
> > > 3. Use a hybrid solution with a customized module repos where no packages are duplicated between modules and the app class path
> > > 
> > > Just using the app classpath is the simplest, assuming you don't hit any duplicate issues.
> > I had typed up this nice really well thought out post, but the forums decided to eat it. So instead I will summarize  :) 
> > 
> > Basically I think 2 is a non-option as it will be brittle and it directly contradicts with our hide internal impl requirement. Not to mention if we are testing a client server protocol we actually do want the classes to be in separate loaders.
> 
> I don't think all our requirements apply for all embedded use cases.  That said I don't think that the flat-classpath embedded arrangement is suitable for testing our own stuff in most cases, but I think some users will want to do it that way.  I agree that long-term we should focus on encouraging users to run in a modularized environment.

For our tests I am going with 1 (or really 3), the custom test runner makes it a lot nicer and easier than what I had before.

Once this has taken a bit more shape, I would like to extract the embedded startup into an embedded/ module with options for starting embedded AS in both flat and modular modes so that it can be consumed directly, at the moment this is hidden away in the testsuite.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/570267#570267]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101109/5b6358b7/attachment.html 


More information about the jboss-dev-forums mailing list