[Design of POJO Server] - Re: MainDeployer MBean methods in JBoss 5
by Wolfgang Knauf
I'm stuck. I found the deployment manager, but now I don't know how to continue. Google does not help, either.
How do I deploy an application and wait for deployment? Has anybody a small code snippet?
My code up to now (to get the EAR deployer):
try {
| System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| System.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
| System.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
|
| DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();
|
| DeploymentFactory[] factories = dfm.getDeploymentFactories();
| System.out.println(factories.length);
| for (int i = 0; i < factories.length; i++) {
| System.out.println("Factory: " + factories);
| }
| DeploymentManager dm = dfm.getDeploymentManager(DeploymentManagerImpl.DEPLOYER_URI, null, null);
|
| System.out.println("DeploymentManager: " + dm);
|
| Target[] targets = dm.getTargets();
|
| javax.enterprise.deploy.spi.TargetModuleID[] modules;
| modules = dm.getAvailableModules(javax.enterprise.deploy.shared.ModuleType.EAR, targets);
|
| System.out.println(targets.length + " " + targets[0]);
| System.out.println(modules);
| } catch (Exception e) {
| e.printStackTrace();
| }
"getAvailableModules" returns always null (http://jira.jboss.org/jira/browse/JBAS-4078).
The only hint I found is this: http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/trunk/testsuite/src/ma.... But I'm not sure whether all those lines of code are required, so I would be glad if someone could help me without having to dig through all this code.
Hope someone can help
Wolfgang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162266#4162266
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162266
15 years, 10 months
[Design of JBoss Remoting, Unified Invokers] - 2.4.0 PDF Documentation issue
by trustin
I'm reading the PDF version of the Remoting 2.4.0 Guide, and found a few subtle issues with formatting:
* URL is not represented as a link. Clicking on a link in a PDF viewer should show the URL in a user's preferred browser. An example can be found in the section 1.3, page 2.
* Some example code has unnecessarilly big indentention. Please take a look at the section 5.1.1.1, page 15.
* Some example code goes beyond the page margin, consequently being truncated. Please take a look at the page 20.
I think these needs to be fixed and I can definitely contribute as I read the guide. Let me try to check in the fixes whenever possible.
However, the problem that an example code goes beyond the page border needs some changes in our docbook style, which is beyond my knowledge. I think we can work around by formatting the code beautifully meanwhile.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162204#4162204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162204
15 years, 10 months