[JBoss Portal] - Creating a CMS interceptor
by frontline
I'm trying to add my own interceptor in addition to the ones already in use (like the ACL interceptor).
I have added the mbean stuff in the cms's jboss-service.xml as was stated in the instructions.
But a few problems:
- how can I get jboss to find my mbean class from my own portal .war file, so that I don't have to copy the classes under jboss lib-directories?
This is so I can use eg. a Singleton from both my webapp and the mbean.
- How can I integrate spring into this? I tried to use spring's mbean exporter to export the mbean. It shows up in the JMX console but the CMS service doesnt find it (NOTYETINSTALLED error)?
I exported the bean with the name "portal:service=Interceptor,type=Cms,name=Test"
And this is from jboss-service.xml:
| <!-- interceptor factory where all cms interceptors are registered -->
| <mbean
| code="org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory"
| name="portal:service=InterceptorStackFactory,type=Cms"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
| <xmbean/>
| <depends-list optional-attribute-name="InterceptorNames">
| <depends-list-element>portal:service=Interceptor,type=Cms,name=Test</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Cms,name=ACL</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Cms,name=ApprovalWorkflow</depends-list-element>
| </depends-list>
| </mbean>
|
|
If the above isn't possible, what is the "best practice" for creating cms interceptors that use the same code (and database access etc.) that your webapp does?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082740#4082740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082740
18 years, 8 months
[JBoss jBPM] - bpws.getVariableData as predicate is not supported?
by meghanai_99
JBPM throws following exception while evaluating expression using bpws.getVariableData in predicate -
| 2007-09-10 11:24:13,233 DEBUG [org.jbpm.bpel.graph.basic.assign.FromVariable] evaluating query '/ns9:GetItemsByQueryResponse/ns9:return[bpws:getVariableData("index")]/ns9:genericItem/ns9:itemID' for 'Token(/primary)'
| 2007-09-10 11:24:13,264 DEBUG [org.jbpm.bpel.graph.scope.FaultActionHandler] handling fault exception: org.jbpm.bpel.graph.exe.ScopeInstance@13fb60f[name=global,token=/,state=ScopeState[performingPrimaryActivity=0],id=0]
| org.jbpm.bpel.graph.exe.BpelFaultException: org.jbpm.bpel.graph.exe.FaultInstance@82bb3d[name={http://schemas.xmlsoap.org/ws/2004/03/business-process/}subLanguageExecutionFault,id=0]
| at org.jbpm.bpel.sublang.xpath.XPathQueryEvaluator.evaluate(XPathQueryEvaluator.java:62)
| at org.jbpm.bpel.graph.basic.assign.FromVariable.extract(FromVariable.java:65)
|
It seems queries can be 'GetVariableDataFunction' or 'Pure XPath'...but I thought this would be a common case where inside while loop user would want to iterate over one record at a time.
Are there plans to support this? Shall I enter JIRA issue?
Thank you,
Meghana.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082738#4082738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082738
18 years, 8 months