[JBoss-user] [EJB 3.0] - Re: javax.annotation.EJB vs javax.ejb.EJB (was Re: @EJB anno

2006-05-02 Thread rpiaggio
"xinu" wrote : | My problem was that I was using javax.ejb.EJB, which presumely superceded javax.annotation.EJB in the specs and Sun's docs. Or vice versa--Sun's docs all say javax.ejb.EJB, but I'm rather surprised I can't find any references to it changing packages. | | Using javax.ann

[JBoss-user] [EJB 3.0] - Re: javax.annotation.EJB vs javax.ejb.EJB (was Re: @EJB anno

2006-05-02 Thread rpiaggio
"rpiaggio" wrote : | I am having the same problem. Cannot get @EJB to work at all. Deployment works fine and if I do a .lookup also works. Any hints? | Actually, after toying a bit more, I got it to work in some cases. But there's a case where it doesn't work

[JBoss-user] [EJB 3.0] - Re: javax.annotation.EJB vs javax.ejb.EJB (was Re: @EJB anno

2006-05-03 Thread rpiaggio
"asack" wrote : As I stated before and in the FAQ/WIKI, @EJB works within EJB modules, not outside them, i.e. dependency injection from a WAR. The good news is that Servlet spec 2.5 (I think that's the version, i.e. the next one), will add depedency injection notation to WARs but the current re

[JBoss-user] [EJB 3.0] - Help with Timers

2006-05-09 Thread rpiaggio
Hi everyone, I am trying to use the Timer Service to do an automatic cancellation after a certain period has passed since the last modification to each record/entity in the database (unless the record is competed or cancelled) . For this purpose, I do the following: | - I added a TimerHandle

[JBoss-user] [EJB 3.0] - Re: Help with Timers

2006-05-10 Thread rpiaggio
Nobody else is using TimerService?? I have an additional problem: I tried relocating the logic in the Entity bean. But this does not work at all since resource injection is not working in entities. Is this the expected behavior? View the original post : http://www.jboss.com/index.html?module=b

[JBoss-user] [EJB 3.0] - @Local and @Remote on same interface

2006-05-29 Thread rpiaggio
I noticed I can annotate the same interface with both @Local and @Remote. This is convenient, since most of the time I use the same interface for both kinds of access. When I do this, will the application server automatically realize when the caller is local and not go through all the overhead

[JBoss-user] [EJB 3.0] - Re: @Local and @Remote on same interface

2006-05-29 Thread rpiaggio
What if I use @EJB injection of the interface on the caller? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947476#3947476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947476

[JBoss-user] [EJB 3.0] - Re: @Local and @Remote on same interface

2006-05-30 Thread rpiaggio
After some tests, it seems you are wrong. I had a call to a session bean method explicitly through an interface that was annotated as @Local. The call passed a non-serializable Entity bean as a parameter. This worked OK. (Caller and callee are part of the same application and are in the same JA

[JBoss-user] [EJB 3.0] - Re: @Local and @Remote on same interface

2006-05-31 Thread rpiaggio
Makes sense. If it is illegal, shouldn't I get an error (or at least a warning) when I compile (or at least deploy)? After all, one of the reasons we use Java is not to shoot ourselves on the foot. ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948058#39

[JBoss-user] [EJB/JBoss] - Unreliable Timeout

2006-05-31 Thread rpiaggio
I found out that if a timer service Timeout fires while I am redeploying an application, then the event is NOT exectued after redeployment is complete. This means I cannot rely on the timer service and forces me to do manual timestamp checks. Is this the expected behavior? (At the moment I´m st

[JBoss-user] [JBoss Seam] - Seam CRUDs just from Entities?

2006-04-26 Thread rpiaggio
I am working with JBoss IDE and have a very basic EJB 3.0 application running. I am trying to reverse engineer it to automagically create a Seam CRUD web skeleton using the Hibernate Code Generation tool. Is such a thing possible? (without specifying a database) I DID declare the Entity classes

[JBoss-user] [JBoss Seam] - Re: Seam CRUDs just from Entities?

2006-04-26 Thread rpiaggio
Ok, there seems to be someone else with the same problem here http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936104#3936104 So, I should also mention: I do have the "Enable hibernate EJB3" checkbox checked. I tried restarting JBoss IDE and I still have the error. View the original pos

[JBoss-user] [JBoss Seam] - Re: Seam CRUDs just from Entities?

2006-04-27 Thread rpiaggio
"[EMAIL PROTECTED]" wrote : show me a screenshot of your console configuration Well, the hibernate.cfg.xml looks like this: | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> | | | org.hibernate.dialect.MySQLDialect | |

[JBoss-user] [JBoss Seam] - Re: Seam CRUDs just from Entities?

2006-04-28 Thread rpiaggio
"[EMAIL PROTECTED]" wrote : the criticial point is the console configuraiton (double click on it in the console configuration view and in the shown dialog there should be an enable ejb3 checkbox) sorry, got configurations mixed up. console configuration is here: http://200.40.100.106:8080/raul/

[JBoss-user] [JBoss Seam] - Re: Seam CRUDs just from Entities?

2006-04-28 Thread rpiaggio
i was using beta 4a but now i tried with beta 5 and i still have the same problem. i will put it in jira next week View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940267#3940267 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[JBoss-user] [EJB 3.0] - Re: EJB 3.0 RC8 Preview - FD Released

2006-06-13 Thread rpiaggio
"Stefan Arentz" wrote : "Juergen.Zimmermann" wrote : In the zip I downloaded via sourceforge there are only 2 subdirectories: docs and lib. There is no client subdirectory. | | | | Check the other download ... jboss-EJB-3.0_RC8-FD.zip | | S. | Stefan, That's the one I downl

[JBoss-user] [JBoss Seam] - Help understanding Entity component lifecycle

2006-06-19 Thread rpiaggio
Is there a way to tell Seam that we don't want it to instantiate Seam-managed variables automatically? Basically, what I have is the following: @Entity | @Name("currentUser") | @Scope(ScopeType.SESSION) | @Roles({ | @Role(name="loginUser", scope=ScopeType.EVENT), | @Rol

[JBoss-user] [JBoss Seam] - Re: Help understanding Entity component lifecycle

2006-06-19 Thread rpiaggio
The reason why I am making it a Seam component is to specify the scope in one signle place in the code. If I don't make it a Seam component, then I have to specify the scope in every outjection. This means that if I want to change the behavior it in the future then I will have to change n place

[JBoss-user] [JBoss Seam] - Re: Help understanding Entity component lifecycle

2006-06-20 Thread rpiaggio
Let me rephrase: Is there a way to specify a default Seam scope for variables that are not Seam components? If not, can we turn it into a feature request? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952057#3952057 Reply to the post : http://www.jboss.c

[JBoss-user] [JBoss Seam] - Re: Help understanding Entity component lifecycle

2006-06-20 Thread rpiaggio
Thanks for considering it, Gavin. However, I don't like it either because it doesn't fully solve the problem: in the example above, the same class would be used as a Seam component in some roles but not in others. My suggestion: a "create" property in the @Role annotation (and in @Scope?). Def

[JBoss-user] [JBoss Seam] - Quick Question: Propagate from nested conversation to parent

2006-07-05 Thread rpiaggio
Is there a way to propagate a variable from a nested conversation into its "parent" conversation? Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955576#3955576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[JBoss-user] [JBoss Seam] - Re: Breaking changes to pageflow

2006-07-07 Thread rpiaggio
"[EMAIL PROTECTED]" wrote : | If you begin a pageflow while rendering the page (eg. from an @Factory or @Create method while pulling data for the page), you should no longer begin the pageflow with a . This was an extremely inelegant model, since it implied a transition into the page we are a

[JBoss-user] [JBoss Seam] - Re: Breaking changes to pageflow

2006-07-10 Thread rpiaggio
"[EMAIL PROTECTED]" wrote : Have your start-node transition directly to a decision node. When the process is signaled, you will go through the decision node and, I assume, to a page node for display. If you are in the situation mentioned where you need use start-page, you I guess you'd need to

[JBoss-user] [JBoss Seam] - Re: Quick Question: Propagate from nested conversation to pa

2006-07-10 Thread rpiaggio
http://jira.jboss.org/jira/browse/JBSEAM-300 I also included some sueggestions for possible ways to implement it. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956654#3956654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[JBoss-user] [JBoss Seam] - Re: Breaking changes to pageflow

2006-07-10 Thread rpiaggio
How do I specify the pageflow to start from pages.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956659#3956659 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956659 --

[JBoss-user] [JBoss Seam] - Re: Seam mailer component

2006-07-10 Thread rpiaggio
I think it is great to have a component for email manipulation, but IMHO this concern is orthogonal to that of a web framework. Including something like this in the Seam standard would add unnecesary complexity to the framework and its documentation. Again, IM(Very)HO, I see a place for a reposi

[JBoss-user] [JBoss Seam] - Re: Breaking changes to pageflow

2006-07-10 Thread rpiaggio
That's what I was doing when I said: anonymous wrote : | | @Begin(pageflow="PaymentAuthorization") | | public voidstart() { | | } | However, if I started via a GET (calling the above method via pages.xml) ... When I do that, I get the Clas