[jBPM] - Using a Timer
by Amin MC
Amin MC [http://community.jboss.org/people/aminmc] created the discussion
"Using a Timer"
To view the discussion, visit: http://community.jboss.org/message/620909#620909
--------------------------------------------------------------
Hello
Is it possible to get some clarification on the use of Timers in jBPM 5. I would like to use a timer in my graph where after a given period of time the next node will be a service task call to do some work and complete the business process instance. Is it true in order for the timer to work I need to reload the business process instance in memory and then call fireAllRules() on the statefulknowledgesession? Someone mentioned to me that this is the case but it isn't refered in the documentation. I presumed that there is a TimerService which registers which process has a Timer node and then invokes the necessary call to execute the Timer.
Any help would be appreciated,
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/620909#620909]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - Add jsp or html form to user-task without using guvnor
by Rajan Bansal
Rajan Bansal [http://community.jboss.org/people/rajan01] created the discussion
"Add jsp or html form to user-task without using guvnor"
To view the discussion, visit: http://community.jboss.org/message/623731#623731
--------------------------------------------------------------
Hi,
I am developing the web-application using spring.. And I want to handle the back-ground process using jBPM5.1.
I am able to shift the database from h2 to oracle-db successfully..
And I call the jbpm process from the controller..
I am not using and dont want to use *the jbpm-console and gwt-console and not even the guvnor repository.*.
Now I want to add forms which are in "Jsp and html" to be attaced with user-task-nodes...
I am using eclipse and didn't find any means to add forms
So in the .bpmn file I tried to add form by written but un-sucessfull as shown below:
<dataOutputAssociation>
<sourceRef>_2_performanceOutput</sourceRef>
<targetRef>performance</targetRef>
</dataOutputAssociation>
<potentialOwner>
<resourceAssignmentExpression>
<formalExpression>#{employee}</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>
<rendering id="requestform">
*<jbpm:form>evaluation/Request Approval.ftl</jbpm:form>*
</rendering>
</userTask>
It gives an error:
(null: 124, 18): The prefix "jbpm" for element "jbpm:form" is not bound.
16:53:46,228 ERROR [STDERR] org.xml.sax.SAXParseException: The prefix "jbpm" for element "jbpm:form" is not bound.
16:53:46,228 ERROR [STDERR] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
16:53:46,228 ERROR [STDERR] at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:293)
16:53:46,228 ERROR [STDERR] at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:172)
16:53:46,228 ERROR [STDERR] at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
16:53:46,228 ERROR [STDERR] at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:249)
16:53:46,228 ERROR [STDERR] at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:516)
16:53:46,228 ERROR [STDERR] at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:560)
16:53:46,228 ERROR [STDERR] at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
16:53:46,228 ERROR [STDERR] at com.jbpmweb.jbpm.Evaluation.readKnowledgeBase(Evaluation.java:54)
16:53:46,228 ERROR [STDERR] at com.jbpmweb.jbpm.Evaluation.processCalling(Evaluation.java:31)
16:53:46,228 ERROR [STDERR] at com.jbpmweb.service.ProbationService.handleJbpmRequest(ProbationService.java:20)
16:53:46,228 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:53:46,228 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
16:53:46,228 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:53:46,228 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
16:53:46,228 ERROR [STDERR] at org.springframework.web.servle
Please tell me how to add html or jsp forms to user-tasks???
Regards
Rajan Bansal
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623731#623731]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[EJB3] - EJB3 over SSL doesn't work for remote client
by Wen Cheng
Wen Cheng [http://community.jboss.org/people/chengwen] created the discussion
"EJB3 over SSL doesn't work for remote client"
To view the discussion, visit: http://community.jboss.org/message/622861#622861
--------------------------------------------------------------
I read the post: http://community.jboss.org/thread/148760 http://community.jboss.org/thread/148760
And my situation is similar. But the solution dosen't works.
JBOSS Version: JBoss 6.0.0.0 Final
OS: Windows XP
I created a stateless bean in my application and configure it to use SSLSocket.
@Stateless
@Remote(ReflectEJB.class)
@RemoteBinding(clientBindUrl="sslsocket://${jboss.bind.address}:3843")
public class ReflectEJBBean implements ReflectEJB{
public String sayHello(){
return "hello" ;
}
}
And I also configured ejb3-connectors-jboss-beans.xml file where I added a MBean:
<bean name="EJB3SSLRemotingConnector" class="org.jboss.remoting.transport.Connector">
<property name="invokerLocator">sslsocket://${jboss.bind.address}:3843</property>
<property name="serverConfiguration">
<inject bean="ServerConfiguration" />
</property>
<property name="serverSocketFactory">
<inject bean="sslServerSocketFactory" />
</property>
</bean>
<bean name="sslServerSocketFactory" class="org.jboss.security.ssl.DomainServerSocketFactory">
<constructor>
<parameter><inject bean="EJB3SSLDomain"/></parameter>
</constructor>
</bean>
<bean name="EJB3SSLDomain" class="org.jboss.security.plugins.JaasSecurityDomain">
<constructor>
<parameter>EJB3SSLDomain</parameter>
</constructor>
<property name="keyStoreURL">../conf/server.keystore</property>
<property name="keyStorePass">mypassword</property>
</bean>
I start jboss with " -b 0.0.0.0 " on windows,
The bean works pretty well when I running the test code on the machine where jboss running.
However ,when I running the test code on a different machine , an exception is throw,
javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [sslsocket://0.0.0.0:3843/]]
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.css.waterbox.server.api.consoleapi.SessionDriver.main(SessionDriver.java:445)
Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [sslsocket://0.0.0.0:3843/]
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:831)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)
at org.jboss.remoting.Client.invoke(Client.java:1961)
at org.jboss.remoting.Client.invoke(Client.java:804)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:104)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy0.createProxyBusiness(Unknown Source)
at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)
at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
... 4 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:193)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)
at org.jboss.remoting.transport.sslsocket.SSLSocketClientInvoker.connect(SSLSocketClientInvoker.java:243)
at org.jboss.remoting.transport.sslsocket.SSLSocketClientInvoker.createSocket(SSLSocketClientInvoker.java:186)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1165)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:816)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)
at org.jboss.remoting.Client.invoke(Client.java:1961)
at org.jboss.remoting.Client.invoke(Client.java:804)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:104)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy0.createProxyBusiness(Unknown Source)
at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)
at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.css.waterbox.server.api.consoleapi.SessionDriver.main(SessionDriver.java:445)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
... 15 more
I tried the way mentioned in https://jira.jboss.org/jira/browse/EJBTHREE-1650 https://jira.jboss.org/jira/browse/EJBTHREE-1650 , In another word, I add jboss.xml in META-INF folder in myejb.jar:
<?xml version="1.0" encoding="utf-8"?>
<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="5.0">
<enterprise-beans>
<session>
<ejb-name>ReflectEJBBean</ejb-name>
<remote-binding>
<jndi-name>ReflectEJBBean/remote</jndi-name>
<client-bind-url>sslsocket://${jboss.bind.address}:3843</client-bind-url>
</remote-binding>
</session>
</enterprise-beans>
</jboss>
But it got no improvement.
I know when I start jboss with "-b the_real_IP_of_the_machine" instead of "-b 0.0.0.0" , I can access ReflectEJBBean in a remote machine.
But I want to keep the "-b 0.0.0.0" for some reason.
Any idea?
Thanks very much in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622861#622861]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Tools] - JBoss Tools vs Developer Studio
by Nick Boldt
Nick Boldt [http://community.jboss.org/people/nickboldt] modified the document:
"JBoss Tools vs Developer Studio"
To view the document, visit: http://community.jboss.org/docs/DOC-13300
--------------------------------------------------------------
Below is a comparison matrix to illustrate what parts of JBoss Tools have been included in the various releases of Developer Studio and which additional out-of-the-box setup and software Developer Studio provides. It should be noted that JBoss Tools is a set of plugins that can be installed into Eclipse while Developer Studio makes the getting started out-of-the-box experience easier and simpler. This is evident in the matrix below with entries showing that Developer Studio has an installer that helps in configuring your runtimes, distributes Eclipse and WTP, and includes support for the supported platforms from JBoss (EAP, EWP, EWS, SOA, and EPP).
||
|| *JBoss Tools 2.x* || *JBoss Tools 3.0.x* || *JBoss Tools 3.1* || JBoss Tools 3.2.x
|| JBoss Tools 3.3.x
(Core & SOA) || *Developer Studio 1.x* || *Developer Studio 2.x* || *Developer Studio 3.0.x* || *Developer Studio 4.0.x* || *Developer Studio 4.1.x* || Developer Studio 5.0.x
(Core & SOA) ||
| *Features:* |
|
|
|
|
|
|
|
|
|
|
|
| Hibernate | X | X | X | X | X | X | X | X | X | X | X |
| Seam | X | X | X | X | X | X | X | X | X | X | X |
| CDI (JSR-299) |
|
| X | X | X |
|
| X (Tooling Tech Preview) | X (Tech preview) | X (Tech preview) | X |
| jBPM | X | X | X | X (v3 & 4) | X (SOA) | X | X | X | X (v3 only) | X (v3) | X (SOA) |
| Visual Page Editor | X | X | X | X | X | X | X | X | X | X | X |
| FreeMarker | X | X | X | X | X | X | X | X | X | X | X |
| Struts | X | X | X | X | X | X | X | X | X | X | X |
| JBoss AS | X | X | X | X | X | X | X | X | X | X | X |
| Project Archives | X | X | X | X | X | X | X | X | X | X | X |
| Drools |
| X | X | X | X (SOA) |
| X | X | X | X | X (SOA) |
| Portlet |
| X | X | X | X |
| X | X | X | X | X |
| ESB |
| X | X | X | X (SOA) |
| X | X | X | X | X (SOA) |
| JBoss Webservices |
| X | X | X | X |
| X | X | X | X | X |
| Smooks |
| X | X | X | X (SOA) |
|
| X | X | X | |
| Birt Integration |
| X | X | X | X |
|
|
|
|
|
|
| TPTP Integration |
| X | X | X | (TPTP not part of Indigo) |
|
| X (requires TPTP to be installed) | X (requires TPTP to be installed) | X (requires TPTP to be installed) | (TPTP not part of Indigo) |
| Maven |
|
| X (requires m2eclipse) | X (requires m2eclipse) | X (requires m2e) |
|
|
|
|
| X |
| Usage (tracking) |
|
|
| X | X |
|
|
| X | X | X |
| Modeshape |
|
|
| X | X (SOA) |
|
|
| X | X | X (SOA) |
| Teiid |
|
|
| X | X (SOA) |
|
|
| X | X | X (SOA) |
| Delta Cloud |
|
|
| X | X |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| *Setup:* |
|
|
|
|
|
|
|
|
|
|
|
| Zip | X | X | X (deprecated) |
|
|
|
|
|
|
|
|
| Update site | X | X | X | X | X |
| X (since 2.1) | X | X | X (+extras) | X (Core & SOA) |
| Archived Update Site |
|
| X | X | X |
|
|
| (X) |
|
|
| Installer |
|
|
|
|
| X | X | X | X | X | X (Core) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| *3rd Party plugins:* |
|
|
|
|
|
|
|
|
|
|
|
| Eclipse |
|
|
|
| X | X | X (3.4) | X (3.5) | X (3.6) | X (3.6+) | X (3.7) |
| Web Tools |
|
|
|
| X | X | X | X | X | X | X |
| SpringIDE |
|
|
|
| X | X | X | X | X | X | X (extras) |
| TestNG |
|
|
|
| X | X | X | X | X | X | X (extras) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| *Integrated Platforms:* |
|
|
|
|
|
|
|
|
|
|
|
| JBoss Enterprise Application Platform |
|
|
|
|
| X (EAP 4) | X (EAP 4) | X (EAP 4) | X (EAP 5) | X (EAP 5) | X (EAP 6) |
| JBoss SOA Platform |
|
|
|
|
|
| X (separate download) | X (separate download) | X (separate download) | X (seperate download) | X (seperate download) |
| JBoss Enterprise Portal Platform |
|
|
|
|
|
| X (separate download) | X (separate download) | X (separate download) | X (separate download) | X (separate download) |
| JBoss Enterprise Web Server |
|
|
|
|
|
|
| X (separate download) | X (separate download) | X (seperate download) | X (seperate download) |
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-13300]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 3 months