[jboss-user] [JBoss Seam] - invoke ElementType.TYPE-Hibernate-Validator on PROCESS_VALID

2007-10-16 Thread motte79
Hi, how do i invoke an ElementType.TYPE-Hibernate-Validator on PROCESS_VALIDATIONS - phase ? s:validate{All} works only on field-level ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095888#4095888 Reply to the post : http://www.jboss.com/index.html?modu

[jboss-user] [Security & JAAS/JBoss] - j_security_check and the generated LoginContext

2007-11-12 Thread motte79
Is there a way to retrieve the LoginContext in an EJB ? I'd like to make it possible that the user can change his user-login-name. But always a user did such a change the UserPrinciple-Information holds the old name. I need to replace the SimplePrinciple with the user-login-name by the new one.

[jboss-user] [Security & JAAS/JBoss] - Re: j_security_check and the generated LoginContext

2007-11-12 Thread motte79
I investigated that i need all users currently logged in (because somebody else can change the username in the application for a currently logged in user.) This is somewhat stupid, but these are the requirements. Any ideas ? View the original post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JPA query.getSingleResult throws java.lang.IllegalStateExcep

2007-09-11 Thread motte79
Here is the snippet of code i'm processing | Label l; | for (Label newLabel : labels) { | l = entityManager.createQuery( | "from Label where name = :name and appId = :appId") | .setParameter("name", newLabel.getName()) | .setParameter("appId", a

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JPA query.getSingleResult throws java.lang.IllegalStateE

2007-09-11 Thread motte79
Sorry, i forgot to post versions. jboss-4.2.0 which uses * hibernate-entitymanager-3.2.1.ga * hibernate-annotations-3.2.1.ga * hibernate-core-3.2.3.ga View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083069#4083069 Reply to the post : http://ww

[jboss-user] [JBoss Seam] - seam and batch/queue-processing

2007-09-21 Thread motte79
hello everybody ! Is there an easy way in seam to implement batchprocessing ? On jboss-startup there should be a thread created which performes tasks in an iterative and synchron way. As i know @IntervalDuration and @Asynchronous does not wait for the previously started Thread - therefore it's

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-09-21 Thread motte79
Is there a way to ask seam, whether is is started up ? I tried to create an MBean which spawn's a thread doing the recurring job. But MBeans are initialized before Seam is up in JBoss ... Any ideas ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087271#40872

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JPA query.getSingleResult throws java.lang.IllegalStateE

