[JBoss jBPM] - JUnit : process with timers / async=
by gchanteb
Hi,
I would like to know your methods to JUnit test process with timers and asynchronous mode enabled.
For example, if i have this basic JUnit test:
public void testProcess()
| {
| createnewProcessInstance();
| assertEquals(1, processInstance.getId());
|
| Token rootToken = processInstance.getRootToken();
| assertEquals("start-state", rootToken.getNode().getName());
|
| processInstance.signal();
|
| assertEquals("timer-state", rootToken.getNode().getName());
|
| processInstance.signal();
|
| assertEquals("end-state", rootToken.getNode().getName());
| }
for this process:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="process6">
|
| <start-state name="start-state">
| <transition to="timer-state"></transition>
| </start-state>
|
| <state name="timer-state">
| <transition to="end-state" name="to end-state"></transition>
| </state>
|
| <end-state name="end-state"></end-state>
|
| </process-definition>
What should be my new JUnit test for this process:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="process6">
|
| <start-state name="start-state">
| <transition to="timer-state"></transition>
| </start-state>
|
| <state name="timer-state" async="true">
| <timer name="timer" duedate="5 seconds" transition="to end-state">
| <action class="Action"></action>
| </timer>
| <transition to="end-state" name="to end-state"></transition>
| </state>
|
| <end-state name="end-state"></end-state>
|
| </process-definition>
Thx.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218965#4218965
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218965
17 years, 2 months
[JBossWS] - Re: WebServiceContext injection. Was it fixed or not?
by dhanushgopinath
Hi,
I am using JBOSS 4.2.3 with JBOSS WS 3.1.0 and I am also getting the same problem. The web service context is getting null. Here is my service
|
| @WebService(serviceName = "AWFUtilityService", targetNamespace = "http://www.test.com/WF/Framework/AWFUtilityService", endpointInterface = "com.test.wf.framework.awfutilityservice.AWFUtilityServicePortType",portName="AWFUtilityServicePort",wsdlLocation="WEB-INF/wsdl/AWFUtilityService.wsdl")
| public class AWFUtilityServiceImpl implements AWFUtilityServicePortType {
|
| @Resource
| WebServiceContext context;
|
| @WebMethod
| public String getCorrelationID(String CorrelationID)
| throws GetCorrelationIDFault
| {
| SOAPMessageContext soapMsgContext = (SOAPMessageContext) context.getMessageContext();
| try {
| boolean login = ParseAndValidateSoapHeader(soapMsgContext);
| } catch (EPMAuthenticationFailureException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| String strCorrValue = EPMUtils.GetGloballyUniqueID();
| return CorrelationID + "_" + strCorrValue;
| }
|
Is this still a bug in JBOSS WS or am I doing some thing wrong.
Thanks
DHanush
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218957#4218957
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218957
17 years, 2 months
[JBossWS] - Re: Cannot obtain fault type for elemet
by erahamim
Adding more details:
My exception is:
| package com.company.Exceptions
| public class TriggerException extends Exception{
| private String msgName;
| public TriggerException() {
| }
| public String getMsgName() {
| return msgName;
| }
| public void setMsgName(String msgName) {
| this.msgName = msgName;
| }
| }
|
My endpoint service (ejb 2.1)
|
| package com.company.rundownEx.ejb;
|
| public interface RundownEx extends Remote{
| Data getData(long Id) throws TriggerException, RemoteException;
| }
|
implementation
| package com.company.rundownEx.ejb;
|
| public class RundownExBean implements SessionBean {
|
| public Data getData (long in) throws TriggerException{
| try{
|
| // do something
| }
| // ENTRY_POINT_CATCH_START
| catch(Exception rte){
| // ENTRY_POINT_CATCH_END
|
| throw new TriggerException (); }
| }
| }
|
My configuration xml for wstool:
| <configuration>
| <java-wsdl>
| <service name="RundownExService" style="document" endpoint="com.company.rundownEx.ejb.RundownEx" />
| <namespaces target-namespace="http://www.opentv.co.il" type-namespace="http://www.opentv.co.il/types" />
| <mapping file="RundownEx-mapping.xml"/>
| <webservices ejb-link="RundownExService" append="true"/>
| </java-wsdl>
| </configuration>
|
When I try to generate client with eclipse I'm getting the following error:
Error in generating Java from WSDL: java.io.IOException: Element {http://www.opentv.co.il}TriggerException is referenced but not defined.
java.io.IOException: Element {http://www.opentv.co.il}TriggerException is referenced but not defined.
Can anyone help?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218935#4218935
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218935
17 years, 2 months
[JBoss Cache: Core Edition] - JBC 3.0 as L2 cache on other appservers than JBossAS
by nikant
Hi.
I cannot find any examples of a successful set-up of JBossCache 3.0 as a second level cache for Hibernate on a Websphere 7.0 or Glassfish v2 application server.
In my current project we are forced by company policy to use Webpshere 7.0 in the production environment. We use Glassifsh v2 for development. We are also using Hibernate 3.3.1 as JPA provider now i would like to enable the L2 cache and have found that the JBC is (theoretically) the best choice.
But, how do I use the nice stuff like MVCC and cluster support? There is a good document called "hibernate-jbosscache-guide" but it does not cover the new functionality in JBossCache 3.0 (but probably 2.1).
I want the following:
- JBC 3.0 as L2 cache for Hibernate 3.3.1 on WAS 7.0 (and Glassfish v2).
- Support a cluster of two physical application servers.(possibly using TCP)
- Three different caches:
-- One for refererence data entities (read only)
-- One for "normal" enitites
-- One for queries.
- I want to user MVCC
1. Is this possible?
2. If it is, is there any good documentation or even better, an example configuration?
Thanks / Niklas
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218934#4218934
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218934
17 years, 2 months
[Installation, Configuration & DEPLOYMENT] - How to change diplay order of portlet page(tab)
by akumarkind
Hi
I am developing my own portal and made my own theme and layout.
I made my mycompany-object.xml
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0">
<portlet-name>LoginPortlet</portlet-name>
<portlet-class>org.mycompany.portlet.login.LoginPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Login
</portlet-info>
<portlet-name>ProjectDefinitionPortlet</portlet-name>
<portlet-class>org.mycompany.portlet.projectDefinition.ProjectDefinitionPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Project Definitions
</portlet-info>
<portlet-name>TasksPortlet</portlet-name>
<portlet-class>org.mycompany.portlet.tasks.TasksPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Tasks
</portlet-info>
<portlet-name>SubTaskPortlet</portlet-name>
<portlet-class>org.mycompany.portlet.subtask.SubTaskPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Sub-Task
</portlet-info>
<portlet-name>TimesheetsPortlet</portlet-name>
<portlet-class>org.mycompany.portlet.db.TimesheetsPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Timesheets
</portlet-info>
<portlet-name>ResourcesPortlet</portlet-name>
<portlet-class>org.mycompany.portlet.resources.ResourcesPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Resources
</portlet-info>
<service-name>PortalAuthorizationManagerFactory</service-name>
<service-class>org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory</service-class> <service-ref>:service=PortalAuthorizationManagerFactory</service-ref>
</portlet-app>
it is displaying alphbetic order like: Project Resource Subtask Task timesheet default
Please suggest me how can i change order? and how rename default as Home?When i am renaming default as Home It is displaying 404 error on browser.
With Regards
Avanish
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218932#4218932
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218932
17 years, 2 months