- Seam 2.0.1.RC1
- Jboss 4.2.2
- Java 1.6_02
- Windows XP
How do you know 4 conversations are created? I don't think that can happen in a single request.
i can see on \xx\debug.seam, i know its really weird, but in this case its creating 4 conversations, and if i use more than one
<begin-conversation join="true" flush-mode="manual"/>
it is creating 4 conversations for each begin-conversation in my xml, sample:
<?xml version="1.0" encoding="UTF-8"?> <page xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://jboss.com/products/seam/taglib" xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd" view-id="/face/seguranca/aprovar_usuario/pesquisar_usuario.seam" login-required="false"> <begin-conversation join="true" flush-mode="manual"/> <navigation> <rule if-outcome="aprovar"> <begin-conversation join="true" flush-mode="manual"/> <redirect view-id="/face/seguranca/aprovar_usuario/aprovar.seam"/> </rule> </navigation> </page>
this is creating 8 conversations.
one more thing: im using war and my seam jars are in /deploy.
Why aren't your seam jars packaged inside your WEB-INF/lib?
my entity bean is not loaded inside web-inf/lib, so i put it in deploy, and because that i need to use seam.jar in deploy too, drools,.... can my entity beans be inside web-inf/lib ?
this problem can occurs because my seam jars are in deploy ?
Entity beans implies EAR packaging. Try putting the libraries there (start with seam-gen ear packaging to get a sample)
No you can use JPA with WAR style deployment. (see e.g. the JPA example). But if you are indeed using a EAR, then your entity beans and jboss-seam.jar need to be in the EAR as Nick says.