David Bosschaert [http://community.jboss.org/people/bosschaert] created the discussion
"What is the minimum configuration to register a Deployer?"
To view the discussion, visit: http://community.jboss.org/message/546018#546018
--------------------------------------------------------------
I'm trying to build a simplistic deployer using the structure in
http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunkhttp://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk
Just registering my SimpleDeployer (extends AbstractDeployer) as a bean clearly isn't enough as I'm not getting the deploy() and undeploy() callbacks when I call Main.deploy(someurl) after I've installed my deployer. Do I need to register it somehow?
My current registration looks like this:
<deployment xmlns="urn:jboss:bean-deployer:2.0"> <bean name="SimpleDeployer" class="org.acme.SimpleDeployer"/></deployment>
I have the following code:
// This deploys my Simple Deployer as above
Main.deploy("${demos.home}/deployer/src/main/resources/META-INF/deployer-beans.xml");Main.validate(); Thread.sleep(2000);Main.deploy("${demos.home}/deployer/src/main/resources/META-INF/some-other-beans.xml");Main.validate(); Thread.sleep(2000);Main.undeploy("${demos.home}/deployer/src/main/resources/META-INF/some-other-beans.xml");Main.validate();
I can see that the constructor of my SimpleDeployer is getting called, but it doesn't get any deployment callbacks when I call Main.deploy() later on...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546018#546018]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"Implementing a non-flat deployment for Weld Integration"
To view the discussion, visit: http://community.jboss.org/message/546016#546016
--------------------------------------------------------------
> Now, the main question that I have is how to create the Archives for the jars in the lib dir? And how to have those jars scanned for XML files?
We could do it per invocation.
e.g. (pseudo code)
Class<?> beanClass = ...; // parameter from Deployment::loadBeanDeploymentArchive
BDA bda = getBDA(beanClass);
if (bda == null)
{
URL jarURL = getJarURL(beanClass);
URL beansXML = getBeansXML(jarURL);
if (beansXML == null)
return null;
// TODO ... some sort of simple embedded Weld scanning mechanism
}
Since I guess we don't to do much for those jars; e.g. they should not have JEE components?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546016#546016]
Start a new discussion in JBoss Microcontainer Development POJO Server at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"JBPM-2694 and JBPM-2798"
To view the discussion, visit: http://community.jboss.org/message/546011#546011
--------------------------------------------------------------
Hi Maciej,
Actually, before I saw the Martin's patch, I have just create a patch just as same as you mentioned, But I am worried if people have to configure JTA twice, both in hibernate.cfg.xml and jbpm.cfg.xml, they could make mistake. So I think Martin's patch may be better.
About JBPM-2798, I am really not sure if this is caused by the compositeIds(), so I think we could deplay this issue and wait for somebody to clarify it.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546011#546011]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"Historytask query"
To view the discussion, visit: http://community.jboss.org/message/546010#546010
--------------------------------------------------------------
Hi zhiyong,
search by process definition infor is more complicated. Please there is no table for process definition, and the id, key, name, version column was stored in the deploy_prop table. I am afraid you have to use lots of 'join' to achieve this.
And if you want to get Session, please use this:
EnvironmentImpl.getFromCurrent(Session.class);
before using this, please make sure you have already open an Environment.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546010#546010]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]