[JBoss Messaging] - Re: Scoped classloaders question
by georgesberscheid
Hmm, that WIKI entry confuses me a little. How would my deployed application be able to access the client libraries if they are deployed in a scoped classloader that's different from the application's?
Indeed, I get the following exception when I try to open a JMS Topic Connection:
TopicConnectionFactory factory = (TopicConnectionFactory) initialContext.lookup("ConnectionFactory");
| topicConnection = factory.createTopicConnection();
| topicConnection.start();
java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
| at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141)
| at org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182)
| at org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:100)
| at org.jboss.aop.InstanceAdvisorDelegate.initialize(InstanceAdvisorDelegate.java:72)
| at org.jboss.aop.ClassInstanceAdvisor.<init>(ClassInstanceAdvisor.java:75)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate._getInstanceAdvisor(ClientConnectionDelegate.java)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate.start(ClientConnectionDelegate.java)
| at org.jboss.jms.client.JBossConnection.start(JBossConnection.java:144)
I'm using JBAS 4.0.5 and CallByValue is set to false in /server/default/deploy/naming.sar/META-INF/jboss-service.xml
Thanks,
Georges
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029784#4029784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029784
19Â years, 1Â month
[JBoss Seam] - Re: language resource bundle example
by avbentem
"grdzeli_kaci" wrote : i have added this fragment into my faces-config.xml file<locale-config>
| | :
| | <supported-locale>en</supported-locale>
| | :
| | </locale-config>
I think the supported-locale's are only needed when NOT explictely listing the available languages in the selectOneMenu. So, when using the list in faces-config.xml then your language selector could look like this:
<h:selectOneMenu value="#{localeSelector.localeString}">
| <f:selectItems value="#{localeSelector.supportedLocales}"/>
| </h:selectOneMenu>
| <h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/>
(taken from the Seam documentation)
But this is not the cause of your problem; waynebagguley already explained what's wrong.
If you want to change the language without a button then see HOWTO: override ThemeSelector (valueChangeListener, cookie name).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029780#4029780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029780
19Â years, 1Â month
[JBoss Seam] - Seam jBPM: use annotation or pages.xml to get next task?
by avbentem
After login, I need to show an actor a list of all owned processes, allowing the actor to click a button to get to the current task within that process (just like the jBPM web console). When clicking, a view that is applicable for that specific task will be shown, and this view might refer to some specific actions. Alternatively just a list of the current tasks would do as well, just as long as clicking the button allows me to show some task-specific view.
So, I'd like something like:
<h:dataTable value="#{taskInstanceList}" var="task">
| :
| <h:column>
| <s:button action="#{myGenericHandler.selectTask}" taskInstance="#{task}" value="Go"/>
| </h:column>
| </h:dataTable>
...but I guess I need to write my own code for action=#{myGenericHandler.selectTask} -- right?
So: one cannot somehow use annotations or some configuration to specify what to do when a specific task is signaled by the actor, right? In other words: using annotations Seam can signal jBPM that a task is started or completed when some Java code is executed, but Seam has no means to tell what Java code needs to be triggered for some generic action.
I know that in the jBPM web console the task-specific views are defined and stored along with the process definition itself (using forms.xml to tell what view goes with each task). This allows for rendering task-specific views.
I also know that, when not using such form definitions but instead using Seam to define the views (while still allowing each task some specific view and action), one can use taskInstanceListForType to render the button, like the DVD Store example admin page:
<h:dataTable value="#{taskInstanceListForType['approve']}" var="task">
| :
| <h:column>
| <s:button action="#{accept.viewTask}" taskInstance="#{task}" value="Review"/>
| </h:column>
| </h:dataTable>
|
| <h:dataTable value="#{taskInstanceListForType['ship']}" var="task">
| :
| <h:column>
| <s:button action="#{ship.viewTask}" taskInstance="#{task}" value="Ship"/>
| </h:column>
| </h:dataTable>
I wonder if this can easily be made more "generic" (realizing that "generic" will in fact be very limited, and will not be usable for just any type of process definition).
Thanks for any thoughts on this,
Arjan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029777#4029777
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029777
19Â years, 1Â month