[JBoss Seam] - Re: DataTable Sorting Example
by griffitm
Pete,
Thanks for the reply. I can have a stateful session bean that extends EntityQuery? I guess I didn't think of that. What I ended up doing was using EntityQuery to perform my query, and exposing the methods from EntityQuery that are used by the JSF pages for sort/filtering. It mostly works. The list appears, with the pagination, but when I go to the 2nd page then go back to the first page, the pagination links disappear. The expression I'm using for rendered always returns false. Its something like:
|
| From the view...
| <s:link view="DeliverableSearch.xhtml" rendered="#{deliverableSearch.previousExists} .../>
|
| From the Stateful session bean...
| DeliverableSearch.java
| ...
| public boolean getPreviousExists(){
| return enitiyQuery.isPreviousExists(); // internal instance var for query
| }
Maybe isPreviousExists doesn't do what I think it does.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098527#4098527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098527
18Â years, 6Â months
[Messaging, JMS & JBossMQ] - Re: Setting up a non-server specific EAR
by Juan Bustamante
I was thinking that if we set the useJNDI property to "true", it would look within the application server's JNDI namespace and retrieve the object based on the JNDI name that we provide within the Destination value.
<activation-config-property>
| <activation-config-property-name>destination</activation-config-property-name>
| <activation-config-property-value>JNDI NAME</activation-config-property-value>
| </activation-config-property>
| <activation-config-property>
| <activation-config-property-name>destinationType</activation-config-property-name>
| <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
| </activation-config-property>
| <activation-config-property>
| <activation-config-property-name>useJNDI</activation-config-property-name>
| <activation-config-property-value>true</activation-config-property-value>
| </activation-config-property>
So I defined an Admin Object for the inbound queue, and I was thinking that by setting the useJNDI to be true, the application server would look up the admin object within the server's JNDI namespace as it would for the outbound queue, but instead I get the following error.
javax.resource.spi.ResourceAdapterInternalException: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:'
| at com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:297)
| at com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:333)
| at org.jboss.resource.deployment.RARDeployment.endpointActivation(RARDeployment.java:271)
| at org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:226)
| at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.activate(JBossMessageEndpointFactory.java:484)
| ... 113 more
| Caused by: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:'
| at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:614)
| at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2480)
| at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1830)
| at com.ibm.mq.jms.MQConnection.<init>(MQConnection.java:811)
| at com.ibm.mq.jms.MQConnectionFactory.createConnection(MQConnectionFactory.java:4821)
| at com.ibm.mq.connector.ResourceAdapterConnectionPool.initializeJMSConnection(ResourceAdapterConnectionPool.java:445)
| at com.ibm.mq.connector.ResourceAdapterConnectionPool.createNewConnection(ResourceAdapterConnectionPool.java:359)
| at com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:284)
| ... 120 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098523#4098523
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098523
18Â years, 6Â months