[
https://issues.jboss.org/browse/AS7-6006?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler commented on AS7-6006:
-------------------------------------
Please have a look at [#3559|https://github.com/jbossas/jboss-as/pull/3559]. It shows that
both of these use cases
{code}
@Test
public void testWarDeploymentThroughBundleContext() throws Exception {
InputStream input = deployer.getDeployment(SIMPLE_WAR);
Bundle bundle =
context.installBundle("webbundle://simple?Bundle-SymbolicName=com.example",
input);
try {
bundle.start();
String result = performCall("/simple/servlet?input=Hello");
Assert.assertEquals("Hello", result);
// Test resource access
result = performCall("/simple/message.txt");
Assert.assertEquals("Hello from Resource", result);
} finally {
bundle.uninstall();
}
}
@Test
public void testWarDeploymentThroughManagement() throws Exception {
InputStream input = deployer.getDeployment(SIMPLE_WAR);
ServerDeploymentHelper server = new
ServerDeploymentHelper(managementClient.getControllerClient());
String runtimeName =
server.deploy("webbundle://simple?Bundle-SymbolicName=com.example", input);
try {
String result = performCall("/simple/servlet?input=Hello");
Assert.assertEquals("Hello", result);
// Test resource access
result = performCall("/simple/message.txt");
Assert.assertEquals("Hello from Resource", result);
} finally {
server.undeploy(runtimeName);
}
}
{code}
work with the approach I suggested
[
here|http://lists.jboss.org/pipermail/jboss-as7-dev/2012-November/007278....]
128.4 Web URL Handler
---------------------
Key: AS7-6006
URL:
https://issues.jboss.org/browse/AS7-6006
Project: Application Server 7
Issue Type: Sub-task
Components: OSGi
Affects Versions: 7.2.0.Alpha1
Reporter: David Bosschaert
Assignee: David Bosschaert
Fix For: 7.2.0.CR1
The webbundle: URL handler needs to be provides as described in section 128.4 of the
specification.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira