[jboss-user] [JBoss Messaging Users] - JBoss Messaging recovery configuration on JBoss 5.1
I am switching my JBoss AS from the 4.2.3 version to 5.1. I was trying to configure the JBoss Messaging recovery resource with the following XML: Code: However I got the exception: Local XARecoveryModule.xaRecovery got XA exception javax.transaction.xa.XAException: Error trying to connect to provider java:/DefaultJMSProvider, XAException.XAER_RMERR I did some research what I was doing wrong and looked in to the JBoss Enterprise Application Platform 5.0.0 documentation for JBoss Transactions and JBoss Messaging. I noticed in the guide for JBoss Messaging that there is no section any more for configuring the recovery resource. Does this mean that I don't need to configure the XA recovery resource anymore? I also asked this question on the JBoss transaction user forum but nobody could answer me that question. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269531#4269531 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Unique-Cons traint ûjbm_msg_pkeyë exception s in a c
Hi, Thanks for finding the problem. I changed my node id strategy to 10, 20, 30, etc.. I will look at my log closely and hope that the problem is gone now. Regards, Maurice View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242525#4242525 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242525 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Unique-Cons traint ûjbm_msg_pkeyë exception s in a c
Yeah, both have a different server peer id. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236614#4236614 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236614 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Unique-Cons traint ÃÂûjbm_msg_pkeyÃÂà « exception
"gaohoward" wrote : | | But the messages seems imply an issue. Do you have a test to reproduce it? | | No, I don't have a test. I think this is one of those cases which are hard to reproduce. It happens randomly in my clustered environment. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236595#4236595 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Unique-Constraint »jbm_msg_pkey« exceptions in a cluster ed
Yesterday I put a new system in production that uses a JBoss Messaging cluster. This is the first time that I put a JBoss Messaging cluster in production and now I am running into some exceptions that I am worry about. These messages didn't result in message loss until know but I don't know if it could result to message loss in the future. First the platform description: ESB Servers (2 nodes): Windows JBoss ESB server 4.5.GA (using JBoss 4.2.3.GA) JBoss Messaging 1.4.2.GA-SP1 Database: Postgres 8.3.6 First I get these warnings at one of the nodes: | 2009-06-10 09:21:11,712 WARN [org.jboss.messaging.core.impl.JDBCSupport] SQLException caught, SQLState 23505 code:0- assuming deadlock detected, try:1 | org.postgresql.util.PSQLException: FEHLER: doppelter Schlüsselwert verletzt Unique-Constraint »jbm_msg_pkey« | at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592) | at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327) | at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192) | at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451) | at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350) | at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:304) | at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:365) | at org.jboss.messaging.core.impl.JDBCPersistenceManager$1HandleBeforePrepareRunner.doTransaction(JDBCPersistenceManager.java:1992) | at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.execute(JDBCSupport.java:474) | at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java:512) | at org.jboss.messaging.core.impl.JDBCPersistenceManager.handleBeforePrepare(JDBCPersistenceManager.java:2063) | at org.jboss.messaging.core.impl.JDBCPersistenceManager$TransactionCallback.beforePrepare(JDBCPersistenceManager.java:2984) | at org.jboss.messaging.core.impl.tx.Transaction.prepare(Transaction.java:265) | at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:498) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java) | at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195) | at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java) | at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java) | at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82) | at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143) | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:866) | at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101) | at org.jboss.remoting.Client.invoke(Client.java:1634) | at org.jboss.remoting.Client.invoke(Client.java:548) | at org.jboss.remoting.Client.invoke(Client.java:536) | at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189) | at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160) | at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:221) | at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N326865078927536.invokeNext(ClientConnectionDelegate$sendTransaction_N326865078927536.java) | at org.jboss.jms.client.container.Failove
[jboss-user] [JBoss Tools (users)] - Re: Feedback on the Smooks editor
My timezone is CET and Tom's his Timezone is CET-1 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217877#4217877 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217877 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Feedback on the Smooks editor
max.ander...@jboss.com wrote : yes I would love to go on a chat with you guys - but not until we get GA out; i'm fully booked until then, so some time next week. Ok, that is cool. Could you send me an e-mail so that we can schedule it? My address is maurice(at)smies(point)com. It would need to be in the evening, because I am at work during the day. tfennelly wrote : I think we are definitely talking about different things here. | Thanks for explaining clearly what we are talking about ;). I was indeed talking about the Data Source Model. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217742#4217742 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Feedback on the Smooks editor
anonymous wrote : Warning - I am a smooks noob, just have that in mind when reading my answers :) No problem. But I must confess that I am wondering now if we are talking about the same thing ;). I am also just brainstorming here, so my theories can also be wrong one or more points ;). anonymous wrote : Of course, the problem is just that the two models of Smooks 1_0 and Smooks 1_1 is vastly different so I'm not sure any strategy can be defined that would work. But of course if it is doable then sure. To make sure that we are talking about the same thing I am going to explain my idea in little more detail.. I am proposing to use Smooks its readers (XML, EDI, CSV, JSON, Java reader) to analyze an example file of the source data, that the final Smooks configuration is going to process. Because of Smooks its flexibility you can let Smooks do the reading but you provide your own code to build the data model. The resulting model will probably look a lot like a DOM model. The visitor classes, provided by the Smooks editor, that build the model, will be Smooks depended. But because Smooks is backwards compatible you can use the same classes for Smooks 1.0 as for Smooks 1.2. I think what you mean is Smooks its configuration model. That changed a lot between version 1.0 and 1.1. But it is still possible to use the 1.0 configuration model with Smooks 1.1. anonymous wrote : Sure, but we would now be bundling how many versions of Smooks ? | What about smooks 1.0.1, 1.0.2, 1.1.0, 1.1.1 etc ? Smooks is backwards compatible at every level. Even when you would provide different strategies for different versions of Smooks, they probably all can use the same version of Smooks. So you don't need to include Smooks 4x times. Only in the theoretical case that Smooks wouldn't be backwards compatible between minor versions, then you would have the possibility to use two different versions of Smooks. That makes sure that the Eclipse Editor isn't Smooks version specific. anonymous wrote : The Reader you mention in that paragraph is from Smooks or from the Smooks plugin ? I meant the Smooks editor implementation of the SmooksReaderStrategy. anonymous wrote : the current editor at least in theory can survive broken parts and still read the rest. Personally I am not sure if surviving a broken part would be the correct thing to do. But that is a something for a different discussion. If surviving a broken input source would be needed then we probably could implement such a feature in our current readers. The biggest point of my idea is that you don't need to re-implement something that is already provided. I don't see the point that you guys need to re-implement the XML, EDI, JSON, etc readers. Max, would you be interested to talk about this topic during a chat session? That would go a lot faster and probably prevent a lot of misunderstandings then discussing this via the forum. Do you use Skype? If you are then maybe Tom Fennelly would also be interested to join the conversation. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217639#4217639 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Feedback on the Smooks editor
anonymous wrote : No matter if we use a custom classloader we would need to have a *very* stable API to do this since we would compile against liet say Smooks 1.0 would our code be able to use Smooks 1.1, 1.2 etc. without updating the binaries ? - does Smooks provide that ? I believe you need to implement a strategy pattern that can handle every supported Smooks version. For example something like this: - SmooksReaderStrategy interface - Smooks1_0ReaderStrategy class - Smooks1_1ReaderStrategy class Every one of those implementations knows how to use one specific version of Smooks. So they also have dependencies on that specific version. That is why you can't build against only one version of Smooks, you need to build against all of them. Because you can't do that within one bundle, you need to split it up in multiple bundles. The parts of the Smooks editor could then look something like this: - SmookEditor - SmooksReader API - Smooks1_0Reader implementation - Smooks1_1Reader implementation If I understand OSGI correctly then you wouldn't even need to worry to much about classloading, because every bundle can have it's own independent bundle dependencies. The SmooksEditor would have dependencies on the SmooksReader API and all it's implementations. Every implementation would a dependency on one specific version of Smooks. You could even make every reader a separate Eclipse plugin. That way you could implement new Readers for new versions of Smooks and use them with older versions of the editor. You only need to install the plugin. anonymous wrote : And what about the model that we load - is that stable ? I'm asking since I don't know :) The model that the Smooks editor gets from the Readers wouldn't change in between Smooks editors because they would belong to SmooksReader API. The Reader implementations would take care of the proper translation between the model that Smooks uses and the model that the Editor uses. anonymous wrote : About partial documents then users don't have syntax correct files - they type and it will be imperfect. That would mean as soon as the user type the graphical editor would not be able to show anything - that might be ok as you write it. Yeah, you would have that same problem with the current Smooks editor. The editor would need to tell the user that the source model can't be read because of a syntax problem. anonymous wrote : Another issue is that Smooks might not be able to load any of the related classes referred to in the editor because the classes are not compiled yet - does it support that ? No, Smooks doesn't currently support that. In this special case we would need a special reader. Maybe we can reuse the code that is now used by the editor to read the java model? I think that the Smooks team would be happy to provide support for implementing any special readers like that special Java reader or a XSD reader. I know I would at least ;). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217296#4217296 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Feedback on the Smooks editor
I understand that you want to release it. Most developers probably don't try Beta or RC releases. I do hope that not everybody runs into the same critical problems with the graph editor as I did. Regarding to your questions: How are we going to handle multiple versions of Smooks if the tooling become dependent on the runtime it self? That is a very good question. I have an idea how to solve that. By creating a custom classloader repository for each version of Smooks, you can provide support for multiple Smooks versions. In the java project the user needs to configure which Smooks version he uses. The Smooks editor can then dynamically use the classloader repository that belongs to that version. I believe that creating this classloader system is probably easier then creating Smooks independent readers, for every input source that Smooks supports. Are the Smooks readers capable of handling partial documents which is how users normally edit files. I hope I get what you mean with the question. As long as the reader gets a syntax correct file, it will be able to create a data structure from it. It is then up to the editor to decide if the structure is compatible enough against the data structure it may already have. But that wouldn't probably be any different then what it now already does for it's XML or Java source. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216859#4216859 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216859 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Feedback on the Smooks editor
Thanks for the answer. That explains a lot. I understand that you can't hold back JBoss Tools just for one editor. Isn't it maybe an option to not release the Smooks editor in the next JBoss Tools? Because what is the point of releasing an editor when it is so buggy that it is almost unusable. Now that I have the editor in my radar I am going to keep a close eye on it ;). I hope to provide you guys with more feedback in the future. That last couple of days, because I was so busy with the editor, I got a couple of feature idea's myself. At the moment I don't have time to work them out for you guys (I am at my job now) but here are some points I am thinking about: * Support for every Smooks input type, without having to code special support for them in the editor. You can use any Smooks reader to find out the input format, as long as you got an example input file. However for those cases where you want to use mapping files (e.g. XML schema or WSDL file) you do need to have some special Smooks reader. But the Smooks cartridge itself could provide that reader instead that the editor needs to provide it. * XML configuration editor enhancements: * Selector path code completion * Bean id code completion * Smart configuration templates for all core resource configurations * (Inline) Freemarker editor with variable code completion using the selector paths. Some of these points need more explanation. If you guys are interested then I will certainly be happy to provide it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216453#4216453 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Feedback on the Smooks editor
The last couple of days I have been evaluating the Smooks Eclipse plugin in JBoss Tools RC2. You may have noticed that from the number of Jira issues I have raised for the plugin ;). I would like to share some of my feedback. My interest for the editor comes from the fact that I'm one of the core developers on Smooks, plus the fact that the company I work for uses Smooks and JBoss ESB extensively in a number of production environments. I must say that I find it great that JBoss is developing the Eclipse tooling for Smooks. A good tool should make it a lot easier to use Smooks and should open Smooks up for a lot more people. Doing transformations within the ESB should also become a lot easier. While using the editor I ran into quite a few issues while trying to do some quite basic things. There where a number of bugs that made the editor practically unusable. I understand that some of these bugs probably only appear in some environments and that there aren't a lot of people out there that are testing it. I added Jira bug reports for these issues. I hoped that the most critical ones would be fixed in the version that gets released with JBoss Tools 3.0.0 GA. Some of the bugs I've added have been fixed already, which is great, but the fix version is for the Smooks editor that gets released in JBoss Tools 3.1.0 GA. Does that mean that JBoss Tools 3.0.0.GA is going to be released with a very buggy Smooks editor? I noticed that the editor at this moment for the biggest part concentrate around the XML/Java to Java mapping. Javabean binding is only a small part of what Smooks has to offer. Is it really valid then that the editor gets a 1.0.0 release number? If I think of a 1.0.0 release of the Smooks editor then I would expect that the editor has support for most of the features that Smooks has to offer. It is understandable that the first stable public releases of the editor don't have all the features. But wouldn't it be better to give this editor a version number like 0.1? That at least indicates that the editor doesn't have all the features one can expect. Regards, Maurice View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216351#4216351 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Cluster wide message count
I set up a message cluster for the first time. I noticed that the message count in the JMX console is only for the messages located in the queue on that node. I was wondering if it is also possible to get a cluster wide message count? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211829#4211829 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Missing message statistics
Oops, I missed that command. Now it works just fine. Thanks for the help. I thought there would be a parameter somewhere but not that I needed to execute a command. I find it a bit strange that there isn't a parameter to enable it per default or is there? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110741#4110741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Missing message statistics
First some tech info: JBoss: 4.2.2 Messaging: 1.4.SP1 Java: 6.0 OS: Windows XP 64 I am working on a project to move our application from JBoss MQ to JBoss Messaging. While testing I saw that the message statistics didn't change. All the values stay 0. I looked in the manual to see if I need to configure anything to enable it. The only thing I could find was the MessageCounterHistoryDayLimit attribute. Changing this value from -1 to something else didn't change anything. I did see that when a message is waiting in the queue that this is shown, but the statistics about how much messages the queue has processed always stays 0. I have the same problems with Topics. Am I missing something? Did I configure something wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110568#4110568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Missing message statistics
I forgot to tell you that I am not working in Clustered environment and that I am using the default HSQLDB. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110569#4110569 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
I discovered that in AS 4.2 with a JEE5 application.xml file all normal jars in the Lib process are added to the classpath but the file containing the persistence.xml needs to be added to the application.xml as a java module. I also found a workaround for my Global persistence unit. By using some life cycle interceptor and a custom annotation I inject the persistence context from the JNDI into the persistence manager field. The injector finds the JNDI path of the persistence context via a configuration file that I put on the classpath in lib aEJB3Lib.jar. This way i can reuse my DAOEJB3Lib.jar and on runtime tell it which persistence unit to use. But I still think that it is a bug that persistence units become global. What do you think? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079871#4079871 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079871 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
Nobody got any Idea. Should I just register this as a Bug in Jira? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079460#4079460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079460 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
Other strange thing that I discovered is that the /lib/pu.jar explicitly needs to be definded in the application.xml file else the persistence-unit won't be initialized. Other dependencies in this directory get found. Is this also a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078300#4078300 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078300 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
Yes, I have. Looks like this: | http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd";> | | jboss.loader:loader=wai-processor | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078299#4078299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078299 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
Hmm, I forgot to put code around the packaging example. Here is it again: - app.ear | - /lib | - pu.jar | - /META-INF/persistence.xml | - aEJB3Lib.jar | - DAOEJB3Lib.jar | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078239#4078239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EAR Scoped PersistenceUnit
Let's say that I create the following package: - app.ear - /lib - pu.jar - /META-INF/persistence.xml - aEJB3Lib.jar - DAOEJB3Lib.jar The persistence unit defined in the persistence.xml of /lib/pu.jar should be EAR scoped and not Globally Scoped (using a ear scoped classloader). Am I right? At least I understood this from the documentation. The problem is that in JBoss 4.2.1 it looks like that the persistence unit becomes globally. I will explain what the effects are. As you can see I have this DAOEJB3Lib.jar. It contains the entity classes but also some DAO Stateless beans. Those DAO's get there persistence manager using the unit name defined in the persistence.xml of /lib/pu.jar (lets say it is called pu1). I used this construction so that I can reuse those DAO's for different applications. Because the persistence unit name is hard coded in the DAO's of the DAOEJB3Lib.jar lib we need to define the same name in the persistence.xml. This means that if the DAOEJB3Lib.jar is reused by multiple applications on the same server there will also exist multiple persistence units with the same. If the persistence unit is ear scoped then this setup wouldn't create any problems. Practically however this doesn't work. All works fine if one application with this DAOEJB3Lib.jar lib is deployed on the server. The problems begin when I deploy a second application that contains the same DAOEJB3Lib.jar. The first application won't work any more because it now retrieves the persistence unit from the second application... Did I understand the Documents wrong or is there a Bug in the EJB3.0 lib of JBoss 4.2.1? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078238#4078238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sequential processing of messages with the same Key
Thank you for your help and your patience. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069001#4069001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069001 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sequential processing of messages with the same Key
Yeah, sorry you are right. I should have remembered that. Is this solution only based on JBoss MQ or is this the general solution? Does the JBoss Messaging give me more possibilities? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068255#4068255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sequential processing of messages with the same Key
anonymous wrote : You don't create 700,000 subscriptions that would be a management nightmare. ;-) | It would also require every send of a message checking 700,000 selectors to see | which subscription matches the message. | | You use a "like", e.g. all customers beginning with A, B, C, etc. | to divide them into groups according to how much concurreny you need. | | Or better yet, you use a "hash" of the customer id if you want a better spread. I am missing something totally. A queue can process multiple messages at once, depending on the size of the thread pool, right?. Doesn't this create concurrency? If I understood the whole JMS clustering thing then the cluster should make sure that those processes get distributed one the cluster. If I want to make it more scalable then I only make sure that the queue can be processed by more threads and that more machines are available on the cluster. Lets forget about the DB for now, because that will become the bottleneck eventually (if you don't let it scale ;)). But I see where you are going. Doesn't your solution also mean that a subscription can only have one thread to make sure that it processes all the messages sequentially? Because that would indeed be the solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068103#4068103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sequential processing of messages with the same Key
Thanks for taking the time for the explanation. Maybe I was looking for the wrong words (like: sequential jms) because I did use the search engine... I searched for an hour without finding anything useful. Please don't think that I easily post such questions on this forum because I know that you JBoss guys have a lot to do. I need to study you solution a bit more because I don't understand several things about it. Like: - Why do I need a topic? Isn't a queue enough because a message only needs to be processed by one receiver? - Do I need to configure a invoke-proxy-binding for every customer? I do have 700.000 customers, and those can be added dynamically... I thought that the solution would be like a cluster wide locking mechanism. This is what I mean: - A message comes in to the message queue with a certain customer id property - For this id a lock is acquired via the cluster wide singleton locking mechanism by the MB - The next message for this id is received while the other is still being processed - The process for the second message tries to acquire a lock, but needs to wait for the other process to finish for this id. - The moment the lock is released the next process in line receives the lock and can start processing. In this case the second process. Is this a stupid idea? Am I missing something about the whole JMS technology? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067691#4067691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sequential processing of messages with the same Key
I did search and I found something specific for Websphere but nothing in general or specific for JBoss. In the Sun FAQ, the Java EE 5 Tutorial and on Google I didn't find the solution. That is why I ask here, because I didn't find it... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067300#4067300 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067300 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Sequential processing of messages with the same Key
I have this queue that receives messages with changes to certain customer records. Messages of the same customer should be processed in a absolute sequential order. Messages of different customers can be processed parallel. The whole thing needs to work in a clustered environment. How can I achieve this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066985#4066985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable
thx, that would be very great. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042745#4042745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable
I got it to work. It isn't pretty but for running unit tests it is fine. The solution was simple: I added the -javaagent: argument to the VM Arguments list. I used a reference to the jboss-aop-jdk50.jar, but I made sure that this lib isn't within the classpath. I didn't try this before because I thought that the Embedded EJB3 already activated this somehow. EJB3 Embedded itself uses AOP to do it's magic. But the library is probably already aspectized. The reason why i didn't add the jboss-aop-jdk50.jar to the classpath is because the jboss-ejb3-all.jar already contains all the classes of AOP. This is off course the ugly thing of it all. I don't know which version this jboss-ejb3-all.jar contains... I still don't understand why someone ever created the jboss-ejb3-all.jar without righting down which libraries it contains :(. Before I used the jboss-aop-jdk50.jar I tried adding the right directives to the jboss-ejb3-all.jar MANIFEST.MF file and use this lib as javaagent. But it threw Exceptions and wouldn't start the VM. But know everything works :D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042735#4042735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042735 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable
Thank you, I will try that tomorrow View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042573#4042573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - AOP within TestNG & EJB3 Embeddable
What am I trying to do? I have this EJB3 application. I use TestNG together with the ejb3 embeddable to run some Unit tests on my application. The problem is that I have this JBoss Service bean that makes a HTTP call (very simple) to a web address. I also want to test this bit of code, but without the HTTP call being made. I want some elegant way to get this done. What I want to do is to replace the HTTPClient (that makes the http call) with a Mock object. This mock object simply returns the value that I expect. I was thinking that AOP could be de the elegant solution for me. I am new to AOP so maybe I am seeing this completely wrong. The problem is that I am having problems getting AOP to work within the Embeddable JBoss. I created a META-INF/jboss-aop.xml file and I am sure that it got loaded, because it throws exceptions if I do something wrong within the file. But as soon as the AOP should spring into action and call an Interceptor class nothing happens. Does someone else have any expierence with AOP and EJB3 Embeddable? Before I start posting examples, I would want to know that what I am trying is possible. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042542#4042542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Where is RC10?
How stupid of me. I read that Article so I should have know this info already... One more question: The latest EJB3 release that is bundled with AS 4.2 is still a release candidate? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041355#4041355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041355 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Where is RC10?
Is there anything new on the JBoss 5 Embedded? I searched, but I didn't find any further information about it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041134#4041134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I wonder how the JBoss developers develop... I have been trying to build the ejb3 library from the Jboss_4_0_5_GA Tag (SVN) for some time now. But there are just errors in the other projects that are unsolvable. Can't someone from the JBoss crew explain me how to do it (or referrer me)? I have been thinking of another solution to get the missing embedded ejb3 parts. Maybe I will try to rip it out of the jboss-ejb3-all.jar file and create my own jar that only contains those parts that I want. Maybe I will try that tomorrow... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023220#4023220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
"ido_tamir" wrote : Are there any plans to add deployment to Jboss (maybe even exploded to the archetypes)? If I may answer for Fers: Yep I already discussed with Fers that I would try to get the embeddable ejb3 things working (within testng and the microcontainer). After getting more and more insane trying to figure out the Jboss CVS (it is hell in there) to get the ejb3 project and all it dependencies, I discovered that CVS isn't used anymore and that the project is moved to SVN. I here by want to thank those people that keep the jboss.org site up to date ;). Now that I checked out the SVN project I feel that things are becoming much easier. I am not there yet but very soon I will have my own compiled embeddable ejb3 lib. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022655#4022655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022655 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: No EJB3 embeddable download
Maybe the nice people of jboss could update the jboss.org site because the CVS link and the FishEye link are out of date. I know discovered that the uptodate EJB3 is within the subversion repository. I don't want to sound mad, because I am not. I am only a bit frustrated ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022641#4022641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022641 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - No EJB3 embeddable download
Why is there no uptodate download for the Embeddable EJB3 library? I tried to compile the source my self, but that also didn't really work because I went nuts trying to figure out the CVS repository of JBoss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022635#4022635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I finally have been playing around with it a bit. I must say that I am impressed. When I have remarks, bug reports or other stuff then you will certainly here from me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020810#4020810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I did peek at your work today. It looked pretty good. I wanted to test it now but I am not feeling that good. Hopefully I will be better tomorrow and then I will certainly test your work. But I already appreciate the work you are doing. I wanted to spent more time to this project. I even told you guys that I would do all that stuff. But I am doing this at home and off course a lot of stuff became between that I didn't expect to cost so much time. One more question: Does the unit testing work with TestNG? I got it working on one of my own prototypes, but it took some time to configure it right. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011461#4011461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Very nice :D. I will check it out, tomorrow. Did you solve the problems with the dependencies? I mean those libraries that contain a lot of other libraries within them? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011017#4011017 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011017 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I can only find the bundled version. I looked here: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063 Should I contact the guys of EJB3 about this or maybe do you (Gavin) want to contact them? I also checked out the ejb3 project from CVS but it required a lot of other projects too. Much more I haven't tried yet. I am working on it, just not that fast ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005430#4005430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I have come a long way of getting all the dependencies by looking at the source. But I encountered some problems. 1. To compile Seam it depends on Embeddable EJB3 (version ALPHA_8-patch2 for Seam 1.1.0GA). The available jar of this library (jboss-ejb3-all.jar) not only contains the specific embeddable ejb3 classes but also a lot of classes from other libraries. If I would use this library in the POM then it could cause dependency conflicts, so we shouldn't to that. The best solution is probably to compile this library without those third-party libraries within it. I haven't tried this yet... 2. Seam depends on several libraries that are only distributed via the JBoss AS. What version number should they get? The same as JBoss AS? These libraries should become available in the Maven repository as separate libraries. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004811#4004811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I just wanted to tell you guys (and maybe girls) that I am working on the dependency graph right now. I changed my approach. I am now searching all the dependencies directly from the Seam source. I hope this works out... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002436#4002436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002436 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Sorry, been busy last 2/3 weeks because of the Holidays and some other things. But I will work on it soon (today, tomorrow else next week), View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=338#338 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Oh yeah, I forgot to tell that ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998194#3998194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
You are completely right that Maven2 isn't perfect and it (or its concept) has its flaws. But I haven't discovered yet that the maven plugins are Buggy. anonymous wrote : | This thread is a good example: Everybody is traing to give a complete list of all dependencies. But I think this is not the right appoach: Rather one should look on which libraries Seam directly depends. This should be put in a repository and have then their dependencies marked in their pom file etc. until we have a complete chain of dependencies. | We wanted to know the complete dependency list because then it is easier to make a dependency graph. With this graph we know which dependencies are directly used by Seam. We need the complete graph to see which dependencies (direct and indirect) aren't in the Maven repositories. Getting them in the repositories will become a difficult task, though. You are right that Maven2 is just another tool to not go crazy about. But a lot of people want to use it and to use it with Seam somebody needs to make it work. anonymous wrote : | But if you don't need that feature and you have a working ant build or are familiar with ant then it is hardly worth the trouble to switch. | When the Maven2 support is ready then people won't have a lot of trouble using Seam with Maven2. anonymous wrote : (BTW: Is there a way to change the scope of a transitive dependency. Many of the libs which are required to deploy a seam app in Tomcat are not required for JBoss etc. So is it possible to build a war for tomcat and one for JBoss which contain different sets of libraries, by switching the profile for example?) | With profiles you should be able to solve this problem. Profiles are pretty powerful ;). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997462#3997462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Thanks for the tip. I already knew about that place and they have a lot of javax.{library} libraries but not all that we need. Maybe I should contact that project to see if they are willing to add some more. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996002#3996002 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Great work :D Christmas is coming, so I don't know if I will spent a lot of time on this issue the next 4/5 days. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995854#3995854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Vacation
In Dutch: Veel plezier op je vakantie, kerel. Dat heb je wel verdiend. I think you can guess what it means ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995697#3995697 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
The next thing we need to do is create a dependency graph . This graph can tell us on which libraries Seam is directly depended upon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995452#3995452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I believe we have a very complete list for Seam 1.1.0 GA now. I am only not so sure about the jboss-ejb3-all.jar part, because somewhere in the middle of checking it I lost my overview. @petemuir: thx for creating that initial list. It really helped :D. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995451#3995451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Working on it right now ;). If you look at the dependency list in the wiki then you can see that it has grown a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995444#3995444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Maybe we could write an Ant script that can convert the examples from the current structure to a Maven2 structure? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995437#3995437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995437 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
It is a PDF file so you need a laptop or a PDA ;-). But trust me, within the hour you know the most important parts of Maven2. Ok, maybe 2 hours ;-). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995419#3995419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995419 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
@Gavin: If you have an hour of time then you should read the first part of that book that I recommended. It is really interesting and helps you in understanding Maven2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995414#3995414 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I must agree with max. My plan is as following: 1. Get both releases, with dependencies, in the official repositories. This way it is very simple for users to create their own Maven2 projects with Seam in the dependency list without having to worry about Seam its dependencies. 2. Find out how we can make it easy for the users to cope with those annoying javax.{library} libraries that aren't allowed in public Maven2 repositories because of their license. 3. Create archetypes for Seam. An archetype is a project template from which you can generate the main parts of a Maven2 project. It is a bit like the Seam generator, but simpler. It only creates a file structure, it doesn't reverse engineer a database. But maybe I can create a Maven2 plugin to do that some day ;). 4. Create some nice tutorials how to handle a Seam with Maven2 project. It will contain the basics but also stuff like how to make the combination work with Eclipse and have nice stuff like hot-swap with JBoss in development time. 5. Like Max says: having "fun" with trying to "bend" either seam buildstructure or Maven to be compatible. This means that you get the full power of Maven2 for developing Seam itself. 6. The most difficult part: Getting Gavin so far that he will switch to Maven2 ;). But we first need to do number 1. And every help is appreciated. @Gavin: I saw your post during the writing of this post. As you can see my main focus is creating something that will be useful too the users and make their lives easier. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995402#3995402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I created a wiki page for it: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamDependencies . I only put a warning on it that the data is incomplete and could be incorrect. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995235#3995235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
anonymous wrote : If you generate the list then I can verify it for you. I think that will be the most efficient way of doing it. That sounds fine to me. I will create a wiki page for it. What about jboss-ejb3-all.jar? Is there also some neat way to find out which libraries and versions are in there? The hibernate-all.jar is probably the latest Hibernate version with the latest javax.persistence library, or not? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995232#3995232 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995232 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Thanks, that will really help :D. But an official list would be great. Is there any time to make on Gavin? Or do I need to create a Task in Jira? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995099#3995099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Don't you need thirdparty-all.jar for running testng tests? I am at my work now, so I can't test it again but what I remember from last week was that it needed, for instance, the antlr package that is included in the library. I also believe that the some javax.* libraries are going to be a problem. The license prohibits it from being redistributed, or not? But why can several libraries then be included in the jboss-ejb3-all.jar and sorts? @ccanning: Good luck with power, I hope it stays on. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994906#3994906 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994906 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I am really going to nag on this topic ;). Without the dependency list I can't really proceed :(... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994791#3994791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I have been look through the current JBoss maven2 repository at http://repository.jboss.com/maven2. I have noticed that it isn't really maintained. I also have some remarks on the JBoss artifact structure within it: 1. Most JBoss artifacts have a groupId of 'jboss' and some 'org.jboss'. I.M.H.O this should be 'org.jboss'. The idea behind the groupId is the same idea behind packages of Java. You should use the domain of the creators of the library as groupId. 2. The current 1.01-GA artifacts (core, ui, debug) of seam have the groupId 'jboss'. I.M.H.O this should be 'org.jboss.seam'. This groups the seam libraries within on group and makes it easier to find/maintain. 3. The current version used is 1.0.1-GA. This reflects the version that is used by JBoss itself. I am not so sure if it is a good id to use the GA within Maven2 versions. In Maven2 the -{code} behind a version number represents a qualifier. A qualifier is intended to indicate a version prior to a release. So the use of -alpha, -beta, -cr1, etc isn't a problem, but we probably shouldn't use the GA because Maven2 then doesn't see the library as a release. The GA could result in problems with the dependency management of Maven2. Is there someone who I can contact about the Maven2 repository of JBoss? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994404#3994404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994404 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
@ccanning: What did you do with the thirdparty-all.jar? Did you simply make it a dependency or did you unravel it in multiple dependencies? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994400#3994400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994400 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Great, you got a deal. The first thing I need is a complete dependency list of all the libraries including the libraries that are packed in the thirdparty-all.jar. Per library I need the version that are used. If you want to read up on Maven2 then there is this great free book about it. Here is the TTS's anoucement on it: http://www.theserverside.com/news/thread.tss?thread_id=40126. I read it myself and I can really recommend it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994316#3994316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam atrifacts in Maven
Yesterday I also started a topic on Seam & Maven2. See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=97338. I am willing to maintain the Seam Maven2 combination. If someone could give a complete list of dependencies (including those in the thirdparty-all.jar) and there versions then I can come a long way to present a complete POM and some Archetypes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994313#3994313 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994313 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
I have seen it and tested it. I find it great that someone else already made something. The problem is that every Maven2, ready to go, solution that I found is incomplete. The following stuff is missing or anouyes me. - It misses several dependencies so that you really need to rebuild the POM files before you get, for example, UnitTesting to work. And they don't solve the dependency problems (thirdparty-all.jar). - I don't want to be dependent on a non-official, or non-JBoss, repository. What happens if they stop being available in a shot while... - The archetype generates only a complete project with one war, one jar and one ear file. There aren't any archetypes to create those part separately. - The archetype is only meant for a JBoss deployment. - They are already behind, because there aren't any Seam 1.1.0 GA, CR1, CR2 or other releases to be found. I feel like that there is some 'official' support needed for Maven2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994139#3994139 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994139 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam & Maven2
I think it would be great if there was some support for Maven2 together with Seam. I am not the only one that would want that because there where already several topics on this subject. Here is a ref to one of them: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=92547 The problem that is Gavin doesn't work with Maven2 (yet ;) ) and that is why there isn't any support for it. He said: anonymous wrote : If you guys want solid Maven support, then one of you is going to have to step up and work on it, and promise to maintain it I am willing to be that Guy. Here is a list with things that I want do: - Try to get the Seam libraries into the mayor Maven2 repositories and maintain them. - Try to get as many of the dependency libraries, that aren't in the mayor Maven2 repositories, into those repositories. - Try to get someone to maintain those dependency libraries in the mayor Maven2 repositories. - Create and maintain archetypes for seam (already working on that) - Create patches for the generating tool so that it can create Maven2 enabled projects. - Write wiki information about Seam and Maven2. - Give forum support on Maven2 problems with Seam At this moment the biggest problem are the dependencies. Several aren't to be found in the major repositories and from others I need to know the version. I also need to unravel the thirdparty-all.jar into separate libraries, from which I then need to know the version. To get this party rolling I need some active support from Gavin (and JBoss). He knows probably everything about the libraries that are used. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993895#3993895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Update Seam JSF library againts JBoss5
Or are only the Tomahawk components not recommended? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992763#3992763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Update Seam JSF library againts JBoss5
Good idea. I also believe that using the myfaces library isn't recommended anymore from Gavin because the quality isn't that great. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992753#3992753 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:button VS h:commandButton / s:link VS h:commandLink
If you want to submit a form using a link then you must use javascript. There is no other way... Only a form submit-button can submit a form without javascript. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990019#3990019 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990019 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Where is the database?
It would be best if you would read up on DataSources in a JBoss environment. Take a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=DSdotXML to get started ;). There are example {name}-ds.xml files in your JBoss installation in $JBOSS_ROOT\docs\examples\jca. Good luck. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989037#3989037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989037 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Base is null Error.
I don't find it very bad to a the 'flag' file seam.properties. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985592#3985592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simple but complete Maven or ant example project needed
Nice that you published your archetype. Looks good. It would be really cool if some official maven2 support was added to this project and maybe other JBoss projects. When used correctly, Maven2 is so much powerfull and easier then Ant. I also have something to contribute for those people that use the maven2 eclipse plugin: http://www.smies.com/blog/?p=26. Take a look at it for a more stable version then the one that is released now (0.0.9). I am also working on some stuff to improve the experience with Eclipse, Maven2 and Seam. This includes hot-deployment of static files (jsf, jsp, etc.) to a JBoss server. I wanted to create a blog post on it some while back, but I am very busy at work right now so I don't have the time to work on it. Hopefully soon stuff will cool down at work . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985591#3985591 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985591 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Scheduling in Seam?
Or you move the method to a different component and call it from the original component. Maybe this also could be handled in a inner class? Or am I saying stupid things now? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981661#3981661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta 1
Congratulations with the release of the beta. Hopefully I have some time soon to try it out :D. Is the documentation also updated? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980648#3980648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980648 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re:
What does it do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975410#3975410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problems with ms sql
isn't this a EJB3 topic? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973493#3973493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using Seam for porlet communication
I am also very interresting in this topic. I was looking at you implementation of the PortletSessionImpl and I noticed that you simple put the attribute in both the portlet SESSION_SCOPE and the portlet APPLICATION_SCOPE. Isn't that very dangerous because you can have collissions between portlets? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973479#3973479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
Also make sure that you don't put the myFaces lib into you WEB-INF lib directory. In the tld file within that library there is also a directive that initializes MyFaces. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972236#3972236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
Here is something interresting: I removed the myfaces library file from my WEB-INF/lib directory. Now I get to expected exceptions that the myfaces factory doesn't exists. The interresting part is that Seam now works without exceptions. With the ''No active session context' exception I couldn't navigate to a different view-id. This problem is now also solved. But now MyFaces probably doesn't work correct. I am going to try to debug it and see what I encounter then. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972037#3972037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972037 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
Are you sure that your versions works? I still get the same exception: java.lang.IllegalStateException: No active session context :( What version of the MyFaces library do you use? I'm almost sure that the problem lies with MyFaces. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972036#3972036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972036 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
I am trying it right now. I hope it will work :D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972012#3972012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972012 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
Thanxs :D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971845#3971845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
Yeah that would be great, because I am nuts here ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971675#3971675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971675 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
I finally got a different portal manager (a commercial one called NPS) working. Here the portlet throws the same exception. It has nothing to do with the JBoss Portal manager. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971574#3971574 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971574 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - components.xml
I am wondering if there is a full description of the components.xml. The documentation is a bit vague about it. For example: I know you can instantiate components in it but I don't know how to set the scope of that component. Next to the full documentation of the components.xml there also should be a Schema or DTD file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971475#3971475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971475 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
Ok, so the biggest problem is that you need to manage the EPC your self. There by loosing a lot of the power that EJB3 provides and it is very easy to make big mistakes that don't get noticed easy? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971410#3971410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
Oh yeah. Can you give me some reasons why a application EPC is a bad idea? Thx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971402#3971402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
thx for the advice. I am going to advice my colleague that we better keep the entities ejb package within the EAR. Prevents a lot of potential problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971401#3971401 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971401 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
I discovered that it is possible to get an entitityManager or entityManagerFactory over the JNDI. This way it is possible to get entities from a seperate ejb package (not embeded in the EAR file of the Seam application (or in my case the multiple portlets)). In my class where I want to get the enitityManager I have multiple options to retrieve one: 1. Use a JNDI lookup to get the entitityManager or the factory 2. Use the @Resource annotation 3. Use the Seam-managed persistence context (but that only works for a conversation long entityManager) I can't use the normal @PersistenceContext annotation because I get exceptions when I redeploy the ejb package that contains the entities. My problem is that I don't know how to get an Extented EntityManager without using the @PersistenceContext annotiation. You, Gavin, told me in a different topic that it isn't possible to have entities in a seperate ejb. But so far I succeeded pretty well. But because I also know that you are probably right, I would like to know for what implications I am heading for (next to the fact that I can't retrieve an Extended manager). Thx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971391#3971391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: persistence.xml: tag
There is a bug in the jboss ejb3 implementation. The path to the jar file gets resolved wrong. You can use a workaround by specifing every entity class using the tag. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970914#3970914 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence Manager in the JNDI
The 'restart' problem is solved by putting the enitities in a Jar file directly in the deployment directory. I haven't solved the second problem though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970762#3970762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
I read that a Seam-managed persistence context returns a manager that is the same for the whole conversation. So that is definatly not the same as a (Extended) persistence context using the @PersistenceContext annotation. But how do I get an entity manager that works the same as a normal PersistenceContext or an Extended PersistenceContext? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970759#3970759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
I found a solution for both problems. Now I deploy my entities in a jar file into the deploy directory. This makes sure that the entities get deployed before the EAR package with the portlet does. I am also using the Seam-managed persistence context to avoid the problem when redeploying the entities. I am not quit confident about my second solution. The problem is that I don't know what the difference is between a Seam-managed persistence context and a normal (extende) persistence context. Can anyone elaborate on that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970758#3970758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - What happens to the session?
What happens to the users sessions if I redeploy an EAR archive that contains a War archive with my WebApplication? Are the sessions destroyed which results that the user gets logged out, for example, or does the user notice nothing? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970742#3970742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence Manager in the JNDI
I tried that also but it didn't change either of the two problems. I did succeed to retrieve the EntityManager using a normal JNDI lookup or using the @Resource annotation. But I am affraid that there will be complications if I use one of those. For example: how do I get an extended EntityManager when I am not using the @PersistenceContext annotation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970667#3970667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970667 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multi portlet setup
Has no one any idea? Is it such a strange thing I want? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970604#3970604 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970604 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Persistence Manager in the JNDI
At my company we are relaunching our website and we will be using portlets (together with a CMS) to implement the dynamic parts. I am searching for a way to get a real flexible deployment. I mean by this that I want to seperate the three layers, db-layer (entities), business layer (ejbs) and the view layer (multiple portlets implemented with Seam). It would look something like this: Code: dblayer.ear | entities.jar | | businesslayer.ear | businesslayer.jar | | portlet1.ear | seamComponents.jar | portlet1.war | | portlet2.ear | seamComponents.jar | portlet2.war The portlets all use the same business layer and the same entity layer. That is also wy want this to be as flexible as possible. I don't want to deploy all my portlets again if I change something in my businesslayer. It is possible to put an EntityManager in the JNDI by setting some properties in the persistence.xml. I wanted to see if this really worked so I made a little test setup (without the seperate businesslayer): Code: | TestEnt.ear | TestEntEJB.jar< contains the entities and the persistence.xml | | Test.ear | TestEJB.jar< contains the seam component HelloWorld (HelloWorldAction.class) | HelloWorldAction class: Code: @Stateful | @Name("HelloWorld") | @Scope(ScopeType.CONVERSATION) | public class HelloWorldAction implements HelloWorld { | | @PersistenceContext(unitName="userDatabase", type=EXTENDED) | private EntityManager em; | | @SuppressWarnings("unchecked") | public String someAction() { | | List users = em.createQuery("from User u order by u.username").getResultList(); | | return null; | } | | @Remove @Destroy | public void destroy() {} | } | The first time I manually deployed the testEnt.ear first and then I deployed the test.ear. To my joy everything worked. The entityManager got injected into the HelloWorldAction class and I could retrieve the users using the query. But then I stumpled upon some problems: 1. If I redeploy the testEnt.ear the following exception gets thrown: Code: [ServiceController] Problem starting service jboss.j2ee:ear=Test.ear,jar=TestEJB.jar,name=HelloWorld | Action,service=EJB3 | javax.naming.NamingException: Could not bind user transaction for ejb name HelloWorldAction into JND | I under jndiName: /UserTransaction [Root exception is javax.naming.NameAlreadyBoundException] | at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:631) | at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:576) | at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:507) | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:82) | at org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:73) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at org.jboss.system.ServiceController.start(ServiceController.java:435) | at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocatio
[jboss-user] [JBoss Seam] - Re: Default action for JSF page?
isn't that just a form submit? If the html form contains a submit button then this behaviour should be default. So the action behind the submit button is fired. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970461#3970461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user