[jboss-user] [EJB 3.0] - Question to ejb-jar.xml override

2009-02-23 Thread hamtho2
Hi, I haven´t found any clear statements about this topic so maybe someone in here knows about this. Should it be possible through EJB3-specification to override settings/annotations from another jar using the ejb-jar.xml (currently in my local jar)? Or is configuration/override only specific

[jboss-user] [EJB/JBoss] - Re: Merging an object twice

2009-02-06 Thread hamtho2
Okay. Here comes more details. I use the embedded jboss, that is in the jboss maven repository. Here are the groupId/artifactIds | org.jboss.embedded:hibernate-all:jar:beta3:test | org.jboss.embedded:jboss-embedded-all:jar:beta3:test | org.jboss.embedded:jboss-embedded:jar:beta3:test |

[jboss-user] [EJB/JBoss] - Merging an object twice

2009-02-04 Thread hamtho2
Hi, I´ve got a strange behaviour: If I call entityManager.merge(object) twice I get a OptimisticLockingException or alternatively an EntityExistsException using the embedded JBoss for test purposes. Is this the correct behaviour? As far as I knew, I could call merge() multiple time and the

[jboss-user] [Security & JAAS/JBoss] - Accessing Principal within Interceptor

2009-01-23 Thread hamtho2
Hi, I would like to access the current principal within a custom written Hibernate Interceptor - which is by nature no sessionBean. What would be the best way to access the current principal which called the EJB within this interceptor? Any chance to get the SessionContext without dependency i

[jboss-user] [Beginners Corner] - Resource consumption of JBoss compared to single Tomcat

2009-01-22 Thread hamtho2
Hi @all, does anyone have any information how the JBoss 4.2.2 compares to a single Tomcat 6.0 concerning resource consumption, such as memory-usage, cpu-usage, open files etc. Simply comparing the features and everything else JBoss offers on top of Tomcat, I get the feeling, that it is really

[jboss-user] [EJB/JBoss] - Re: Deploying multiple ears with

2009-01-21 Thread hamtho2
@jaikiran Thanks for your answer. It was a little bit circumstantial, as there are some struggles with the current maven ear plugin, but that was finally the solution Now it works!! Thanks! Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203724#42

[jboss-user] [EJB/JBoss] - Re: Deploying multiple ears with

2009-01-21 Thread hamtho2
Thanks for the idea. I´m currently using the hibernate jars from the /server/default/lib directory and no further jars are included in my ear. Unfortunatley the "UseJBossWebLoader" does not have any effect on this. But maybe this is because it is not an web application, but an ear containing o

[jboss-user] [EJB/JBoss] - Deploying multiple ears with

2009-01-20 Thread hamtho2
Hi, I am currently facing the following problem: I need to configure my ear for multiple environments. Therefor I used the hibernate.properties in the root folder of the ear to configure my persistence-layer. This works perfectly so far, because Hibernate finds the properties through it´s En

[jboss-user] [EJB/JBoss] - Best way for dynamic configuration?

2008-09-12 Thread hamtho2
Hi, I just created a timer-bean running a custom job at a defined interval. This service is annotated with @Service and @Management, so that it is startable/stoppable via the JMX-Console. Now I would like to add some properties that can be changed by the user - for example the interval between

[jboss-user] [EJB 3.0] - Re: Context lookup

2008-08-08 Thread hamtho2
Is there any chance to lookup an implementation of a SessionBean using simply the interface and not constructing a JNDI-Name where I would have to care about the prefix wheather it has been deployed in an ear or not? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: 5.0.0CR1: EJB refs across EARs don't work

2008-08-08 Thread hamtho2
And in which jar do I find the org.jboss.ejb3.annotation.LocalBinding? I only found it in the embedded JBoss, but this is definately not what I´d like to include in my jar-dependencies. And what is the reason, that there are two annotations LocalBinding? There is also one in org.jboss.annotatio

[jboss-user] [EJB 3.0] - Injecting SessionBean into Thread

2008-08-08 Thread hamtho2
Hi, is there any chance to inject a SessionBean directly into a Thread via an annotation instead of using a JNDI-Lookup? I´ve got the case, that I use a TimerBean that starts an own Thread for every file it finds in a hotfolder. Later on this Thread should access a SessionBean through itÂÂ