2007-09-24 Thread motte79
| q.setFlushMode(FlushModeType.COMMIT); | solved this problem ... i'm processing a Set of different labels, therefore the merged data need not to be flushed before processing the next query (it does not affect the results). Just for those who are interested in the solution see ht

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-09-24 Thread motte79
Hello ! Is this known as bug now ? Could anyone post the JIRA issue nbr/link ? I've an similar problem: I try to implments a retry-mechanism for an asynchronous task. This is implemented as follows .. The retry is not processed in an asynchron way as expected .. (?) | @Stateless | @AutoC

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-09-24 Thread motte79
H . There is a condition in the AsynchronousInterceptor which prevents @Asynchronous calls to be made from @Asynchronous methods ... Why ? !Contexts.getEventContext().isSet(AbstractDispatcher.EXECUTING_ASYNCHRONOUS_CALL) | @AroundInvoke |public Object aroundInvoke(InvocationC

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-09-26 Thread motte79
Hi Gavin, I would be pleased if you could help me in this case; the org.jboss.seam.async.AsynchronousInterceptor is written by you ... Why it's not allowed to make asynchronous calls from asychronous methods ? Thanks in advance Matthias View the original post : http://www.jboss.com/index.h

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-09-26 Thread motte79
Thanks very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088844#4088844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088844 ___ jboss-user mailing list jboss-user@li

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-09-26 Thread motte79
If i start an Asynchronous method with an IntervalDuration assigned, the interval will be timed from the last 'start' of the method not from the the last execution-end. This causes the Tasks to be launched in parallel if the previous task was not finished because it needs longer than the interv

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-09-26 Thread motte79
No, i don't think so ... I need something like the following PseudoCode: | @Stateful | @Startup | @Name("batch") | @Scope (ScopeType.APPLICATION) | @TransactionManagement (TransactionManagementType.BEAN) | public class BatchBean implements Batch { | | private AtomicBoolean a

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-09-26 Thread motte79
the @Asynchronous inside the @Asynchronous - topic is needed for another task in my application ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088964#4088964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088964 _

[jboss-user] [JBoss Seam] - Discussion: FlushModeType.NONE ?

2007-09-27 Thread motte79
Hi everybody, I've many readonly - screens which do never need a flush ... What about a new FlushModeType.NONE in org.jboss.seam.annotations.FlushModeType Comments & discussion are welcome View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089177#408

[jboss-user] [JBoss Seam] - Re: Discussion: FlushModeType.NONE ?

2007-09-27 Thread motte79
That is an option, yes. But this needs you to be sure that a flush is never called in your components ... Just to ensure that a flush will be ignored ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089195#4089195 Reply to the post : http://www.jboss.com

[jboss-user] [JBoss Seam] - Maven, Seam, TestNG - IntegrationTests

2007-09-28 Thread motte79
what libraries are needed to get the integrationtest running ? I added all jars contained in 'lib' of the current cvs into test of my parent-project. this did not work ... thats my testcase | public class BarInputManagerTest | extends SeamTest | { | | @Test | pub

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-10-01 Thread motte79
Have you got the idea what i'm doing ? Is jBPM an option for doing this ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090287#4090287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090287

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-10-01 Thread motte79
I tried to explain it by posting pseudo-code ... I like to create a simple service which runs in it's own thread from startup of seam until shutdown. The service itselve performs synchron tasks .. Hmm. How could i explain it better ? View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - jboss seam 2.0.0.CR1 sources

2007-10-01 Thread motte79
Is is possible to add the source-artifacts to your maven-repository ? Please .. You only need to add the following to your pom-files | | maven-source-plugin | | |

[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing

2007-10-05 Thread motte79
@kenglover: Thanks, but i'm using Quartz not EJB-Timers. I'm sorry, should have told it. @pete.muir: I tried the approach by scheduling an asynchronous task at startup, which performs some operations and gives the control for the next operation to a new asynchronous task. This works fine for so

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-10-08 Thread motte79
The version 2.0.0.CR2 throws an exception on startup ... | java.lang.NullPointerException | at org.jboss.seam.async.AsynchronousInterceptor.isExecutingAsynchronousCall(AsynchronousInterceptor.java:64) | at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(Asynchro

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-10-08 Thread motte79
It's is not an asynchronous method to be invoked ... It's the method marked with @Destroy @Remove ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092479#4092479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=409247

[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method

2007-10-08 Thread motte79
I'm sorry, i did place an @Asynchronous on a statefull application-scoped @Startup bean. I splitted the bean into a stateless one and an application-scoped bean for holding the state ... For which contexts are @Asynchronous methods allowed ? View the original post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - using 2.0.0.CR2 of jboss-seam-ui causes java.lang.Unsupporte

2007-10-08 Thread motte79
im using : jboss 4.2.0GA | jboss-seam 2.0.0.CR2 | | i tried to use the following jsf-versions ... | 1.2_04-p02 ( used by seam 2.0.0.CR2 ) | | 1.2_04-b10-p01 ( bundled with jboss 4.2.0 ) | | any ideas whats wrong ? | using 2.0.0.CR1 causes no error on startup ... | |

[jboss-user] [JBoss Seam] - Cannot download sources for 2.0.0.CR2 with `mvn dependency:s

2007-10-08 Thread motte79
.. because it does not follow the naming-conventions for source-bundles ... There are two hyphen's before 'sources-jar' instead of one ... http://repository.jboss.com/maven2/org/jboss/seam/jboss-seam/2.0.0.CR2/ anonymous wrote : | Index of /maven2/org/jboss/seam/jboss-seam/2.0.0.CR2 | |

[jboss-user] [JBoss Seam] - Re: Excel support in Seam: any interest?

2007-10-08 Thread motte79
I think jasperreports is a good choice for everyone ... It creates PDF, CVS, XLS, etc. from one template ;) Report-Templating is easy using iReports ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092652#4092652 Reply to the post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Re: Cannot download sources for 2.0.0.CR2 with `mvn dependen

2007-10-09 Thread motte79
Thanks ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092957#4092957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092957 ___ jboss-user mailing list jboss-user@lists.jb

[jboss-user] [JBoss Seam] - s:message and the clientId

2007-10-13 Thread motte79
Hi! Can anybody explain to me how to replace the clientId from the output rendered by | * h:messages | * h:message | * s:message | with the labelvalue ? The tomahawk - library has an tag called t:messages with an attribute 'replaceIdWithLabel' ? Is there an alternative for this in se

[jboss-user] [JBoss Seam] - Re: Getting same error screen no matter what Exception is th

2007-10-14 Thread motte79
Your persistencecontext has to be named 'entityManager'. Otherwise you can define it easily in your components.xml | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094966#4094966 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos