[Installation, Configuration & DEPLOYMENT] - how to add custom properties to xml?
by shawnsmsu
We're currently using a standard configuration file to allow users to choose their datasource and whatnot when running JBoss 4.0.5. Obviously, the properties in this file get passed into the web application but I cannot find how.
I'd like to add a custom property to the xml file that will be accessible by the web app at runtime. Can someone please explain what I need to do to add a tag and read it in on the application side?
Here's our standard config xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <datasources>
| <!-- Microsoft SQL Server 2000 Database configuration -->
| <local-tx-datasource>
| <jndi-name>jdbc/LEDataSource</jndi-name>
| <connection-url>jdbc:jtds:sqlserver://localhost:1433/test;prepareSQL=1</connection-url>
| <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
| <user-name>user</user-name>
| <password>password</password>
|
| <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
|
| <min-pool-size>4</min-pool-size>
| <max-pool-size>20</max-pool-size>
| <idle-timeout-minutes>30</idle-timeout-minutes>
| </local-tx-datasource>
| </datasources>
|
I would like to add one property that the web app could read:
| <support-email>a(a)b.com</support-email>
|
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131198#4131198
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131198
18 years, 2 months
[JBoss jBPM] - Re: Token.signal() ---> 2 tokens?
by kukeltje
Good catch Martin.... so there was something 'strange' in the code, I just missed it... shame one me.
A full client based assignment is (afaik) seldomly fount. In most of the situations the states (not to be confused with the state nodes) are either signalled by a human, or async after the execution of some action. When using async nodes, the token is 'known' to the code that signals the node again. That way it does not have to have knowledge about the processdefinition but just the one token that needs to be signalled. Kind of what happens with tasknodes where the tokens are 'known' in a task list and can be signalled without knowing the processdefinition
Regarding the unit test, they avoid dealing with it....
Btw, Client based assignment only shows up on google for the jbpm 2.0 docs. Is that where you read it? (I cannot check the 3.x docs since I have no full access to the source here)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131187#4131187
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131187
18 years, 2 months