[Beginner's Corner] - setting up JBoss with SEAM
by Mike Quin
Mike Quin [http://community.jboss.org/people/sanfran0201] created the discussion
"setting up JBoss with SEAM"
To view the discussion, visit: http://community.jboss.org/message/599941#599941
--------------------------------------------------------------
Hi,
I have a very simple SEAM example (shown below) that is not working.
I'm very new to JBoss and hibernate and SEAM and all that stuff. I have been reading http://docs.jboss.org/seam/2.2.0.GA/reference/en-US/html/ http://docs.jboss.org/seam/2.2.0.GA/reference/en-US/html/
I don't want to run seam-gen on my jboss-5.1.0. I just need a simple and straightforward instructions on how to setup jboss 5.1 with SEAM and to run this extremely simple helloworld example. However if seam-gen is absolutely required (which sounds irrational), then please confirm and I'll use it.
Any help is appreciated.
Thank you
Mike
I'm deploying org.jboss.seam-jboss-seam-2.1.0.SP1.jar inside my ear.
I have also attached the server.log file if that would help.
public class InjectionServlet extends HttpServlet {
* @In(value=InjectableComponent.NAME, create = true, required = true)*
* private InjectableComponent injectableComponent;*
public void service(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Hello World Seam Servlet!</title>");
out.println("</head>");
out.println("<body>");
if (injectableComponent == null) {
out.println("Injection not working.");
} else {
out.println(injectableComponent.getTitle());
}
out.println("</body>");
out.println("</html>");
}
}
package com.example.bean;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*@Name("injectableComponent")*
*(a)Scope(ScopeType.EVENT)*
public class InjectableComponent {
public static final String NAME = "injectableComponent";
public InjectableComponent() {
}
@Create
public void init() {
System.out.println("Good Morning.");
}
public String getTitle() {
return "Hello World.";
}
}
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<!-- Seam -->
* <listener>*
* <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>*
* </listener>*
<servlet>
<servlet-name>InjectionServlet</servlet-name>
<servlet-class>com.example.ui.InjectionServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InjectionServlet</servlet-name>
<url-pattern>/ioc</url-pattern>
</servlet-mapping>
</web-app>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>EJB3</display-name>
<module>
<ejb>Simple-server.jar</ejb>
</module>
<module>
<web>
<web-uri>Simple-web.war</web-uri>
<context-root>/seam</context-root>
</web>
</module>
</application>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599941#599941]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - Repeat fork to join
by T-9000 Skynet
T-9000 Skynet [http://community.jboss.org/people/t-9000] created the discussion
"Repeat fork to join"
To view the discussion, visit: http://community.jboss.org/message/602854#602854
--------------------------------------------------------------
Hi All,
I have similar issue with fork to join.
I have task1 going to fork1 , from fork1 spliting to task 3 and task 4, then task 3 going to task 3 decision ( reject goes to task 1 and approve go to join 1)
same with task 4 going to task 4 decision( reject goes to task1 and approve goes to join 1)
here are the senarios :
task 3 decision get approved but task 4 desiciion get rejected, so it goes back to task 1 and then it continues the flow again till both get approved.
I tried multiplicity on join 1 but then I don't know how many times each one will get rejected till both get approved.
how can I handle this situation with join ???
I am using jbpm 4.4
any ideas welcome.
thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602854#602854]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - Embedded SubProcess ignores DataObject and Property
by derikalov
derikalov [http://community.jboss.org/people/derikalov] created the discussion
"Embedded SubProcess ignores DataObject and Property"
To view the discussion, visit: http://community.jboss.org/message/602836#602836
--------------------------------------------------------------
I think it's a bug in jBPMN 5. Tried in versions 5.0.0 to 5.1.0.M1.
In a embedded subprocess I add these nodes:
<property id="_3_Property" itemSubjectRef="_personsItem"/>
<dataObject id="_3_DO" itemSubjectRef="_personsItem" name="DO_2"/>
then, in a Task within the subprocess I am using
<dataOutputAssociation id="_12">
<sourceRef>Dout_3-2-2</sourceRef>
<targetRef>_3_Property</targetRef>
</dataOutputAssociation>
or
<dataOutputAssociation id="_12">
<sourceRef>Dout_3-2-2</sourceRef>
<targetRef>_3_DO</targetRef>
</dataOutputAssociation>
I am getting "Could not find variable scope for variable _3_Property when trying to complete Work Item ..."
"Could not find variable scope for variable _3_DO when trying to complete Work Item ..."
In fact when I dump the process via XmlBPMNProcessDumper, neither Property nor DataObject is even there under Subprocess.
the full BPMN file attached.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602836#602836]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[JBoss Messaging] - Whats the difference between JCA & JBM Redelviery
by Vinay Bommarati
Vinay Bommarati [http://community.jboss.org/people/vinayknr41] created the discussion
"Whats the difference between JCA & JBM Redelviery"
To view the discussion, visit: http://community.jboss.org/message/602834#602834
--------------------------------------------------------------
Hello all
Iam facing some problems in message redelivery and DLQ Handling............Pls help me
Here goes My Requirement In our product :
I have to prompt the user to enter redelivery count & I have to make this as constant redeliery count for all destinations deployed in Jboss
So , my testing for redelivery and the problems i faced are :
a) In destination-Service.xml , i kept maxdeliveryattempts to 10 and delay to 10 seconds...but irrespective of the number , the redelivery
happening only 5 times & the message redirected to DLQ
b) After reading Jboss docs and this community , i found that JCA layer handling the message redelivery and the default redelivery count
will be 5 . We should use DLQmaxResent property inorder for specified number of redeliveries
c) Is it correct ?? what is JCA redelivery and JBM redelivery ?? Is there any way to choose between these two approaches ???
d) Which approcach should i use for my requirement ?? I heard JCA layer dominated JBM redelivery ...is it correct ??
It would be greatly helpful for me and for my team if any body answers my questions or share the links that contains JCA , JBM redelviery logic
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602834#602834]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months