[Clustering/JBoss] - Re: ConnectionFactory && HA-JNDI
by trunikov
anonymous wrote : java:comp namespace of the zzz.ear/zzz.war application:
|
| +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
| +- ORB (class: org.jacorb.orb.ORB)
| +- env (class: org.jnp.interfaces.NamingContext)
| | +- queue (class: org.jnp.interfaces.NamingContext)
| | | +- aaaQueue[link -> jnp://localhost:1100/queue/aaaQueue] (class: javax.naming.LinkRef)
| | +- security (class: org.jnp.interfaces.NamingContext)
| | | +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
| | | +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
| | | +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
| | | +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
| | +- jms (class: org.jnp.interfaces.NamingContext)
| | | +- ConnectionFactory[link -> java:/JmsXA] (class: javax.naming.LinkRef
|
I apologize for mistake in previous post. Patched version is as follow:
java:comp namespace of the zzz.ear/zzz.war application:
|
| +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
| +- ORB (class: org.jacorb.orb.ORB)
| +- env (class: org.jnp.interfaces.NamingContext)
| | +- queue (class: org.jnp.interfaces.NamingContext)
| | | +- aaaQueue[link -> jnp://localhost:1100/queue/aaaQueue] (class: javax.naming.LinkRef)
| | +- security (class: org.jnp.interfaces.NamingContext)
| | | +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
| | | +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
| | | +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
| | | +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
| | +- jms (class: org.jnp.interfaces.NamingContext)
| | | +- ConnectionFactory[link -> jnp://localhost:1100/ConnectionFactory] (class: javax.naming.LinkRef)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114161#4114161
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114161
18 years, 4 months
[JBoss jBPM] - Phase status with super-state
by realdemo
hi community,
consider the following process definition:
| <process-definition xmlns="" name="testprocess2">
| <start-state name="start">
| <transition to="Phase1"></transition>
| </start-state>
|
| <super-state name="Phase1">
| <state name="state1">
| <transition to="state2"></transition>
| </state>
| <state name="state2">
| <transition to="state3"></transition>
| </state>
| <state name="state3"></state>
| <transition to="Phase2"></transition>
| </super-state>
|
| <super-state name="Phase2">
| <state name="state4"></state>
| <transition to="Phase3"></transition>
| </super-state>
|
| <super-state name="Phase3">
| <state name="state5"></state>
| <transition to="end"></transition>
| </super-state>
|
| <end-state name="end"></end-state>
| </process-definition>
|
In our user interface we have a status list (containing only the super-states):
Phase 1
Phase 2
Phase 3
If a phase is finished, then a green icon will be displayed near the label. For example:
State 1 is enter, then Phase 1 is active
State 2 is enter, Phase 1 is still active
State 3 is enter, Phase 1 is still active
State 4 is enter, Phase 1 should be green and Phase 2 is active
...
Is there a way to determine which super-state has ended, like Task? Should we implement our own super-state node which does this behavoir?
thanks for any tips
greetings markus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114160#4114160
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114160
18 years, 4 months
[JCA/JBoss] - Re: org.jboss.resource.JBossResourceException: Could not cre
by eduacsp2
"vicky.kak(a)jboss.com" wrote : anonymous wrote : when i use pure jdbc, everything is fine.
| This is strange , the Jboss code which is failing here is
|
| | private LocalManagedConnection getLocalManagedConnection(Properties props,Properties copy)
| | throws JBossResourceException
| | {
| | try
| | {
| | String url = getConnectionURL();
| | Driver d = getDriver(url);
| | Connection con = d.connect(url, copy);
| | if (con == null)
| | throw new JBossResourceException("Wrong driver class for this connection URL");
| |
| | return new LocalManagedConnection(this, con, props, transactionIsolation, preparedStatementCacheSize);
| | }
| | catch (Exception e)
| | {
| | throw new JBossResourceException("Could not create connection", e);
| | }
| | }
| |
| This is from
| http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/org/jboss...
|
| d.connect(url, copy); seems to be failing .
|
| Can you use the Driver.connect(...) to get the connection in your stand alone application and see if it works ?
| Also make sure that you are using the same Oracle driver for running the stand alone application which is present in the Jboss server .
|
|
|
Right now i use this code, and everything is fine:
| Connection con = null;
| try{
| Class.forName("oracle.jdbc.driver.OracleDriver");
| con =DriverManager.getConnection("jdbc:oracle:thin:@xx.x.x.xx:1521:Gd13","xxxx","xxxx");
| }catch(ClassNotFoundException e){
| throw new SQLException(e.getMessage());
| }
| return con;
|
and...yes...the oracle jdbc driver is in the lib jboss folder.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114152#4114152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114152
18 years, 4 months