[jboss-user] [EJB 3.0] - Best way for dynamic user configuration

2008-08-05 Thread hamtho2
Hi, I just created a timer-bean running a custom job at a defined interval. This service is annotated with @Service and @Management, so that it is startable/stoppable via the JMX-Console. Now I would like to add some properties that can be changed by the user - for example the interval between

[jboss-user] [JBoss jBPM] - Re: Exception-Handler an Transitions

2008-07-15 Thread hamtho2
Appendix to my previous post: Furthermore I just realized, that the transition to the initially target-node is still executed and the process goes to its initial target node and not in the manually rerouted node. So this works also not as expected as the initial target node should not be reache

[jboss-user] [JBoss jBPM] - Exception-Handler an Transitions

2008-07-15 Thread hamtho2
Hi @all, I am calling an Action in a transition as followes | | | | | | | | | | | As there might occur an Exceptions the InvoicingActionHa

[jboss-user] [JBoss jBPM] - Re: Exception handling in JBPM

2008-07-15 Thread hamtho2
maybe this helps: Throwable throwable = executionContext.getException(); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164405#4164405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164405 _

[jboss-user] [EJB 3.0] - Override @Id with different generators

2008-07-04 Thread hamtho2
Hi, is there a chance to override the defined generator for the @Id? For example if I´d like to define the @Id in a superclass and only change the value of the db-sequence to use? For example something like this: | @MappedSuperclass | public class BaseEntity { | |

[jboss-user] [JBoss jBPM] - Re: A question to the DecisionNode

2008-06-10 Thread hamtho2
it only does, if I do not specify 2 conditions. Otherwise it works flawlessly! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156916#4156916 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156916

[jboss-user] [JBoss jBPM] - Re: A question to the DecisionNode

2008-06-09 Thread hamtho2
Unfortunately the same behaviour if I use totally different transition names. If I do not specify the condition in the second transition, it always uses this transition, although the first transition has already resulted to true. Thomas View the original post : http://www.jboss.com/index.html?

[jboss-user] [JBoss jBPM] - Parameter and other EL-related questions

2008-06-09 Thread hamtho2
Hi, is there any chance to pass parameters within EL as you can for example with the Seam enhanced EL? For example I would like to do the following | {myVar.setFoo('bar')} | Further is there any chance to reference an enum-value within an EL? For example: | {myVar.foo == MyEnum.BAR}

[jboss-user] [JBoss jBPM] - Re: A question to the DecisionNode

2008-06-09 Thread hamtho2
I will try this and rename my transition and let you know, if that worked. But I am right, that the correct bahaviour should be, that the first transition, that results to true, should be taken and - if no condition has been defined - this should automatically result in a true-result. Thomas Vi

[jboss-user] [JBoss jBPM] - Re: DecisionHandler in a state node

2008-06-09 Thread hamtho2
okay. But this way it is not the "real" DecisionHandler, which returns the name of the transition, but I would do the decision programmatically via an action-handler. Did I get you right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156612#4156612 Reply to

[jboss-user] [JBoss jBPM] - A question to the DecisionNode

2008-06-06 Thread hamtho2
Hi, I´ve got a question concerning the DecisionNode. As far as I can read from the documentation the first transition, that resolves to true within a DecisionNode will be used. Unfortunately I experienced a different behaviour for my test-process. This is part of what I have defined: |

[jboss-user] [JBoss jBPM] - DecisionHandler in a state node

2008-06-06 Thread hamtho2
Hi, I´m just getting into the whole jbpm-thing, and after reading the documentation and playing around a bit, I asked myself the following question: I´m not sure, if this is against the current jbpm or workflow concept, but as it is possible to define several transition within a state-node wi

[jboss-user] [EJB/JBoss] - Removing entity does not work!

2008-02-06 Thread hamtho2
Hi, somehow removing entities does not work using the embedded JBoss for my tests. If I open my own transaction within my test-class and try to delete an entity, everyting works fine. If I call my SessionBean, having exactly the same piece of code, it fails. Even if I try to merge my entity be

[jboss-user] [EJB 3.0] - Re: Generate ID when creating entities

2008-01-30 Thread hamtho2
Tim, thanks a lot for your answer! It seems as if this solution only works in a bi-directional one-to-one relation? Is that true? In my case, I don´t have the "Parent"-object in my "Child" as a back-reference. So is it a "must-requirement" to have a bi-directional relation or is there also a w

[jboss-user] [EJB 3.0] - @Embedded objects within inheritance-strategy

2008-01-29 Thread hamtho2
Hi, I have the problem, that when I use an @Embedded object within my inheritance-strategy, the entities will not be fetched correctly. When I change the annotation to @Transient, all corresponding entities are fetched correctly. This is an example of my class structure: | @Entity | @Tabl

[jboss-user] [EJB 3.0] - Generate ID when creating entities

2008-01-29 Thread hamtho2
Hi, is there a chance to let the EntityManager create the ID at creation-time of an entity? I´ve got the problem, that I want to share one id between multiple entities while having a unidirectional one-to-one relation. This way I only have a generated value at the parent-object and for the de

[jboss-user] [EJB 3.0] - Re: Using joda time in entites

2008-01-23 Thread hamtho2
This is one solution I though of as well. But maybe there is already an "integrated" solution as it is in hibernate. Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122552#4122552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [EJB 3.0] - Using joda time in entites

2008-01-22 Thread hamtho2
Hi @all, does anyone know, if there is a chance to use the joda time library as the default date-implementation with ejb3? I´m currently facing the following problem. I would like to use the DateTime objects of the joda library within my entities instead of using the plain, old and buggy java

[jboss-user] [EJB 3.0] - Automatically create schema in database

2008-01-16 Thread hamtho2
Hi, is there any chance to let the EntityManager automatically create a schema? I defined a default schema for my entities through setting the property 'hibernate.default_schema' in the persistence.xml, but unfortunately it is only possible to deploy these entities, if the schema already exists

[jboss-user] [JBoss Seam] - Re: JPDL in Seam 2.0

2007-10-24 Thread hamtho2
okay... found it myself. The namespaces for the jpdl-definitions have changed - but in the reference for 2.0.0 there´s still the same syntax. Thanks to the examples I found that it should be | | | registerUser.jpdl.xml | createItem.jpdl.xml

[jboss-user] [JBoss Seam] - JPDL in Seam 2.0

2007-10-24 Thread hamtho2
Hi, I´m just migrating my application from Seam 1.2.2 to 2.0.0 together with Trinidad 1.2.2 and wondering if anything might have changed using JPDL between these versions. When trying to use the jpdl in Seam 2.0 I get the following Exception after clicking the link. Any ideas what might have ch

[jboss-user] [JBoss Seam] - Re: Seam + Maven/Ant

2007-10-11 Thread hamtho2
Maybe you have a parent-pom included in your pom, where you have already declared a version? Just an idea! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094121#4094121 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=409

[jboss-user] [JBoss Seam] - Re: Seam + Maven/Ant

2007-10-11 Thread hamtho2
Then you should probably do, what you´ve been told by this error-message. Add a version to your artifact you´d like to use. For example a full artifact should look like this: | | javax.mail | mail | 1.4 | | By the way: you can also have a look at http://www.mvnreposit

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Cleaning database through hibernate

2007-09-26 Thread hamtho2
Hi, is there a good way to clean the whole database through hibernate? The background is as follows: I want to clean the database every time before starting a new testcase, to make sure the database is empty and in a defined state. Currently I´m doing this through dropping the scheme and restar

[jboss-user] [EJB 3.0] - Clean complete database

2007-09-25 Thread hamtho2
Hi, is there a good way to clean the whole database through hibernate? The background is as follows: I want to clean the database every time before starting a new testcase, to make sure the database is empty and in a defined state. Currently I´m doing this through dropping the scheme and restar

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

2007-03-29 Thread hamtho2
Hi, so what is the current status of this excel-export feature. Is it working already and included in any Seam-release? I´m going to propose Seam for a new project now and I know that it´ll be of great benefit if I can tell them, that excel-export is no problem with Seam (would I would like to

[jboss-user] [JBoss Seam] - Re: SEAM - TRINIDAD - @Restrict

2007-03-17 Thread hamtho2
Don´t define any view-handler in the faces-config.xml. That won´t work. You can try to replace the sun-facelet view handler with the SeamFaceletViewHandler. Only replace the corresponding entry in the web.xml from the sun FaceletViewHandler to the SeamFaceletViewHandler. Maybe that might work T

[jboss-user] [JBoss Seam] - Re: DataModelSelection with two beans without using session

2007-03-17 Thread hamtho2
sorry - not yet! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029029#4029029 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029029 ___ jboss-user mailing list jboss-user@lis

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-03-17 Thread hamtho2
As a lot of people still have the same problems, would this be something to file in JIRA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029028#4029028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029028

[jboss-user] [EJB 3.0] - Relations with WHERE-clause

2007-03-07 Thread hamtho2
Hi, is it possible to restrict related entities while fetching the data? For example, if I have a one-to-many relationsship and I want to fetch all entries from my "many-relation", that are flagged as active through the annotation in the entity-class. Or if beeing a little bit more complex, add

[jboss-user] [JBoss Seam] - Re: Do we need failed page access logged as ERROR

2007-03-03 Thread hamtho2
I´d also prefer not to log the whole exception as this is more like a standard-issue and logging the whole stack-trace always looks like having a problem or a bug in the application, which is not really the case if the user is not logged in. Thomas View the original post : http://www.jboss.co

[jboss-user] [JBoss Seam] - Re: Trinidad / ajax4 jsf doesn´t work anymore in Seam 1.2.0

2007-03-02 Thread hamtho2
Great to hear that. Thank you! Then the work was worth it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024713#4024713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024713

[jboss-user] [JBoss Seam] - Re: Back button after logout - solved through Seam?

2007-03-02 Thread hamtho2
But if you tell the browser not to cache anything, this works. I used this together with Struts, where I had to change the RequestProcessor. There are some examples on how to solve this out in the net. But I don´t really like them, as you have to use jsp:scriptlet for that. But I see, that it´s

[jboss-user] [JBoss Seam] - Documentation on how to set up Seam together with Trinidad a

2007-03-02 Thread hamtho2
Hi @all, After I spent a lot of time in setting up Seam, Trinidad, Facelets and ajax4jsf together and want to share my experiences with others I set up a small wiki-page at the apache-wiki yesterday, in which I wrote a short description about what I did to make Seam, Trinidad, Facelets and ajax

[jboss-user] [JBoss Seam] - Re: Setting up an ajax4jsf + trinidad project

2007-03-02 Thread hamtho2
Be careful, which version of Seam you are using: The one atao is using is for Seam 1.1.6 whereas dustismo´s is for 1.2.0. But as far as I can see from the exception you simply did not include the trinidad-jars properly. Check if you´ve got both jars, the "impl" and the "api" and also include th

[jboss-user] [JBoss Seam] - Back button after logout - solved through Seam?

2007-03-02 Thread hamtho2
Hi, I just included the Seam Security into my application and I´m really thrilled about the very easy and effective solution to all the security issues. I like the "redirect-to-protected-pages-through-login-page"-feature especially. It´s always a common problem and it´s so easy this way. This

[jboss-user] [JBoss Seam] - How to instantiate a Seam class out of a backing bean

2007-03-02 Thread hamtho2
Hi, how do I instantiate a stateless Seam Bean out of another Seam backing bean, so that all Seam-annotation are still included? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024638#4024638 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: Trinidad / ajax4 jsf doesn´t work anymore in Seam 1.2.0

2007-03-02 Thread hamtho2
Joseph, I wrote a little wiki page about that. Have a look at http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail I also attached a sample web.xml there. Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024580#4024580 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-03-01 Thread hamtho2
If it´s of any importance: I´m using trinidad as well, but this shouldn´t be a problem, should it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024379#4024379 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024379 __

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-03-01 Thread hamtho2
I did it this way: | | Seam Filter | org.jboss.seam.web.SeamFilter | | | | Seam Filter | /* | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024378#4024378 Reply to the post : http://ww

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-03-01 Thread hamtho2
sorry, but I did it the same way like in the examples. But it´s still the same. It works if the restriction comes through the pages.xml but not if it comes through the backing-bean. Any further suggestions? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[jboss-user] [JBoss Seam] - Re: Trinidad / ajax4 jsf doesn´t work anymore in Seam 1.2.0

2007-03-01 Thread hamtho2
well - I also used ajax4jsf together with 1.1.6 without any problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024360#4024360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024360 _

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-03-01 Thread hamtho2
okay - I will have a look. BTW: Is there any way to include the role through a static variable from an interface, so that you can replace @Restrict("#{s:hasRole(''admin)}") with anything like this @Restrict("#{s:hasRole(SecurityRoles.ADMIN)}") ? View the original post : http://www.jboss.co

[jboss-user] [JBoss Seam] - Redirect to error-page for AuthorizationException with @Rest

2007-03-01 Thread hamtho2
Hi @all, when I define a restriction like #{s:hasRole('admin')} in my pages.xml and the authorization failes with an AuthorizationException I get the error-page defined in the pages.xml. But if it fails because of a @Restrict("#{s:hasRole('admin')}")-annotation in the backing-bean I get the us

[jboss-user] [JBoss Seam] - Re: Trinidad / ajax4 jsf doesn´t work anymore in Seam 1.2.0

2007-03-01 Thread hamtho2
You were right, that´s it! Thanks a lot. These forums are just great. I would have never come to this idea! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024258#4024258 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40

[jboss-user] [JBoss Seam] - Trinidad / ajax4jsf do esn´t work anymore in Seam 1.2.0

2007-03-01 Thread hamtho2
Hi @all, I greately appriciate all the work you did for the release of 1.2.0 and I really understand, that it is necessary to break with the old architecture at a special point. But unfortunately I have the problem now, that I can´t upgrade from 1.1.6 to 1.2.0 due to an incompability between Se

[jboss-user] [JBoss Seam] - Re: integration with Trinidad (ADF)

2007-02-28 Thread hamtho2
okay. After doing some more research on that topic, I solved this problem myself. All you have to do is to include the aj4-trinidad.jar, provided at the ajax4jsf website and everything works smoothly. Although I used the 1.0.6 you still need the 1.0.5-a4j-trinidad. This was a bit confusing as I

[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-02-28 Thread hamtho2
Is this only necessary when using the PPR of Trinidad and if using ajax4jsf there is no need or is this a general "must-do" if using trinidad together with seam correctly. Could you give some more detail on the PhaseListener. Is it necessary to write an own PhaseListener that overrides the meth

[jboss-user] [JBoss Seam] - Re: integration with Trinidad (ADF)

2007-02-25 Thread hamtho2
BTW: this error only occures if using an ajax-rerender. Otherwise it works quite fine: Example: | | | | | | | | | | | | |

[jboss-user] [JBoss Seam] - Re: integration with Trinidad (ADF)

2007-02-25 Thread hamtho2
Is the a4j-trinidad.jar still necessary for ajax4jsf 1.0.6 or is it integrated into that package now? I´m facing a similar issue but already use 1.0.6. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021987#4021987 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - DataModelSelection with two beans without using session scop

2007-02-19 Thread hamtho2
Hi, is there a possibility to use the @DataModelSelection over two different beans without using the session-scope for injection? Right now it works if I use the bean with the @DataModel and the @DataModelSelection with session-scope and use this value through an @In annotation in my other bean

[jboss-user] [JBoss Seam] - Re: Navigation outcome from bean

2007-02-16 Thread hamtho2
Yes - it seems, that it works that way. If a null value is returned, I will be redirected to the page I came from if I include the -Tag Thanks for that View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017714#4017714 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: Navigation outcome from bean

2007-02-16 Thread hamtho2
sorry - I didn´t refresh the thread before posting. I guess you already told the solution through your explanation. I´ll try this first. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017684#4017684 Reply to the post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - Re: Navigation outcome from bean

2007-02-16 Thread hamtho2
Mike, your idea came pretty close to how it works. Thanks for your help. This is it worked for me now: | | | | | | But do you know if it is possible to redirect to the page, where I came from as well? If I call an action-method and

[jboss-user] [JBoss Seam] - Re: Navigation outcome from bean

2007-02-16 Thread hamtho2
sorry - I really did not explain it really clearly. The idea is the following: I have two different xhtml-pages with an command button on each page referencing to the same ActionBean and calling the same methods, but the result of that action always points to the same result-page. So is it possi

[jboss-user] [JBoss Seam] - Re: Navigation outcome from bean

2007-02-16 Thread hamtho2
Thank you very much for that. I totally overlooked that part. But it´s still neccessary to have a view-id that is a real xhtml-page. There´s no way to use the outcome of a bean-action for multiple pages, is there? So that I could use the outcome of an action for multiple pages? Thomas View the

[jboss-user] [JBoss Seam] - Navigation outcome from bean

2007-02-16 Thread hamtho2
Hi @all, when I browsed through the forum I stumbled about a thread, telling how to user navigation outcomes out of a bean and not a view. Unfortunately I cannot find this thread anymore. Can someone give me a hint or a code-example for this? Thanks for your help and sorry for the inconvenience

[jboss-user] [EJB 3.0] - Re: EntityManager violates foreign key constraint

2007-02-07 Thread hamtho2
I did a little further debugging and found out, that it has to do with the optional=false If I remove that attribute, it works without any problems. Anyways: is this the way it should work? I think this behaviour is still a little bit strange and I´m still not satisfied with this non-handled ex

[jboss-user] [EJB 3.0] - EntityManager violates foreign key constraint

2007-02-05 Thread hamtho2
Hi, I experienced a strange behaviour while persisting entities into my database. Event though the entity-Manager did not throw an exception while calling persist, I get an org.hibernate.exception.ConstraintViolationException afterwards. This leads to two problems: 1. How is it possible, that

[jboss-user] [EJB 3.0] - Re: ID-Handling

2007-01-31 Thread hamtho2
noone knows about a solution to this? is this so unusual? or is it too obvious? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008774#4008774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008774 ___

[jboss-user] [JBoss Seam] - Re: trinidad and jpdl / trinidad and the seam EL-extension

2007-01-30 Thread hamtho2
Mmh.. the longer I go into details between icefaces and trinidad I get more and more confused. What would you say is the better choice if you start from scratch? It looks like Seam has a very high integration for ice-faces, plus it looks really sexy, but trinidad seems to be longer on the market

[jboss-user] [JBoss Seam] - Re: trinidad and jpdl / trinidad and the seam EL-extension

2007-01-30 Thread hamtho2
Do you have a good source where to ask those questions? Do they have a forum as well? Or is this only this mailing list? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008347#4008347 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [JBoss Seam] - Strange behaviour of Seam together with JSF RI 1.2 and Trini

2007-01-30 Thread hamtho2
Hi @all, thanks to the various post I got myfaces running together with trinidad and I also got JSF RI running together with trinidad. But the strange thing is, that with the JSF RI Version I receive double-page-headers, but only if I refer to the same page with returning null from an actionBea

[jboss-user] [JBoss Seam] - Re: trinidad and jpdl / trinidad and the seam EL-extension

2007-01-26 Thread hamtho2
Okay. thanks anyways. Currently I´m quite happy because with your help it works for me after all. It´s always a big benefit to have this forum. This way it´s possible to have a nice weekend without frustrations from the week, but instead a good feeling ;-) Thanks again! But I still have a ques

[jboss-user] [JBoss Seam] - Re: trinidad and jpdl / trinidad and the seam EL-extension

2007-01-26 Thread hamtho2
Perfectly - exactly as I wanted. Thanks a lot petemuir. Just a short question: I´m running a h:form together with the tr:inputText. This way I can work with my jpdl. Is that how you did it as well - or do you have a complete trinidad-form? Thomas View the original post : http://www.jboss.com/

[jboss-user] [JBoss Seam] - Re: Customize validation messages

2007-01-26 Thread hamtho2
Thanks for that - I guess that wasn´t too clear for me. So a component-library like Trinidad also uses a standard-jsf component like inputText, but extends them without keeping the jsf-specifications? So I´m kind of stucked to one component-library if I choose to use one? View the original post

[jboss-user] [JBoss Seam] - Re: trinidad and jpdl / trinidad and the seam EL-extension

2007-01-26 Thread hamtho2
Petemuir, how did you disable the JS validation-popup? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006795#4006795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006795 ___

[jboss-user] [JBoss Seam] - trinidad and jpdl / trinidad and the seam EL-extension

2007-01-26 Thread hamtho2
Hi, I just tried to get Trinidad to work with Seam and did quite well so far. But I have to questions: 1. It seems as if a trinidad-form doesn´t work with my jpdl-pageflows. If I use the together with the the submit doesn´t work. If I change it to together with it works, but I only get t

[jboss-user] [JBoss Seam] - Re: Customize validation messages

2007-01-26 Thread hamtho2
So what would you guys say: which jsf-implementation works better for seam? Right now we have the Sun JSF RI, Trinidad and myFaces (which I´m currently working with). In the seam documentation it is said, that trinidad is the better choice. Are there any major differences or any deviation from t

[jboss-user] [JBoss Seam] - Re: Customize validation messages

2007-01-25 Thread hamtho2
Norman, can you please give a little bit more detail about using your code. Simply creating the class and using the s:input-tag leads to an exception. Sorry - but I haven´t done anything in the tag-libraries yet, so I´m not so familiar how to add a new Tag. I get the following exception: com.

[jboss-user] [EJB 3.0] - Up-/Downcasting from objects with partial db-update

2007-01-23 Thread hamtho2
Hi, I´ve got two objects, that are extended from each other. For example they look like this: | @Entity | @Table(name = "users") | @Name("user") | @Scope(ScopeType.SESSION) | public class User implements Serializable { | | @Column(name = "create_date", nullable = false)

[jboss-user] [JBoss Seam] - Re: PersistenceContext in distributed environment

2007-01-23 Thread hamtho2
So what would be the way to go then? Is there a best-practice or any recommendation what to prefer and what better not to do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005208#4005208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [JBoss Seam] - PersistenceContext in distributed environment

2007-01-22 Thread hamtho2
Hi, I want to split up my seam application into 2 different application, so that I can use one JBoss as a webserver and another one as the application-server with the underlyng database. Therefor I use the EntityManager only on the application-server, so that all the updates etc. on the databas

[jboss-user] [JBoss Seam] - Some basic JPDL questions

2007-01-22 Thread hamtho2
Hi, I´ve got some basic JPDL-questions while trying to create a wizard for registering new user. I had a jpdl-flow, which started with the following JSF-Tag: | #{messages.userCreateUser} Now I changed this call to the following code-snippet, because I have to call a method to do something

[jboss-user] [EJB 3.0] - ID-Handling

2007-01-22 Thread hamtho2
Hi @all, I have the following scenario: I´ve got a user-object that gets it´s ID through a @SequenceGenerator. Inside this user-object I´ve got an object VerificationCode. The ID of the VerificatinCode should be the same as the ID of the user, but the problem is, that I receive the id only whil

[jboss-user] [JBoss Seam] - Re: Initialization of Seam Application

2007-01-16 Thread hamtho2
Gavin, thanks for your answer. Do you know of any work-around that would do in this case? Or is this simply not doable? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002394#4002394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[jboss-user] [JBoss Seam] - Initialization of Seam Application

2007-01-16 Thread hamtho2
Hi, I have a problem accessing the properties of my seam application during startup. I´ve got the following Bean, that is started through the @Startup annotation. | @Name("commonDataHelper") | @Scope(ScopeType.APPLICATION) | @Startup | public class CommonDataHelper { | |

[jboss-user] [EJB 3.0] - Re: WrongClassException with inheritance

2007-01-15 Thread hamtho2
Thank you very much for this hint. But as far as I can see, I would have to define a DiscriminatorColumn in my superclass (AbstractBalance) from which I can decide between one of my inheritances, for every id in this table But in my case both tables (BalanceA and BalanceB) are referencing to the

[jboss-user] [EJB 3.0] - WrongClassException with inheritance

2007-01-09 Thread hamtho2
Hi, I have a problem with an inheritance-model and I´m not sure, if I´m trying to do something, that´s not possible this way. From the object-oriented point of view and the database-oriented point of view this should be possible, but it seems, as if ejb3 needs some more information. The object

[jboss-user] [JBoss Seam] - Re: Customize validation messages

2007-01-04 Thread hamtho2
Thanks for your help! Norman, your solution worked perfectly as I wanted it to be, besides the fact that you have to use a slightly different annotation if you want to use messages fro the seam resourceBundle which caused me some confusions until I realized that fact. So if anyone else has the s

[jboss-user] [JBoss Seam] - Customize validation messages

2007-01-03 Thread hamtho2
Hi, I´m currently doing my first steps with Seam and JSF and, as a long-time Struts-developer, I already see so many improvements in the Seam/EJB3/JSF integration. Thank you for the great work! But now I´m starting at a very basic problem: validation! The struts way of life was that you have a