Re: [jboss-dev-forums] [JBoss Microcontainer Development] - ShrinkWrapDeployer
by Andrew Rubinger
Andrew Rubinger [http://community.jboss.org/people/ALRubinger] replied to the discussion
"ShrinkWrapDeployer"
To view the discussion, visit: http://community.jboss.org/message/540422#540422
--------------------------------------------------------------
MC bean enabling native deployment of ShrinkWrap archives. Should be centralized because it'll be used in EmbeddedAS, Embedded EJB3, Arquillian, etc.
In a nutshell, this:
/**
* Deployer for ShrinkWrap {@link Archive} types. End-user
* view to adapt archives directly into the Virtual Deployment
* Framework.
*
* @author <a href="mailto:andrew.rubinger@jboss.org">ALR</a>
* @version $Revision: $
*/
public interface ShrinkWrapDeployer
{
//-------------------------------------------------------------------------------------||
// Contracts --------------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* Deploys the specified archives into the Virtual Deployment Framework
* as an atomic operation.
*
* @param archives The archives to deploy
* @throws IllegalArgumentException If the archives are not specified (null)
* @throws DeploymentException If an error occurred in deployment
*/
void deploy(Archive<?>... archives) throws IllegalArgumentException, DeploymentException;
/**
* Undeploys the specified archives from the Virtual Deployment Framework. Each
* archive must have been previously deployed in via this {@link ShrinkWrapDeployer}
* instance, else it will be ignored and logged as a warning.
*
* @param archives The archives to undeploy
* @throws IllegalArgumentException If the archives are not specified
* @throws DeploymentException If an error occurred during undeployment
*/
void undeploy(Archive<?>... archives) throws IllegalArgumentException, DeploymentException;
}
S,
ALR
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540422#540422]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months
[JCA Development] - Security integration for JCA 1.6
by Jesper Pedersen
Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] created the discussion
"Security integration for JCA 1.6"
To view the discussion, visit: http://community.jboss.org/message/540410#540410
--------------------------------------------------------------
Scott, if you have time to take a look at the security requirements for the JCA 1.6 implementation that would be great.
Here are a couple of pointers to get started
* Chapter 16 in the specification - it describes requirements plus use-cases
* Investigate security infrastructure in AS/trunk to align requirements
* Create a deisgn for a simple security domain for the standalone project
* Start with a test case where a Work instance uses a SecurityContext
* and build from there
There are a couple of other requirements, since this is one of the big integration points for the project
* Test cases covering the use-cases described
* A chapter in the JCA Developer Guide describing the setup and integration
Keep in mind that this is one of the places where we need an internal SPI such that we can integrate with the standalone setup and the setup used in JBoss Application Server.
You +can+ take a look at the security integration in the current JCA implementation inside AS, but I want a clean design with well-defined integration points - and a documented way of locating the needed information.
For the first implementation of the SPI for the standalone part I would suggest that you start with a simple setup using properties files - similar to the UsersRolesLoginModule idea in JBossSX. And then build from there... The principal mapping tool could just be a file too...
And start with the requirements for the WorkManager (watch out for nested Work submissions with different SecurityContexts) - and save the MessageEndpoints for later.
The code should be located in the core/ module - and feel free to use EmbeddedJCA and the ShrinkWrap support for the test cases.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540410#540410]
Start a new discussion in JCA Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months