[jboss-user] [EJB 3.0] - Should EntityManager be transient?

2007-04-23 Thread taprogge
Hello all! This might be a very stupid question. If so, please enlighten me... ;-) I was wondering: According to the specs, a stateful session bean has to be serializable so that the container can passivate it. Most stateful session beans will centain a @PersistenceContext declaring an

[jboss-user] [JBoss Portal] - Re: Access userPrincipal from Servlet

2007-04-17 Thread taprogge
Hello again and thanks for your answer. Unfortunately, I am still stuck... I do not want to hand over the login info through the session, that's just ugly. So I tried your second solution. If I understand it correctly, the JBossIntegrationFilter basically just looks up

[jboss-user] [JBoss Portal] - Access userPrincipal from Servlet

2007-04-13 Thread taprogge
Hi! I am trying to implement a file download function inside a portlet, i.e. a link inside the portlet that will provide the user with a file. I am using a Servlet to handle the download because I have to pull the file from the database first. Is there any way to access the portal's

[jboss-user] [JBoss Seam] - Action not invoked - config error?

2007-04-10 Thread taprogge
Hello all! I am currently working on a project that has been dorment for a while. It uses JBoss Seam with JBoss Portal through the MyFacesGenericPortlet. A have updated Seam to 1.2.1 now and added a new component to test the s:fileUpload functionality. My problem is now that the action

[jboss-user] [Management, JMX/JBoss] - TimerService in MBean not containing timers

2007-01-20 Thread taprogge
Hi! In an EJB3 application I have a EJB3-style timer that get's started by a ServletContextListener at deployment time. In the Listener I call getTimerService() on an injected EJBContext. On the resulting TimerService I call getTimers() to check whether an instance of that timer already exists

[jboss-user] [JBoss Seam] - Re: getter called but property not found?

2006-10-24 Thread taprogge
Of course... the interface! How could I forget? It seems odd though, that the beans getter method gets called even though it's interface does not even specify it... Thanks a lot, Phil View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3980331#3980331 Reply to

[jboss-user] [EJB 3.0] - ne emf.createEntityManager(EXTENDED) any more?

2006-10-13 Thread taprogge
Hi! I am using ejb3-rc8 on JBoss-4.0.4.GA. I am trying to get an EXTENDED EntityManager inside a servlet. Doing this in a lervlet just seemed to be the simplest way to write some data to the DB while migrating to a new, rewritten version of our application. I look up the EntityManagerFactory

[jboss-user] [EJB 3.0] - Re: ne emf.createEntityManager(EXTENDED) any more?

2006-10-13 Thread taprogge
Hmm... why then do I get detached object passed to persist when I try to persist a newly created entity with collection mapping? I can persist anything just fine, but when I create an entity that holds a List of other entities (even when the list is still empty), that fails. I have already

[jboss-user] [JBoss Portal] - How to control maximized portlet layout?

2006-09-28 Thread taprogge
Hi! I am trying to understand how Portal manages the layout of maximized portlets. The documentation does not seem to cover this topic. In a freshly deployed Portal, a maximized portlet will cover both center and left regions, but not navigation. How is this controlled? Is the omission of the

[jboss-user] [Installation, Configuration Deployment] - [UDP] discarded message from different group after ejb3 up

2006-09-21 Thread taprogge
Hi! I updated my JBoss 4.0.4.GA configuration to use the latest EJB3 (rc9) and JBoss portal. During server startup I see nothing wrong, but right after the server comes up, it begins spamming the console with this: | 16:19:54,968 WARN [UDP] discarded message from different group

[jboss-user] [JBoss Seam] - Problem outjecting a field

2006-09-20 Thread taprogge
Hi! I have a problem here which I have been unable to solve... I have here two statufel Seam session beans. One uses the DataModel and DataModelSelection mechanism to fetch some data rows. The other is used to edit an item from that list. What I have done is this: I added a getter for the

[jboss-user] [JBoss Seam] - Re: Problem outjecting a field

2006-09-20 Thread taprogge
Well, I found the answer, but that raises even further questions... It turned out, I had different names for my Charge entity and the fields in my session beans. So the field was not correctly outjected and thus overwritten with null when being injected again on the next method call. After

[jboss-user] [JBoss Seam] - Re: Problem outjecting a field

2006-09-20 Thread taprogge
Thanks, that was exactly what I was looking for :) Regards, Phil View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3972916#3972916 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3972916

[jboss-user] [EJB 3.0] - Re: Strange mapping problem...

2006-09-13 Thread taprogge
I solved my problem... Strangely enough, the cause was that in my code some persistence annotations were attached to fields while others (older code) were attached to getter/setter methods. Obviously hibernate checks one type first and complains without checking the other. So never, ever mix

[jboss-user] [EJB 3.0] - Strange mapping problem...

2006-08-14 Thread taprogge
Hello all! I have here a strange mapping problem on my hands (at least it seems strange to me). Perhaps anyone here can enlighten me. I have an entity model that contains (among other things) two entities (Cheque and BonusCard) that work perfectly by themselves. Cheque is an obstract class

[jboss-user] [JBoss Seam] - Accessing portal user attributes from within Seam

2006-08-09 Thread taprogge
Hi! I am runnig a Seam application inside a portlet (using the MyFacesGenericPortlet). I now need to access some of the user attributes stored within the portal. Usually I would do something like | Map userInfo = (Map) request.getAttribute(PortletRequest.USER_INFO); | but it seems I

[jboss-user] [JBoss Seam] - In attribute requires value for component

2006-08-04 Thread taprogge
Hi! I am totally confused... I am working with an existing Seam application running inside JBoss Portal (JBoss 4.0.4.GA, EJB3 rc8, Portal 2.4.0.CR3) with the MyFacesGenericPortlet. All existing components work. Now I tried to add a new component and get said error. I have stripped it down in

[jboss-user] [JBoss Seam] - Re: In attribute requires value for component

2006-08-04 Thread taprogge
Indeed... Sometimes I just hate myself ;-) You are, of course, correct. After changing the names, it works fine. It's even in the Seam Reference Guide for crying out loud. Well, thanks a lot for saving me from my own ignorance. Regards, Phil View the original post :