[Design of Management Features on JBoss] - Node identification
by bstansberry@jboss.com
Tim Fox and I were having a discussion on http://jira.jboss.com/jira/browse/JBMESSAGING-957 about how to give identity to servers in a cluster. Wanted to bring it here to get inputs from others who may face similar issues and in particular from the JON folks.
Issue is basically that there are various places where code needs to give some kind of identity to a server:
1) Tomcat engine if mod_jk is used (jvmRoute attribute).
2) JBoss Messaging if clustered.
3) HAPartition to prevent two incarnations of the same server joining the cluster.
Tim and I are discussing setting the name for a server via run.sh, perhaps using something like what's done with $JBOSS_HOST and -b in jboss_init_redhat.sh:
JBOSS_NODE_NAME=${JBOSS_NODE_ID:+"-i $JBOSS_NODE_ID"}
| #define the script to use to start jboss
| JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR $JBOSS_NODE_ID"}
The above presumes the addition of a new startup switch '-i' or --id; a system property could be used as well.
Basically just wanted to get any comments any one had adding this sort of thing, e.g.
1) what are your use cases for wanting an id for a server?
2) does it need to be persistent across restarts (i.e. can't be randomly generated at runtime or something)?
3) Any constraints on the id? E.g. JBM wants an int id, which isn't really appropriate for the jvmRoute or HAPartition use cases.
4) Any thoughts on setting it based on the local env via the startup script? Would the JON folks want to do it some other way?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045578#4045578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045578
18 years, 10 months
[Design of JBoss jBPM] - Should GD 3.1 support complex action children?
by jruud
I recently posted a similar message (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=108375) on the "JBoss jBPM" forum, but I'm now posting it here hoping hoping to get more feedback:
Our custom actions are able to process complex (nested) children like in the example below (the parent... stuff):
<node name="Cancel Bill">
| <action class="MyAction">
| <parent>
| <child>CANCEL</child>
| </parent>
| </action>
| </node>
However, I'm a little confused as to how GD 3.1 deals with these complex elements (we're currently using the XML editor to modify them, but plan on adding custom property pages).
Assuming I understand correctly, children of Delegation subclasses like Action are stored in a configInfoElements collection. However, I get the feeling that ConfigInfoElement may possibly not have been designed to deal with complex elements (for example because: ConfigInfoElementDomAdapter.doModelAdd(XmlAdapter) seems to be intentionally ignoring any children).
In order to support complex structues like those above, does it make sense to try to make it work with the ConfigInfoElement approach (and extending it if necessary), or should I rather create my own semantic element and xml adaper to deal with the complex Action children? (please let me know if you need more info)
Thanks, John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045555#4045555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045555
18 years, 10 months
[TODO - DEVELOPMENT] - SOS,
by hariharanvinod
Dear All,
I am a new comer to this community. At present i am working/evaluating on one prestigious project, where every thing is going to work under open source platform, even the desktops will be on linux flavour.
I require help from the community for the following.
1. I am going to have 3 databases, PostgreSQL,DB2 and oracle.
2. The business layer is one and same for all the databases, which contain unique name space.
3.I will use any of the open source reporting tools for reporting purposes.
4.I am going to use EJB for building the business logic.
5.Going to use tomcat as application server.
Process.
During the login to application, system accepts the database for validation.
My Question.
How can i write a single business logic for all the databases.
How can i extract/input data to different databases using single business logic.
Regards
Vinod Hariharan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045386#4045386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045386
18 years, 10 months
[Design of JBoss ESB] - Re: Global transactions commit/rollback
by mark.little@jboss.com
That really depends where you would see transactions working. Traditional transactions don't match well with the loosely coupled nature of SOAs. That's part of the reason the community (ourselves included) have been working for years on various extended transaction protocols, such as WS-BA. Those models tend to use forward compensation approaches, which allow for loose coupling of events/tasks, without requiring that you retain locks on resources for the duration of the "transaction". The downside is that you somehow may have to compensate for "dirty reads" if the overall "transaction" has to be undone. In some cases it may even be impossible to completely undo. But that's a trade-off.
If you go to the JBossTS pages (http://labs.jboss.com/jbosstm) you'll find lots of papers and discussions on this topic. JBossTS supports WS-BA, but the system is built on an extensible transaction core engine that can support a range of extended transaction models. We will be integrating this with JBossESB in some future release.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045171#4045171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045171
18 years, 11 months