Re: [jboss-dev-forums] [JBoss AS 7 Development] - Single Installation Patching
by Brian Stansberry
Brian Stansberry [https://community.jboss.org/people/brian.stansberry] commented on the document
"Single Installation Patching"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-47500#comment-11149
--------------------------------------------------
At FibosubsystemAdd, line 74, you wouldn't be able to use contentItem.get(URL).set(urlString);
Instead, you need to convert the URL into a filesystem path (which hopefully will work) and then do:
contentItem.get(PATH).set(filesystemPath);
contentItem.get(ARCHIVE).set(false);
I haven't tried this.
The bigger problem is the fact that you are going to be writing to the module. That means when we patch the module and we attempt to detect if the user has modified the module so we can require that we approve the override, we're going to see that the module doesn't have the same hash as the original one did when we prepared the patch.
--------------------------------------------------
13 years, 1 month
[JBoss AS 7 Development] - Extensions, Subsystem and their Dependencies
by Dmitri Zamysloff
Dmitri Zamysloff [https://community.jboss.org/people/dzcs] created the discussion
"Extensions, Subsystem and their Dependencies"
To view the discussion, visit: https://community.jboss.org/message/776404#776404
--------------------------------------------------------------
Hi guys,
I am developing new extension for Jboss 7.1.1.Final for project needs and actually, thanx to people who did the documentation and archetype, I am pretty done. One thing which is not disclosed in documentation and which I cannot find anywhere is how to define dependencies in my subsystem or extension - practically how to say jboss, that my extension depends on other subsystems.
In my example I get datasource name and topic configured for my subsystem as simple string attributes (can be I had to use something else - dunno - so far string). But how can I ensure, that "datasources" and "messaging" subsystems are started and have already deployed their stuff (datasources and topics) before start of my subsystem is called?
As I said this topic is not documented well and unfortunatelly I could not find much info on it. Javadoc is also mostly absent.
Many thanks for your help in advance.
Dmitri
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776404#776404]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
Re: [jboss-dev-forums] [JBoss AS 7 Development] - Single Installation Patching
by John Mazzitelli
John Mazzitelli [https://community.jboss.org/people/mazz] commented on the document
"Single Installation Patching"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-47500#comment-11148
--------------------------------------------------
Regarding "Patching Deployments" along with the "Mixed Approach" prototype described in https://community.jboss.org/docs/DOC-25627 ExtendingAS7 page. The prototype says to package the deployment (say, an EAR) in an unexploded, zipped format (so you literally would have one file in the module called "mydep.ear" or "myapp.war").
Should it be possible to allow for the Mixed Approach to deploy exploded content (so the module would have a directory structure "mydep.ear/<the content>"). How would this affect this patching mechanism?
I bring this up because of the following use-case : suppose we have legacy code (that used to go in the scanned deployments directory but will now be using the new Mixed Approach method) - and that legacy code reads individual files from within the ear (and could even WRITE files to directories under the ear).
So, the questions are:
1) Can the Mixed Approached deploy exploded content (the prototype's code assumes unexploded, I'm not sure what the code should look like if it wants to deploy exploded deployments)?
2) Does deployment of exploded content via the Mixed Approach present any problems/issues wrt the new patching mechanism?
--------------------------------------------------
13 years, 1 month
Re: [jboss-dev-forums] [PicketBox Development] - JBoss AS7: Security : Custom Login Modules
by Jay Kumar SenSharma
Jay Kumar SenSharma [https://community.jboss.org/people/jaysensharma] commented on the document
"JBoss AS7: Security : Custom Login Modules"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-17357#comment-11145
--------------------------------------------------
In the Original article the PATH of the properties file (in th value) is not mentioned which will cause the validation to fail:
> <module-option name="usersProperties" value="users.properties"/>
> <module-option name="rolesProperties" value="roles.properties"/>
It worked for me after adding the location of these propertieds files as following:
> <module-option name="usersProperties" value="${jboss.server.config.dir}/users.properties"/>
> <module-option name="rolesProperties" value="${jboss.server.config.dir}/roles.properties"/>
--------------------------------------------------
13 years, 1 month