deployment options
by Heiko Braun
FYI, can anyone on this list respond to dave?
Begin forwarded message:
> Hi Heiko,
>
> I've been following various discussions about the deployment scanner and the content repository for a while, and it doesn't seem like there's a clear answer. What do you think about it?
>
> I've seen people asking on Stack Overflow whether they are safe to use both deployment methods, and I know that I've laid some foundations to the docs by suggesting that the scanner is a developer tool, and not for production. This surprised some of our consulting team recently, who suggested that customers will use the scanner for app deployments in a production environment.
>
> Do you have any thoughts on this?
>
> Dave
12 years, 8 months
Component Updates MUST Be *Final* Only
by Jason T. Greene
We are tagging next Monday, and I want to avoid 2 pull requests for
every update (1 CR and then 1 Final). I would rather promote a component
to *Final*, and possibly have to update it again if there is a problem,
than to have the 2 updates to merge.
Thanks!
--
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat
12 years, 8 months
Expansion of variables in datasource configuration in standalone.xml
by Wolf-Dieter Fink
There is the possibility to overwrite the DS config with environment.
For test environment it looks like a simple way to switch datasources on
startup without editing the configuration.
See community : https://community.jboss.org/message/730156
All attributes are possible but the driver will fail:
===> not given by -D
13:38:23,146 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 27) Operation ("enable") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "ExampleDS")
]) - failure description: "JBAS014802: Cannot resolve expression
'expression \"${test.db.driver}\"' -- java.lang.IllegalStateException:
Failed to resolve expression: ${test.db.driver}"
===> given by -Dtest.db.driver=h2
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.${test_db_driver} (missing) dependents:
[service jboss.data-source.java:jboss/datasources/ExampleDS]
Looks like that the dependency is checked before replacing the environment.
This sounds to me that it should possible to use the expression for the
driver attribute.
What the behaviour should be? Accept expression or deny it with a
correct message?
Wolf
12 years, 8 months
how to set context path in jboss AS 7
by M. Steven
Hi,
I am working on migrating an app from jboss 4.2 to 7.1.x. We used to map our static files using server.xml under jboss-web.deployer.
Doing something like:
<Context path="/photo" docBase="c:/test/images" reloadable="true" override="true">
</Context>
within server.xml.
Now I can not figure out how to do it within Jboss AS 7. Can someone please help me on the issue?
Thanks in advance.
Regards,
Mike
12 years, 8 months
Injection WAR file name or context path to use it in CDI Producer
by gross
Hello.
I want to read some configuration from file in my web app. And inject data
from it to some managed beans. Now I use producer with hard-coded file name
to do so.
To deploy two such WARs on one server I want to pass this configuration
file name in runtime. I'he tried:
- JNDI -- no usual context before end of deployment (in CDI Extension,
post construct methos),
- Servlet Listener -- it starts after all CDI injections passed,
- Seam @ContextPath annotation -- it uses servlet listener.
How can I resolve WAR file name or context path in CDI to use it in
producer? Or can I somehow pass string parameter (depending on concreet
deployment) to CDI Producer without changing war?
--
Best regards,
Konstantin Gribov aka gross
12 years, 8 months
Validation of writable attribute with alternatives
by Jeff Mesnil
Hi,
I had an issue in the messaging subsystem when setting a new value for a
attribute that requires a AS reload.
In this class[1], we check during the VERIFY step whether the model
provides an alternative to the attribute that is changed (to rollback
the operation if that is the case).
The code could be simplified by using a
ReloadRequiredWriteAttributeHandler except that I don't know where I
could put the code to validate there is no attribute alternatives.
I can not subclass validateUnresolvedValue(attributeName,
unresolvedValue) and validateUnresolvedValue(attributeName,
unresolvedValue) since I don't have access to the resource to check
whether the attribute has an alternative already defined in the resource.
I can not subclass validateUpdatedModel(context, model) either because I
don't have access to the name of the attribute that has been updated to
check if the model makes sense.
Using ReloadRequiredWriteAttributeHandler, is there a place where I can
check for attribute alternative wrt to the resource?
If not, does it make sense to add a place for this validation (at VERIFY
or RUNTIME steps)?
thanks,
jeff
[1]
https://github.com/jbossas/jboss-as/blob/master/messaging/src/main/java/o...
--
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/
12 years, 8 months
CLI access
by Jan Lanik
Hi,
do you know how the mechanism which disables security check for CLI access from the same machine works?
I've been told that some ticket is generated by server and this ticket is then used by cli client for authentication.
I need to know where exactly is this ticket located and how to block the client from accessing it (delete ticket, restrict access..)
so that it is forced to use standard authentication as if it was run from a different machine.
The goal is to test the authentication for CLI - running it on two machines would be too complicated, so we need somehow bypass
that mechanism.
Thanks for any advice,
Jan
12 years, 8 months
Not sure who craigdevel is; but we are getting negative comments on our own front page
by Robb Greathouse
Hi,
Went to www.jboss.org and in the "Social Stream" the top comments are all negative and all from craigdevel. Anyone know who this is?
They look like plants. The third comment looks spurious.
craigdevel: Yet another day mostly wasted on container bugs, quirks & problems. #Hibernate & #JBossAS7 I'm looking at you. Arquillian going well now tho
4/18/12 10:16 AM via TweetDeck
craigdevel: The latest: seems that container managed transactions don't work in #JBossAS7 when using a non-jboss-provided DataSource. Bugreport pending.
4/18/12 10:09 AM via TweetDeck
craigdevel: Argh! Java app servers would be great if I didn't spend 70% of my time debugging the server & finding workarounds #jbossas7 #glassfish
4/18/12 10:08 AM via TweetDeck
--
Vision without action is a daydream. Action without vision is a nightmare.
Japanese Proverb
12 years, 8 months