[JBoss Seam] - How to use conversationPropagation=
by tazo
During an conversation i would like to create new conversations (not nested) with custom conversationIds. I added next code to my page:
| <h:commandLink action="#{actionBean.show}" rendered="#{!entity.available}" value="X">
| <s:conversationPropagation type="none" />
| <f:param name="name" value="#{entity.name}" />
| </h:commandLink>
|
But it doesn't work as i expected: then i click this link i stay at same page: it doesn't contain info from old conversation (conversation propagation is really suppressed) and facesMessages input cantains "No conversation". During submit my custom action does not take control. If i remove <s:conversationPropagation> i get exception, because "actionBean.show" is annotated with @Begin.
What i want: i have conversations which contain different permutations of same entities. I takes much time to retrieve detailed info about these entities. I would like save obtained info in conversations with custom Ids, so Seam could optimize access to info already stored in memory.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967726#3967726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967726
19 years, 8 months
[JBoss Seam] - About Deploy-unit to develop a big project by Seam
by keiuske
For example, it supposes that X-system has the following structure.
X-system
Login, Estimation, Reservation, Acceptance of the Order, Sales
And, JBOSS-SEAM Project has the following structure.
X.EAR
X.JAR
Login.Class
Estimation.Class
Reservation.Class
Order.Class
Sales.Class
X.WAR
Login.Jsp
Estimation.Jsp
Reservation.Jsp
Order.Jsp
Sales.Jsp
When false is in the Estimation-Class, the Estimation-Class is modified.
Then the Deploy-unit changes to X.EAR. And Login, Reservation, Order, Stocking and Sales Classes that without false are not deployed, service is stopped.
Is there the method to avoid stopping of a service?
I considered two kinds of methods. But these methods are not better solutions.
1. It supposes that the Estimation, the Reservation, and others were changed into the separate Deploy-unit.
Ex. Login.ear, Estimation.ear, Reservation.ear, Order.ear, Sales.ear
Then, the Class information of Estimation cannot be taken over to Reservation. And the Class information of Reservation cannot be taken over to Order?.
These problems occur.
Can @In-Annotation be used in the separate Deploy-unit?
Moreover, when the Common-Class is created, there is no good method to refer to the information from each Deploy-unit.
2. X.ear, X.jar, X.war were deployed per folder. And the Class-file of contents was replaced.
Then Jsp in war was changed. However the Class-file was not changed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967725#3967725
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967725
19 years, 8 months
[JBoss Portal] - Re: selecting suitable UI technology
by sohil.shah@jboss.com
JSF is an excellent technology to implement complex MVC related applications both in standalone web environment as well as in a portal environment.
We have adopted JSF exclusively to write a bunch of our applications here at JBoss. One of the applications that is being rearchitected using JSF/portal is our Forums technology which is currenly running on a framework called Nukes.
I agree, there are some implementation-level workarounds that have to be done especially with handling attachments, etc and the usecases you mentioned, but overall it fits like a glove for development on portal.
Also, there is support from the industry for JSF since there is already a JCP spec out there to build a standard-based bridge between portal and JSF technology. Industry support for technology you want to adopt for your overall architectutre is always a safe feeling.
My two cents
Thanks
Sohil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967720#3967720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967720
19 years, 8 months
[Installation, Configuration & Deployment] - Error using MySQL 4.1 with JBoss AS 4.0.4GA
by zerrt
I am using JBoss AS 4.0.4 GA
mysql 4.1.21
connector driver: mysql-connector-java-3.1.12-bin
Windows XP Pro Service Pack 2
The server runs fine with the default hypersonic DB, but when I try to use my mysql database I get the following error on startup:
2006-08-27 17:46:21,031 WARN [org.jboss.system.ServiceController] Problem starting service jboss.mq:service=PersistenceManager
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. Message recovery may not be accurate; - nested throwable: (java.sql.SQLException: Every derived table must have its own alias)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:442)
at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1571)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
...
...
Caused by: java.sql.SQLException: Every derived table must have its own alias
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatement.java:90)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:403)
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.mq:service=PersistenceManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. Message recovery may not be accurate; - nested throwable: (java.sql.SQLException: Every derived table must hav
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager
Is this version of mysql not compatible? Any help would be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967719#3967719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967719
19 years, 8 months
[JNDI/Naming/Network] - JNDI using spring (URGENT)
by fsamara
Hey list,
I am trying to setup my environment with JBOSS 4.
I am using spring as well. Oracle backend. Below are my configs.
I created an oracle-xa-ds.xml in DEPLY dir.
contents of oracle-xa-ds.xml
<xa-datasource>
<jndi-name>gisr</jndi-name>
<track-connection-by-tx/>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@XXX:XXX</xa-datasource-property>
<xa-datasource-property name="User">gisrnew</xa-datasource-property>
<xa-datasource-property name="Password">gisrnew</xa-datasource-property>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
<no-tx-separate-pools/>
</xa-datasource>
and applicationContext.xml
java:/gisr
true
i am getting this error
javax.naming.NamingException: JNDI object with [java:/gisr] not found: JNDI implementation returned null
any help appreciated.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967718#3967718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967718
19 years, 8 months