[JBoss-user] [JBoss Seam] - Re: Some thoughts about the conversations
"[EMAIL PROTECTED]" wrote : I don't follow. Sorry, it is not really easy for me to explain. I will try with an example. I have a document Finder bean: | | @Name("documentFinder") | @Stateful | @Interceptors(SeamInterceptor.class) | public class DocumentFinderBean implements DocumentFinder { | | @DataModel | private List documentList; | | @DataModelSelection | private Document selectedDocument; | |private String searchCriteria; | |.. | | @Begin (join = true) | public String searchDocuments() { | | .. // Perform the search and update the documentList | |} | | ... | // Setter/Getter | } | | The user perfoms a search with searchCriteria1. The resulting documents are displayed. The breadcrumb displays correctly: Search [searchCritera1] The user now selects a document. The following bean is used for this: | | @Stateless | | @Name("documentSelector") | | @Interceptors(SeamInterceptor.class) | | public class DocumentSelectorBean implements DocumentSelector { | | | | @In (create=true) | | private transient DocumentEditor documentEditor; | | | | @In (create=true) | | private transient DocumentFinder documentFinder; | | | | @Begin (nested = true) | | public String selectDocument() { | | documentEditor.setInstance(documentFinder.getSelection()); | | return "document/details"; | | } | | .. | | @Begin (nested = true) | | public String selectCriteria() { | | documentFinder.setSearchCriteria(documentEditor.getSelectedPointer().getDescription()); | | return documentFinder.searchDocuments(); | | } | |.. | } | | The document is selected and a page is presented with the document details. The breadCrumb now displays: search[criteria1] > document [document1] This document refers to other documents. He contains criteria(s) that refer to other documents. When the user click on a criteria (let's say critera2), I call selectCriteria() on the documentSelector bean. Eveything is fine. The breadcrump displays:search[criteria1] > document [document1] > serach[criteria2]. The correct results are displayed to the user. Now, let's says that the user decide to go back on seach[criteria1]. It is not possible. It still refers to criteria2. Any help with this would be appreciate. If I am not clear enough, please let me know. Thanks for your patience, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929011#3929011 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929011 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Some thoughts about the conversations
Hi, I have a question concerning "recursive" converstation/operations. Let's say that I have documents that refer to other documents. Now, I have a stateful bean that contains a searchDocuments method, a list of documents (the result of the seach) and a search parameter (a string that identifies document(s)). I also have a stateless bean to select document. It just inject the the selected document to the stateful bean that view the doc. There is another staleful bean to view a document (there is other business logic involved when displaying a document). I would also like to use the breadcrump functionality from jboss seam. Here is what happens: 1) on the first searchDocuments I start a conversation with @begin(true) 2) resulting documents are displayed. The breadcrump is displayed. The user can now select one document. 3) when the user selects a document, a nested conversation is started on the selectDocument method (from the stateless bean). 4) Once the document is selected the user is presented with criteria that, once clicked, will forward him to 2). For this another method with @begin(nested = true) is used. However, the same stateful bean perfoms the operation. The breadcrump is well displayed. However, if you click on the first occurrence of the breadcrump, the staful bean perfoms the operation with the arguments of the last operation resulting in completely wrong results. Is there a way of performing "recursive" operation using nested converstation? Thanks for you help, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928998#3928998 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928998 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Tools & Documentation
Hi, Yes the "use ejb3/annotations" was checked in the console configuration. I also tried without any hibernate related jars to the console and I have the same results. I tested on jboss ide 1.5 and on the nighty build. About the management of the console configuration: I can create a console configuration using the wizard, but after that where do I select the console configuration in order to edit/delete it? I am sorry if the question looks rather stupid to you, but I am obviously missing something: I can select/edit/delete the "hibernate code generation" configuration, but I cannot find where to do it for the console configuration. Thanks for your help and you time, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928982#3928982 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928982 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Tools & Documentation
Sorry to disturb you again, but I still cannot make it work: I have the following hibernate.cfg.xml file: | | | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> | | | | | | And when trying the generate the jboss seam file I have the following error: org.hibernate.MappingException: An AnnotationConfiguration instance is required to use In the admin console, I tried with adding the ejb-persistence.jar and hibernate-annotation.jar in classpath. Both this files are also in my classpath. Btw, Is there a way to delete/update hibernate console configuration? Thanks for you patience, Nicolas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928739#3928739 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928739 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Tools & Documentation
Well may be I was not clear. I wasn't talking about the reverse engineering check box ( I understood that I don't need reverse engineering from the DB but actually from the EJB themself). I don't actually use hibernate (well directly at leat) but ejb3. I don't see why I should have a mapping file (or even a hibernate.cfg.xml with a mapping entry) to generate the jboss seam web application? I should just be able to specify the entity beans that I want to be part of the generated jboss seam web app. Or. is this feature exclusive for hibernate users? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928730#3928730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928730 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Tools & Documentation
"[EMAIL PROTECTED]" wrote : | | Can you use the hibernate reverse engineering tools to create a Seam application from just annotated Entity beans? Hi, I cannot find how to generate a jboss seam application from annotated entity beans? How do I do that? Using hibernate tools, it seems to be mandatory to access a database? Is there a way to specify entity beans and then have the reverse engineering tools creating a jboss seam web application (crud for each entity)? I tried with the nightly build of jboss ide but could not find any way to do so. Thanks, Nicolas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928715#3928715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928715 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: binding UIInput problem
Thanks for the answer. I wonder however how to do now. Here is my situation: I have a dynamic table (the number of columns is dynamic). The table is bound to the view via the binding= "#{myBean.myDynamicTable}". The stateful bean is a conversational component (as the user navigate into it till he select a row). Does anyone has any suggestion? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918587#3918587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918587 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: binding UIInput problem
I have the same problem with a UIData and using a binding. Does anyone know why is that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918139#3918139 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918139 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Database overwritten at each JBoss startup.
Hi. For the first issue: You need to set the following in your persistence.xml file (located in your META-INF of the .par archive): Regards, Nicolas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911730#3911730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911730 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers
It turns out that I had to add a in the jboss.xml. (as Scott kindly mentioned). However, reading the jboss_4_0.dtd this tag is not allowed, it's why I did not quite understand. So now I have the following: | | Stage1EventBatchReceiverMDB | queue/trigger/Stage1EventBatchQueue | Singleton Message Driven Bean | ejb/local/trigger/Stage1EventBatchReceiver | | and I have no more @nnn. However, it is not valid according to the DTD! (and the local-jndi-name tag is not supported by xdoclet for MDB). Nicolas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878517#3878517 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878517 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers
I am trying using the loca-jndi-name. It does not work at all: my ejb-jar.xml contains something like: | | ejb/Stage1EventBatchReceiverMDB | Message Driven | something.message.Stage1EventBatchReceiverMDBLocalHome | something.message.Stage1EventBatchReceiverMDBLocal | Stage1EventBatchReceiverMDB | | I have to reference it from the jboss.xml but how?? Reading the jboss_4_0.dtd, for message driven bean only ejb-ref are allowed and not ejb-local-ref. There is apparently no way to get rid of the @? If you have a solution, please enlight me. Thanks, Nicolas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878342#3878342 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878342 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers
Wouldn't that be better to use the archive (jar) name then? How can I use dependency now? I would like also to be able to retrieve the MBean associated with the MDB. Is that still possible? I am trying to use the local-jndi-name but I still need to lookup for the bean after. How can I get access to the MBean associated to the MDB? How do you solve the depency problem ( has to refer to an MBean)? Thanks, Nicolas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878178#3878178 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878178 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers
Hi FYI, I am now using with success the lastest jboss-common.jar and mymbean are now persistent. However, another problem appear. In the jmx-console, I cannot view bean that are on the form [EMAIL PROTECTED], where @122123 seems to be a memory address. I have two driven message beans that have jndi name finishing with '@1871212' and that I cannot access through the jmx console. I don't understand why their jndi name is ending by @1123 anyways, as it is now impossible to use a depency (jndi-name) within mbean and ejb. Nicolas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878046#3878046 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878046 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Why is there a @5345345 on the end of my entity bean jnd
I have the same problem but with message driven bean. How can I use a clause now? I cannot use local-ejb-ref as they are driven message bean. Is there a solution? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878042#3878042 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878042 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss.NET] - Bug in Jboss.net: cannot authenticate on JBoss 4.0.1sp1 with
Hi, Jboss 4.0.1sp1 seems to have the possibility to authenticate against roles. However this didn't work. Looking at the source code, it seems that you forgot to register the subject with the SecurityAssociation class in the class org.jboss.net.axis.server.JBossAuthenticationHandler. Here is what the validate method becomes if we do so: anonymous wrote : /** validates the given principal with the given password */ |protected Subject validate(Principal userPrincipal, String passwd) throws AxisFault |{ | // build passchars | char[] passChars = passwd != null ? passwd.toCharArray() : null; | // do the validation only if authenticated or validation enforced | Subject subject = null; | if (shouldValidateUnauthenticatedCalls || userPrincipal != NobodyPrincipal.NOBODY_PRINCIPAL) | { | subject = new Subject(); | //isValid will setup the subject ! | // have to use pointer comparison here, but itÃÂÂs a singleton, right? | if (!authMgr.isValid(userPrincipal, passChars, subject)) | { | throw new AxisFault("Server.Unauthenticated", |org.apache.axis.utils.Messages.getMessage |("cantAuth01", | userPrincipal.getName()), |null, null); | } | SecurityAssociation.setSubject(subject); | } | return subject; |} | I also removed the class associate as it is no more used (this method only authenticate based on the principal and the credential, not the roles I think). I hope this would help. I do not know if this is the right fixed even if this seems to work (and roles are now working, great!). Nicolas Leroux Lunatech Research View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869174#3869174 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869174 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss.NET] - JBoss.Net doesn't work with Jboss 3.2.6RC2 and JBoss 4.0
When upgrading to jboss 3.2.6RC2 the jboss.net module doesn't work anymore. I might be because it is using the new version of axis. When calling a webservice I have the following stack trace: 13:53:58,455 ERROR [Engine] StandardWrapperValve[JBossAxisServlet]: Servlet.service() for servlet JBossAxisServlet threw exception java.lang.NullPointerException at org.jboss.net.axis.Deployment.oldGetService(Deployment.java:255) at org.jboss.net.axis.Deployment.getService(Deployment.java:275) at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:290) at org.apache.axis.AxisEngine.getService(AxisEngine.java:302) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:900) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:372) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any help is welcome. Regards, Nicolas Leroux Software Developer Lunatech Research View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850379#3850379 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850379 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user