[JBoss-user] [JBoss Seam] - Continuously server restarting
I've been using seam for a while. It's great. However, one of the things that seems to slow down the development process is that any minor change in the code (even resource files) would require Tomcat to restart. - at least in my config - I've noticed also after one of the RCs that the EJB microcont. now takes forever to load. My environment is Eclipse 3.2, Callisto w/WTP plugin, Tomcat 5.5.x, Seam 1.0.1GA. The code is based on the DVD example. I've search the forums but only found other cases that report slugish performance but no answer yet. Would anything in my eclipse/wtp/Tomcat config be changed to avoid restarting the server? Any Jira issue to improve performance in EJB embeeded container? Your suggestions/comments very much appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956800#3956800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956800 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: How to use Annotation attributes that are variables
Thanks Gaving, Indeed has businessProcess component has it: jboss-seam\src\main\org\jboss\seam\core\BusinessProcess.java I was halfway writing a wrapper like this...seam could have a nickname: "The JBoss Glue" Thanks again, Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956725#3956725 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956725 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Got it!
Thanks for pointing to this component: jboss-seam\src\main\org\jboss\seam\core\BusinessProcess.java I was halfway writing a component like this built-in one... Seam could easily have a nickname: "The jboss Glue" Thanks again! Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956724#3956724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956724 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - How to use Annotation attributes that are variables
Hi there, When using Seam annotations I need to use annotation attributes that are not string constants. In this code fragment: @CreateProcess(definition="myProcessDefinition") | @Begin(nested=true, pageflow="myPageFlowDefinition") | public void startProcess() { | ... | } | Is it possible to use variables instead of strings like: "myProcessDefinition". I've tried referencing a private variable but I get a compilation error: The value for annotation attribute CreateProcess.definition must be a constant expression I know that this annotation in particular could be implemented using jBPMs api method: public ProcessInstance newProcessInstance(java.lang.String processDefinitionName) But I would prefer to use annotations (cleaner, compact code). Is there an elegant workaround or do I just drop this annotation and call their corresponding api method. Thanks for all your possible suggestions. Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956706#3956706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956706 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - 10 min video broken link?
I've stumbled on this broken link in the wiki: http://docs.jboss.com/TrailBlazer/seam-booking/Seam.htm View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955170#3955170 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955170 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Compilation Error: The annotation @Startup is disallowed
Indeed ! Thanks. Apologize for my confusion. In a side note, I've been fascinated by the smoothness of Seam, great work! Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955160#3955160 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955160 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Compilation Error: The annotation @Startup is disallowed
The actual compilation error message is: The annotation @Startup is disallowed for this location View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955157#3955157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955157 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Compilation Error: The annotation @Startup is disallowed for
I got this on an application scoped seam managed bean. It's in the first method: @Startup | public void initStuff() { | } | Does the annotated method require a special signature ? or located somewhere else? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955155#3955155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955155 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: How to retrieve current view ?
Thanks Gavin. Maybe a bit off topic , but in the DVD sample in the login.xhtml page I've modified in my own prototype to use s:link instead of the anonymous wrote : Create Account but did not work. I had the idea that both commandLink and s:Link would be somewhat interchangable but it seems not. Can you point to resources providing insight on the differences? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955097#3955097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955097 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: How to retrieve current view ?
Thanks for your almost quick response Gavin, great support ! I'm thinking if the JSF viewId would be the correct way to access it or does Seam store that reference or handler somewhere else? If so how should I access it: standard JSF or via a Seam method ? Yeyo. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955093#3955093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955093 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - How to retrieve current view ?
After navigating with a Link or by using a PageFlow, how can I retrieve the value of the current view in both the newly rendered page itself and inside an action ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955090#3955090 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955090 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten
Works great ! Thanks for the reference to the example ! "supernovasoftware.com" wrote : Have a look at my post on a different matter. | | http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85986 | | I was using an inner class like in the DVD Store example and passing the entitymanager to the constructor. | | I used @PersistenceContext to inject the EntityManager into the SLSB. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955068#3955068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955068 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten
Hello, Got same problem, tried same approach, but I still get a null instance of EntityManager after adding getInstance to the getAsObject method in the custom converter: Component.getInstance("em", true); Questions: 1. Is it that I need to declare the Seam Managed bean "em" somewhere else for this to be referenced ? 2. Do I need to declare this class as SLSB to be able to use the EntityManager instance? This is the custom converter class : (same as original posting) | | @Name("MyCustomConverter") | @Scope(ScopeType.EVENT) | @Intercept(InterceptionType.ALWAYS) | public class MyCustomConverted implements Converter | @In(create=true) | EntityManager em; | | Could you please provide any directions, hints or ideas ? Thanks ! "js8523" wrote : Hi | | Worked like a treat. | | | | /** | | * Fetches the contract object direct from the database each time it is selected | | */ | | public Object getAsObject (FacesContext context, UIComponent component, String value){ | | log.debug("getAsObject: Called with value = " + value); | | | | // Fetch the entity manager from the one managed in seam. | | EntityManager em = (EntityManager)Component.getInstance("em", true); | | return (Object)(Contract)em.find(Contract.class, Long.valueOf(value).longValue()); | | } | | | | Thanks for the help. | | Thinking about the reverse engineering tool, it would be possible to automatically generate the different converters as long as each entity had a @Id and a field that could be used as the name element (the tricky part). | | As far as extending seam with further annotations, I will have to think about this further (i.e. how the converter could be generalised further, to lookup any type of entity, rather than converter per entity type). Allow possibly the converters could be created and cached at seam scanner time for each entity component that had @Selectable annotation?, this scanner task would also need to dynamically register the converters with jsf/myfaces which I believe is possible using the myfaces Application class (don't know about the RI implementation). | | The entity class annotated with @Selectable would have to have an @Id attribute and a attribute annotated with something like @SelectionName for the displayed name of the object in the selectItems. I don't know if it possible to pass in the function that you want to use dynamically to a function, but if it is then its a possibility? | | Just thoughts currently. | | James View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954905#3954905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954905 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user