Re: [JBoss-user] Strange Exception: JMS - MDB - Session Bean
Look at the Not Optimized Stateless SessionBean in the testsuite/src/resources/web/META-INF/jboss.xml descriptor: container-configuration extends=Standard Stateless SessionBean container-nameNot Optimized Stateless SessionBean/container-name client-interceptors home interceptororg.jboss.proxy.ejb.HomeInterceptor/interceptor interceptororg.jboss.proxy.SecurityInterceptor/interceptor interceptororg.jboss.proxy.TransactionInterceptor/interceptor interceptororg.jboss.invocation.ByValueInvokerInterceptor/interceptor /home bean interceptororg.jboss.proxy.ejb.EntityInterceptor/interceptor interceptororg.jboss.proxy.SecurityInterceptor/interceptor interceptororg.jboss.proxy.TransactionInterceptor/interceptor interceptororg.jboss.invocation.ByValueInvokerInterceptor/interceptor /bean /client-interceptors /container-configuration Using this configuration I can deploy a servlet independent of an EJB that uses this configuration, lookup the home during initialization and create an instance, and invoke methods on the EJB across redeployments. Using the default optimized invocation layer I see Invalid invocation errors due to the inconsistent types of the EJB classes as seen by the EJB container and servlet. An MDB will behave the same way. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: joerg maier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 4:31 AM Subject: Re: [JBoss-user] Strange Exception: JMS - MDB - Session Bean I have tried serveral configurations in the standardjboss.xml, but it doesn´t work. Can you describe where I must set the ByValueInvokerInterceptor for my MDB-Client. Perhapse you can send an example how this configuration should looks like. Thanks for your help. 2.4 will automatically downgrade to marshall calls by value. Use the by value interceptor in 3.0.5 and would can have the same effect as the cost of the by value calls as opposed to call by reference. -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help! problems with EjbRemove
Help! this Exception is thrown in the Remove of some of my entity beans. It WORKS in Jboss 3.0.0 but NOT in Jboss 3.0.3 and Jboss 3.0.4 java.lang.IllegalArgumentException: disconnect(ManagedConnection mc: null, Object c: org.jboss.resource.adapter.jdbc.local.LocalConnection@70ad76) called with unknown managed connection at org.jboss.resource.connectionmanager.BaseConnectionManager2.unregisterAssociation(BaseConnectionManager2.java:661) at org.jboss.resource.connectionmanager.BaseConnectionManager2.disconnect(BaseConnectionManager2.java:619) at org.jboss.resource.connectionmanager.CachedConnectionManager.disconnect(CachedConnectionManager.java:371) at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:160) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:190) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:64) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy282.remove(Unknown Source) at com.sw.portal.session.PortalManagerBean.deletePortal(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy275.deletePortal(Unknown Source) at com.sw.admin.module.admin.AdminModuleBean.deletePortals(Unknown Source) at com.sw.admin.module.admin.AdminModuleBean.execute(Unknown Source) Any suggestion will be highly appreciated __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing
Re: [JBoss-user] Cmp vs hibernate
On Thu, 2003-01-09 at 19:32, Dan Christopherson wrote: Probably the second biggest thing (after fear of change) that caused ODBMS's to be stillborn: Will insert corporate standard reporting tool work with it? No!?!?! How do you expect to sell it? Which is probably why no-one has developed a commercial solution for the problem. But you are also forgetting the political pressure of the hoards of Oracle guys, who have been doing Oracle for 100 years who will tell you that anything that isn't Oracle (that might mean they have to learn something new) is evil. :-) If we are interested in technical merits rather than commercial merits (as most open source software is) then ODBMS probably has the edge over RDBMS for Java work. Likewise a native CMP store would be the ultimate for EJB, providing that it came with the same sort of features that you would expect from a modern RDBMS (e.g. a shell, backup, monitoring etc.). Your point regarding ODBMS is a good one, - having a lack of standard tools and standards has definitely been a bar. However CMP doesn't suffer from the same problem because switching the CMP implementation (from say O/R mapping to native) doesn't require changes to the application code (in theory). You could even provide a SQL/JDBC interface to your CMP store to support legacy applications such as reporting tools. i.e. the relational interface is emulated, not the CMP interface. As I mentioned earlier, such a database would be ideal for my app (I don't need legacy support) and I bet there are lot of others in the same situation. -- Peter Beck BEng (hons) - Managing Director, Electrostrata Ltd. http://www.electrostrata.com --+-+-- Experts in e-business and e-commerce --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] xactisolevel error: PostgreSQL-7.3 and JBOSS-3.0.4
I am experiencing problems running JBoss-3.0.4 using PostgreSQL-7.3 as the database for CMP. It appears PostgreSQL-7.3 doesn't understand show xactisolevel command (which is been sent to it by JBoss) unlike PostgreSQL-7.2.x. I've deployed the latest jdbc driver for PostgreSQL-7.3 from jdbc.postgres.org. but the query show xactisolevel is still being passed on to the DB causing postgres to throw an error. I don't get any such problems while I use PostgreSQL-7.2.3 as show xactisolevel is a valid PostgresSQL-7.2.x command. Now my question is there a way to possibly through one of the configuration .xmls in JBoss that I can make JBoss not pass this query to the backend and instead pass a PostgreSQL-7.3.x alternative to this query? Or how as/can this situation be solved. Thank you. Allan. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Antwort: [JBoss-user] can't enlist error on second pass through resourceadapter
First check if reordering of getConnection() and getUserTransaction() will solve your problem javax.resource.cci.ConnectionFactory conFac = (javax.resource.cci.ConnectionFactory) ctx.lookup (java:comp/env/HPIARM); cx = conFac.getConnection(); tran = (UserTransaction) context.getUserTransaction(); tran.begin(); . If not, than start step debugging of JBoss-internal transaction/connection manager code when calling cx.close() on first ejb invocation. Look for correct calls of org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener.delist() on your previously ( inside tran.begin() ) enlisted resource. Ulf Schroeter GROVE,MIKE (HP-FtCollins,ex1) [EMAIL PROTECTED] Gesendet von: [EMAIL PROTECTED] 10.01.2003 00:08 Bitte antworten an jboss-user An:'[EMAIL PROTECTED]' [EMAIL PROTECTED] Kopie: Thema:[JBoss-user] can't enlist error on second pass through resource adapter jboss gurus, i'm trying to port a resource adapter to jboss to investigate the feasibility/cost of using this resource adapter with jboss. i'm using jboss 3.0.4 with tomcat 4.1.12. my jdk is 1.3.1.06. platform is w2kp sp3. the resource adapter supports XA. res-sharing-scope is set to Unshareable in the ejb-jar.xml file of the EJB that uses the resource adapter. the resource adapter worked fine in the following use case with both oracle's 9.0.3 oc4j and HP Bluestone's TeS 7.3. the use case is as follows: i have a stateless session bean that begins a BMT, looks up the resource adapter, performs some work on it (via the Interaction interface), closes the connection, and commits the transaction. e.g.: InitialContext ctx = new InitialContext (); // i tried both of the following UserTransaction lookups in trying to fix the problem tran = (UserTransaction) ctx.lookup (java:comp/UserTransaction); //tran = (UserTransaction) context.getUserTransaction(); tran.begin(); javax.resource.cci.ConnectionFactory conFac = (javax.resource.cci.ConnectionFactory) ctx.lookup (java:comp/env/HPIARM); cx = conFac.getConnection(); Interaction ix = cx.createInteraction (); // do work on ix, e.g. ix.execute(); // i've tried reordering the following two calls without effect. tran.commit(); cx.close(); a servlet invokes the EJB to perform the above operations. the first time i run this body of code, everything works fine. that is, my resource adapter receives XAResource.start, XAResource.end, and XAResource.commit at the appropriate times. the second time, i get the exception listed below. it appears as if the TM still believes the XAResource is enlisted in the first transaction. this surprises me, because both XAResource.end and XAResource.commit were called during the first pass through the method. i believe we get the exception right after ManagedConnectionFactory has run matchManagedConnection and found a match. any suggestions on how to debug this problem? i set the CONSOLE Threshold to TRACE in log4j.xml, which didn't provide any log messages that helped me diagnose the problem. i'm relatively new to jboss; it's certainly possible i missed a simple configuration step. the service file for the resource adapter was mostly copied from an example that shipped with jboss. thanks. -mike exception from jboss's console: 2003-01-09 15:33:42,036 WARN [org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener] in Enlisting tx, illegal state: TransactionImpl:XidImpl [FormatId=257, GlobalId=fcmgrove//7, BranchQual=] 2003-01-09 15:33:42,046 ERROR [STDERR] java.lang.IllegalStateException: Can't enlist - already a tx! 2003-01-09 15:33:42,046 ERROR [STDERR] at org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener.enlist(XATxConnectionManager.java:250) 2003-01-09 15:33:42,056 ERROR [STDERR] at org.jboss.resource.connectionmanager.XATxConnectionManager.managedConnectionReconnected(XATxConnectionManager.java:202) 2003-01-09 15:33:42,066 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:534) 2003-01-09 15:33:42,076 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814) 2003-01-09 15:33:42,086 ERROR [STDERR] at com.hp.ov.activator.resmgr.connector.HPIAConnectionFactory.getConnection(Unknown Source) 2003-01-09 15:33:42,096 ERROR [STDERR] at com.hp.ov.activator.resmgr.ejb.ServiceActivationBean.executeService(Unknown Source) 2003-01-09 15:33:42,096 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method) 2003-01-09 15:33:42,106 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660) 2003-01-09 15:33:42,116 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 2003-01-09 15:33:42,126 ERROR [STDERR] at
AW: [JBoss-user] Jbuilder integration question...
We are using the protegra tool for jbuilder 7 and it works great til we tried to add a security realm for the ejb access. Does anyone know what to get a security-domain/security-domain section in the jboss.xml file with the protegra tool. We entered our security realm data in the EJB DD Editor of the EJB Designer, but there is no security-domain/security-domain section generated for the jboss.xml file. i ask the guys from protegra, but their answer is still open. thank you sven -Ursprüngliche Nachricht- Von: Nicholas [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 10. Januar 2003 02:40 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] Jbuilder integration question... I was thinking of Eclispe too, but the JBoss OpenTool plugin for JBuilder is really good. I seriously believe it is worth about 4 productivity hours per EJB. The only JBoss plugins [I could find] for Eclipse simply run JBoss in the environment. Super. Useful, but no match for the functionality addin the OpenTool provides in JBuilder. Maybe the authors will port it //Nicholas --- Matthew Van Horn [EMAIL PROTECTED] wrote: I am considering switching to Eclipse, but I can only handle so many learning curves at once (J2EE/JMS, JBoss, Xindice...) On Thursday, January 9, 2003, at 01:32 PM, Rod Macpherson wrote: The open tool works with JB 7.0 but consider Eclipse in combination with Ant. - Original Message - From: Matthew Van Horn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 6:22 PM Subject: Re: [JBoss-user] Jbuilder integration question... The Open tool site makes references to JBuilder 6, does it also work well with JBuilder 7 ? On a side note - Does exit code 10 indicate anything specific in JBoss - My app is killing the server (sometimes), but no error, and I don't know why. On Wednesday, January 8, 2003, at 11:27 PM, Nicholas wrote: I have never tried Protegra, but I can vouch for the JBoss-Opentool. It is excellent. //Nicholas --- cai margiex [EMAIL PROTECTED] wrote: u can use opentool on http://sourceforge.net/projects/jboss-opentool/, it's better than protegra. good luck. From: Matthew Van Horn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Jbuilder integration question... Date: Wed, 8 Jan 2003 16:25:12 +0900 I am using JBuilder and JBoss 3.0.4 with the Protegra tool and there is a really annoying thing happening. Somehow JBuilder is overwriting my jboss.xml file so that this: destination-jndi-namequeue/testQueue/destination-jndi-name is changed to this: message-driven-destination-namequeue/testQueue/message-driven- destination-name in my message driven bean. Just wondering if anyone else has experienced this, and if there is a way to avoid it? Matt --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
I am wondering if anyone has got an EJB working on 3.0.4 with a property which is stored as a serialized java object. Even the EJBs that worked for me on 3.0.2 do no longer work on 3.0.4 if they have a property which is of some Serializable type which is converted to BLOB. I am using Sap DB. My previous post contains the exceptions I get on 3.0.4. Randahl
RE: [JBoss-user] Why PHP why not JSP?
I totally agree on the JSTL part for the same reason. The move to PHP is not really convincing, IMHO. My concern is: Can you imagine, what a smart marketing guy from Microsoft could make of this? It seems that the marketing disaster around Petstore and the TSS benchmark have not been enough. Other Java communities keep running on Jive, like http://community.togethersoft.com/index.jsp, or move to it, like http://www.javalobby.org/forums.jsp. I don't know why the J2EE people keep opening doors to let the devil in... Regards Georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Hunter Hillegas Sent: Friday, January 10, 2003 08:00 To: JBoss User Subject: Re: [JBoss-user] Why PHP why not JSP? For those using JSP, make sure you check out JSTL. It really cut a lot of time out of my last project. From: Rod Macpherson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 09 Jan 2003 22:15:18 -0800 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Why PHP why not JSP? JSPs are an excellent choice for complex dynamic content and when integrating with J2EE applications. PHP is an appropriate technology for relatively static content with a simple underlying storage structure. JSP is still a work in progress and will continue to grow in market share. PHP is also another example of open source crushing most of the commercial products. I just wish JBoss would change the colors once in a while. - Original Message - From: Christopher Blunck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:45 PM Subject: Re: [JBoss-user] Why PHP why not JSP? Does anybody (other than me) find it ironic that the leading open source application server project uses PHP on it's home page instead of JSP? That's kind of like theserverside.com switching everything over to ASP or Cold Fusion. Maybe I missed something awhile back (like why you guys switched over). -c On Thu, Jan 09, 2003 at 07:53:42PM -0800, Sundaram Ramasamy wrote: Today I visited jboss.org web site, it looks different (with php . I don't know much about php. Is there any advantage in PHP compare to JSP? Thanks -SR -- 8:40pm up 80 days, 11:56, 1 user, load average: 0.51, 0.64, 1.11 --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
Hello Randahl, there are BLOB tests in the testsuit that pass successfully. So, I think your problem is a mapping. Have you tried different mapping? alex Friday, January 10, 2003, 11:34:19 AM, you wrote: RFI I am wondering if anyone has got an EJB working on 3.0.4 with a property RFI which is stored as a serialized java object. Even the EJBs that worked RFI for me on 3.0.2 do no longer work on 3.0.4 if they have a property which RFI is of some Serializable type which is converted to BLOB. I am using Sap RFI DB. RFI My previous post contains the exceptions I get on 3.0.4. RFI Randahl --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [jboss-group] Fw: [JBoss-user] Why PHP why not JSP?
Have you tried to implemented the PHP Accelerator (http://phpa.phorum.org/)? It only takes minutes to install and configure and the performance gains are impressive. Bruce -- perl -e 'print unpack(u30,0G)U8V4\@4VYY95R\F9EG)E=\$\!FFEI+F-O;0\`\`);' why not perl? use perl. everybody wants to get to know shell programming, but then refuse to use it. -- Kristian Koehntopp, de.comp.os.unix.misc ;-) bax --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [jboss-group] Fw: [JBoss-user] Why PHP why not JSP?
Have you tried using a PHP servlet in JBoss/Jetty? That way we are still using our own server (eating our own dog food in Julian speak). It also may be more efficient as it avoids the CGI thang - but then it could also be worse? marc fleury wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark Sent: Thursday, January 09, 2003 9:16 PM To: 'JBossGroup' Subject: [jboss-group] Fw: [JBoss-user] Why PHP why not JSP? This will go on forever now. - Original Message - From: Christopher Blunck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:45 PM Subject: Re: [JBoss-user] Why PHP why not JSP? Does anybody (other than me) find it ironic that the leading open source application server project uses PHP on it's home page instead of JSP? That's kind of like theserverside.com switching everything over to ASP or Cold Fusion. Maybe I missed something awhile back (like why you guys switched over). he he, funny. The reason we switched over is that POSTNUKE IS DONE. There is no equivalent application in the Java space. So it is done we take it, we are being functional. The requirement is the increase in development volume and the fact that JBoss-dev just isn't enough to scale this operation any longer. On the new website you have blogs per developer that sum up the week in development and let you get in the development easier. If this was available in java I would of course switch in an instant. HOWEVER THE PROBLEM is that it is slow. The reason is not PHP it is the way PHP is usually written. Think a pile of JSP/JDBC(straight) with no caching. He he, EJB is really a god send and we badly need it on this application. Our website used to be at 15% utilization CPU, with this new application (does the same runtime basically) we are at 100% we are porting from PHP to JSP to refactor with EJB and see if we can speed up that mess abit :) marcf -c On Thu, Jan 09, 2003 at 07:53:42PM -0800, Sundaram Ramasamy wrote: Today I visited jboss.org web site, it looks different (with php . I don't know much about php. Is there any advantage in PHP compare to JSP? Thanks -SR ___ jboss-group mailing list [EMAIL PROTECTED] https://mail.jboss.org/mailman/listinfo/jboss- group ___ jboss-group mailing list [EMAIL PROTECTED] https://mail.jboss.org/mailman/listinfo/jboss-group -- Greg Wilkins[EMAIL PROTECTED] Phone/fax: +44 7092063462 Mort Bay Consulting Australia and UK. http://www.mortbay.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Why PHP why not JSP?
Well, it is interesting to see that only a few guys are complaining about the new jboss.org website. Moving to a php-driven website as a J2EE server developer is somehow ridiculous. It just looks like the JBoss group does not have the confidence in their own product and the JAVA technology in general. This argument that there is a good product available for PHP is not valid. There is also zope (python) and I think that .NET and an IIS-server can be quite handy as well. But as a brave JBoss disciple I will follow the decision. I have ordered a PHP book at amazon this morning and I am looking forward to jump into this next generation software. __ Gesendet von Yahoo! Mail - http://mail.yahoo.de Bis zu 100 MB Speicher bei http://premiummail.yahoo.de --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [jboss-group] Fw: [JBoss-user] Why PHP why not JSP?
just metioned this in jboss-dev yesterday ... bax Von: Greg Wilkins [EMAIL PROTECTED] Organisation: Mort Bay Consulting Antworten an: [EMAIL PROTECTED] Datum: Fri, 10 Jan 2003 10:29:52 + An: [EMAIL PROTECTED] Cc: 'JBossGroup' [EMAIL PROTECTED], [EMAIL PROTECTED] Betreff: Re: [jboss-group] Fw: [JBoss-user] Why PHP why not JSP? Have you tried using a PHP servlet in JBoss/Jetty? That way we are still using our own server (eating our own dog food in Julian speak). It also may be more efficient as it avoids the CGI thang - but then it could also be worse? marc fleury wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark Sent: Thursday, January 09, 2003 9:16 PM To: 'JBossGroup' Subject: [jboss-group] Fw: [JBoss-user] Why PHP why not JSP? This will go on forever now. - Original Message - From: Christopher Blunck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:45 PM Subject: Re: [JBoss-user] Why PHP why not JSP? Does anybody (other than me) find it ironic that the leading open source application server project uses PHP on it's home page instead of JSP? That's kind of like theserverside.com switching everything over to ASP or Cold Fusion. Maybe I missed something awhile back (like why you guys switched over). he he, funny. The reason we switched over is that POSTNUKE IS DONE. There is no equivalent application in the Java space. So it is done we take it, we are being functional. The requirement is the increase in development volume and the fact that JBoss-dev just isn't enough to scale this operation any longer. On the new website you have blogs per developer that sum up the week in development and let you get in the development easier. If this was available in java I would of course switch in an instant. HOWEVER THE PROBLEM is that it is slow. The reason is not PHP it is the way PHP is usually written. Think a pile of JSP/JDBC(straight) with no caching. He he, EJB is really a god send and we badly need it on this application. Our website used to be at 15% utilization CPU, with this new application (does the same runtime basically) we are at 100% we are porting from PHP to JSP to refactor with EJB and see if we can speed up that mess abit :) marcf -c On Thu, Jan 09, 2003 at 07:53:42PM -0800, Sundaram Ramasamy wrote: Today I visited jboss.org web site, it looks different (with php . I don't know much about php. Is there any advantage in PHP compare to JSP? Thanks -SR ___ jboss-group mailing list [EMAIL PROTECTED] https://mail.jboss.org/mailman/listinfo/jboss- group ___ jboss-group mailing list [EMAIL PROTECTED] https://mail.jboss.org/mailman/listinfo/jboss-group -- Greg Wilkins[EMAIL PROTECTED] Phone/fax: +44 7092063462 Mort Bay Consulting Australia and UK. http://www.mortbay.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
Randahl, do not, please, post it to the development list. The testsuit deals with byte[] instead of java.lang.Object, though. But, nevertheless, try different mappings first. Try also BLOB instead of JAVA_OBJECT. alex Friday, January 10, 2003, 1:18:46 PM, you wrote: RFI That sure is a constructive suggestion. I currently use the default RFI mapping which stores serialized java.lang.Object instances as LONG RFI BINARY - is there a relevant alternative? RFI Again, the mapping worked fine under 3.0.2 - what changed in 3.0.4? RFI Would somebody please care to comment on that? RFI Randahl RFI -Original Message- RFI From: [EMAIL PROTECTED] RFI [mailto:[EMAIL PROTECTED]] On Behalf Of Alex RFI Loubyansky RFI Sent: 10. januar 2003 11:02 RFI To: Randahl Fink Isaksen RFI Subject: Re: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone RFI seen it working? RFI Hello Randahl, RFI there are BLOB tests in the testsuit that pass successfully. RFI So, I think your problem is a mapping. Have you tried different RFI mapping? RFI alex RFI Friday, January 10, 2003, 11:34:19 AM, you wrote: RFI I am wondering if anyone has got an EJB working on 3.0.4 with a RFI property RFI which is stored as a serialized java object. Even the EJBs that RFI worked RFI for me on 3.0.2 do no longer work on 3.0.4 if they have a property RFI which RFI is of some Serializable type which is converted to BLOB. I am using RFI Sap RFI DB. RFI My previous post contains the exceptions I get on 3.0.4. RFI Randahl --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
Randahl, I guess I'm the "blob" guy at the moment. I went back and looked at your earlier emails. The problem is that you are using a jdbc-type of JAVA_OBJECT. This is an incorrect use of JAVA_OBJECT. Change it to LONGVARBINARY and it should work fine. We really need to go through the current standardjbosscmp-jdbc.xml and get rid of all the uses of JAVA_OBJECT. Prior to 3.0.4, JBoss would explicitly check for JAVA_OBJECT and serialise it, when it is supposed to be the JDBC driver's responsibility. Steve Coy On Friday, January 10, 2003, at 08:34 PM, Randahl Fink Isaksen wrote: I am wondering if anyone has got an EJB working on 3.0.4 with a property which is stored as a serialized java object. Even the EJBs that worked for me on 3.0.2 do no longer work on 3.0.4 if they have a property which is of some Serializable type which is converted to BLOB. I am using Sap DB. My previous post contains the exceptions I get on 3.0.4. Randahl
[JBoss-user] Web services and BMP?
On a personal note: (Using jboss/jboss.net) In terms of good design, say I have a legacy system that exposes its api as web services, and I wish to use this in several places in a large deployment (including lots of other integrations, and cmp where appropriate), what is the community take on creating bmp's using web services code? Pros: Identical interface to business logic developers using entities in other parts of the system, container cache (in some cases), abstraction, ... Cons: Over-design, cache agreement difficulties etc (not being master), Anyone care to give their opinion? :) Thomas -- - Thomas Aardal; +47 97566202; +47 22331515; fax +47 22336024 Biskop Gunnerusgt. 2; Boks 805 Sentrum, 0104 Oslo; www.conduct.no; [EMAIL PROTECTED] -- --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
Thank you so much Stephen you are absolutely right and now it works perfect. I agree that you definitely need to get rid of this error in the distribution I probably wont be the only one on the planet spending hours trying to figure out what in the world went wrong from 3.0.2 to 3.0.4. That was one great tip, you gave me there; thanks to you we are now running 3.0.4 thumbs up! Randahl -Original Message- From: Stephen Coy [mailto:[EMAIL PROTECTED]] Sent: 10. januar 2003 12:44 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working? Randahl, I guess I'm the blob guy at the moment. I went back and looked at your earlier emails. The problem is that you are using a jdbc-type of JAVA_OBJECT. This is an incorrect use of JAVA_OBJECT. Change it to LONGVARBINARY and it should work fine. We really need to go through the current standardjbosscmp-jdbc.xml and get rid of all the uses of JAVA_OBJECT. Prior to 3.0.4, JBoss would explicitly check for JAVA_OBJECT and serialise it, when it is supposed to be the JDBC driver's responsibility. Steve Coy On Friday, January 10, 2003, at 08:34 PM, Randahl Fink Isaksen wrote: I am wondering if anyone has got an EJB working on 3.0.4 with a property which is stored as a serialized java object. Even the EJBs that worked for me on 3.0.2 do no longer work on 3.0.4 if they have a property which is of some Serializable type which is converted to BLOB. I am using Sap DB. My previous post contains the exceptions I get on 3.0.4. Randahl
AW: [JBoss-user] Web services and BMP?
Did I get this right, you have a web-service layer that behaves like a (data-centric) resource and you like to use/hide it from/by a higher-level J2EE logic. Interesting. David Jenks told something about the new JCA-JAXM specification drafted for J2EE1.4 ... Maybe there could be design stances behind which go in your direction? SB-EB(BMP)-JCA-JAXM-Legacy could then be a way to go, but you have to make sure not to let the Persistence operations too fine-grained. SB-JCA-JAXM-Legacy will be most likely the more pratical way, but sometimes leads to bad design. Interested in pursuing that idea? Give David and me a note ... CGJ -Ursprüngliche Nachricht- Von: Thomas Aardal [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 10. Januar 2003 13:21 An: [EMAIL PROTECTED] Betreff: [JBoss-user] Web services and BMP? On a personal note: (Using jboss/jboss.net) In terms of good design, say I have a legacy system that exposes its api as web services, and I wish to use this in several places in a large deployment (including lots of other integrations, and cmp where appropriate), what is the community take on creating bmp's using web services code? Pros: Identical interface to business logic developers using entities in other parts of the system, container cache (in some cases), abstraction, ... Cons: Over-design, cache agreement difficulties etc (not being master), Anyone care to give their opinion? :) Thomas -- - Thomas Aardal; +47 97566202; +47 22331515; fax +47 22336024 Biskop Gunnerusgt. 2; Boks 805 Sentrum, 0104 Oslo; www.conduct.no; [EMAIL PROTECTED] -- --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to use a principal from a webapp for securing ejb calls
We have developed a multitier app (cmdline clients, webclients, ejb business layer and db layer). Running all on a jboss 3.0.3; the webclients are developed using struts 1.1; the complete application can be put in one ear file. The access to the webbclients is controlled by a form-based authentication with a security-domain configured via login-config.xml: application-policy name = GatewayRealm authentication login-module code =org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required module-option name =dsJndiNamejava:/CloudscapeDS/module-option module-option name = principalsQueryselect PASSWORD from PERSON p where p.USERNAME=? and p.LOCKED=false/module-option module-option name = rolesQueryselect r.ROLE,'Roles' from PERSON_ROLE_ROLE_PERSON_ROLE r, PERSON p where p.USERNAME=? AND p.PERSONNO=r.PERSON/module-option /login-module /authentication /application-policy This works all very well. Now we would like to use declarative Security for our EJBs (with the same realm). But we don't know how to use the principal (we have in each request of my webclients) to authenticate against the ejb container. Do we have to build our own Hashtable h with ... h.put(javax.naming.CONTEXT.SECURITY_PRINCIPAL , request.getUserPrincipal()); ... ctx = new InitialContext(h) and saving this ctx in a session attribute of my webclient to use for further lookups? If this is the way, we become trouble with our implementation of the ServiceLocator pattern. Our ServiceLocator class is a Singelton and results the home interfaces of our EJBs. The InitialContext is stored once in an instance variable. Could anyone give us a short description of the right way or send us an url of an example app? Thank you Sven --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
The beans which worked on 3.0.2 and failed on 3.0.4 also fails on 3.0.5rc1 I just tested that. I am forced to go back to 3.0.2 until the bug related to fields of type java.lang.Object is fixed. Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Randahl Fink Isaksen Sent: 10. januar 2003 10:34 To: [EMAIL PROTECTED] Subject: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working? I am wondering if anyone has got an EJB working on 3.0.4 with a property which is stored as a serialized java object. Even the EJBs that worked for me on 3.0.2 do no longer work on 3.0.4 if they have a property which is of some Serializable type which is converted to BLOB. I am using Sap DB. My previous post contains the exceptions I get on 3.0.4. Randahl
RE: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working?
That sure is a constructive suggestion. I currently use the default mapping which stores serialized java.lang.Object instances as LONG BINARY - is there a relevant alternative? Again, the mapping worked fine under 3.0.2 - what changed in 3.0.4? Would somebody please care to comment on that? Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Alex Loubyansky Sent: 10. januar 2003 11:02 To: Randahl Fink Isaksen Subject: Re: [JBoss-user] CMP on 3.0.4 with BLOB fields - has anyone seen it working? Hello Randahl, there are BLOB tests in the testsuit that pass successfully. So, I think your problem is a mapping. Have you tried different mapping? alex Friday, January 10, 2003, 11:34:19 AM, you wrote: RFI I am wondering if anyone has got an EJB working on 3.0.4 with a property RFI which is stored as a serialized java object. Even the EJBs that worked RFI for me on 3.0.2 do no longer work on 3.0.4 if they have a property which RFI is of some Serializable type which is converted to BLOB. I am using Sap RFI DB. RFI My previous post contains the exceptions I get on 3.0.4. RFI Randahl --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] deploying war file on jboss-3.0.5RC1_tomcat-4.1.18
Hi, I want to move my application from JBoss-2.4.6_Tomcat-4.0.3 to jboss-3.0.5RC1_tomcat-4.1.18. Jboss 3 is starting, I was able to access http://192.168.1.110:8080/jmx-console/index.jsp jmx-console page. I copied my war fileto deploy (G:\jboss-3.0.5RC1_tomcat-4.1.18\server\default\deploy) directory, my application is not deployed, I re-started the jboss, still its not deploying the web application. Do I have to add anything on my war file? Thanks SR
[JBoss-user] deploying war file on jboss-3.0.5RC1_tomcat-4.1.18
Hi, I want to move my application from JBoss-2.4.6_Tomcat-4.0.3 to jboss-3.0.5RC1_tomcat-4.1.18. Jboss 3 is starting, I was able to access http://192.168.1.110:8080/jmx-console/index.jsp jmx-console page. I copied my war fileto deploy (G:\jboss-3.0.5RC1_tomcat-4.1.18\server\default\deploy) directory, my application is not deployed, I re-started the jboss, still its not deploying the web application. Do I have to add anything on my war file? Thanks SR
Re: [JBoss-user] Why PHP why not JSP?
On Thu, Jan 09, 2003 at 11:16:38PM -0500, sherlock costello wrote: Does anybody (other than me) find it ironic that the leading open source application server project uses PHP on it's home page instead of JSP? Absolutely. I think it's insane. Not to fuel the flames thus far (it seems like there is a spectrum of respondants, some of which favor the move, some of which criticize it, and some of which are indifferent) but . . . :) TheServerSide.com folks have written their own application to manage stories, responses, threads, etc. It's pretty cool, and I'm impressed to see reporters actually explore the domain in which they report. I read articles in magazines, but I have no idea if the author even downloaded, compiled, wrote some client code, and truly evaluated a potential product. Or if they simply browsed the online API and read some class docs. To that end, I have a lot of respect for TheServerSide.com folks for (as somebody else pointed out) eating their own dog food and truly being in the trenches when it comes to emerging technology. Example: They wanted to review clustering. What did they do? They clustered *their* production website using Oracle's app server and WebLogic. After clustering, they wrote their review. Their review has a hell of a lot of credibility when on the left hand side of the browser window it reads Running on bea WebLogic and after a refresh it says Running on Oracle's WebSphere. I mean come on . . . you can't get much better than that. Likewise, I think JBoss should be in similar water and ... eating their own dog food. Yes I am familiar with the open source J2EE architecture (wrt Jetty or Tomcat being a servlet engine, and JBoss is an application server that can use Jetty or Tomcat, yadda yadda yadda). But it seems to me that ... if you really stand behind your movement you'd be using the tools in your domain to solve your problems. Or, if (as I am hearing) the current tools are not appropriate, make a new tool. Or change the existing tools to be more appropriate - that's the whole beauty of open source! Somewhat related to another poster's comment about MS Marketing, I'm just waiting for a smartass coworker to read a post somewhere (/. perhaps) that says that JBoss.org doesn't trust their product enough to run their own development site and then come shouting to me about how the project I've evangelized over the past year (over WebLogic and Oracle) isn't up to snuff. Please don't let those jabronis do that. Please... -c -- 11:20am up 81 days, 2:36, 1 user, load average: 0.06, 0.53, 2.13 --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] maybe just dreaming - Entity Bean change reflect
Hi MS, I understand with CMP you can have it create a table if it does not already exist. I'm looking for the case where there is an existing table, with data in it, and need to add new fields to the table. thanks, -D Hello, Redeploying the entity bean should take care of creating the table... Am i missing some point here? rgds MS -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] maybe just dreaming - Entity Bean change reflect in Persistant Storage? Hi All, I may be just dreaming, but when making a change to a CMP Bean, is there some functionality to automatically update the Persistant Storage with the change? As an example, add some new fields to the bean and have it add the new fields to the attached database? Jboss3.0.4/Jetty w/ MySQL DB Thanks in advance if anyone has a solution! -D --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 2 From: Igor Semenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu, 9 Jan 2003 22:59:02 +0200 Subject: [JBoss-user] per application login Reply-To: [EMAIL PROTECTED] We have many applications (stores) deployed In jboss, each have one or more users to perform store administration tasks. I'm thinking about best way to limit users to their own stores. Login information is stored In table: userId, password, storeId ... First idea is to overwrite DatabaseLoginModule and put storeId attribute into Principal object, then handle access rules within application. Ideally login module should reject login with storeId different from 'current storeId'. Any idea? Thanks, Igor Semenko. --__--__-- Message: 3 To: [EMAIL PROTECTED] From: Weiqi Gao [EMAIL PROTECTED] Date: Thu, 09 Jan 2003 14:59:23 -0600 Subject: [JBoss-user] Re: Intermittent error on deployment Reply-To: [EMAIL PROTECTED] Scott M Stark wrote: That can't be this case as he said retouching the descriptor resulted in a successful deployment. If the process was out of fds due to leaks its not likely that it suddenly got one. How is the build being done? Perhaps the descriptor is being removed and there is a race condition between seeing the update and replacing the descriptor. In my case, I'm touching the .ear file in the deploy directory. The ear file is 5.4MB in size. Could it be that the file scanner saw the file coming and immediately tied to read META-INF/application.xml, before the file is completely there? Copying the file typically take this long: real0m0.240s user0m0.050s sys 0m0.180s -- Weiqi Gao [EMAIL PROTECTED] --__--__-- Message: 4 Date: Thu, 09 Jan 2003 15:23:11 -0600 From: Dan Christopherson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate Reply-To: [EMAIL PROTECTED] Their performance was pretty good in what it was optimized for: navigational access. Query performance was horrendous. This is somewhat the mirror image of relational database at the same level of maturity: they were great for queries, but navigational access sucked. -danch Eric Kaplan wrote: Maybe things have changed recently, but I think the biggest thing against them (besides some of their obscene pricing policies - read ObjectStore) was their poor performance querying across very large sets of data compared to their stodgy relational counterparts. They were stillborn because they fell apart under certain conditions. Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Christopherson Sent: Thursday, January 09, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate Matthew Baird wrote: couple notes: - try selling an enterprise level application that doesn't support a standard rdbms on the backend (oracle/sql server/db2) Probably the second biggest thing (after fear of change) that caused ODBMS's to be stillborn: Will insert corporate standard reporting tool work with it? No!?!?! How do you expect to sell it? -danch --__--__-- Message: 5 From: Scott M Stark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Re: Intermittent error on deployment Date: Thu, 9 Jan 2003 15:04:43 -0800 Organization: JBoss Group, LLC Reply-To: [EMAIL PROTECTED] Yes and this is a known issue. Deployment updates need to be atomic or there is a race between completing the update and the scanner trying to deploy the modified content. We need a lock file notion or something to allow for large redeploys. Scott Stark Chief Technology Officer JBoss Group, LLC -
RE: [JBoss-user] maybe just dreaming - Entity Bean change reflect
You are just dreaming ;) Entity bean will extend your Db vertically (i.e. add new rows) but not horizontally (add new columns). Nevertheless: - you could implement a BMP that does that (good luck) but your changes won't necessarly be transational (depends on your db) - if you redeploy your bean and use the create-table feature of CMP, JBoss will re-create the table (but not update it = you loose your data). Cheers, sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Darren Hartford Envoyé : vendredi, 10 janvier 2003 17:37 À : [EMAIL PROTECTED] Objet : [JBoss-user] maybe just dreaming - Entity Bean change reflect Hi MS, I understand with CMP you can have it create a table if it does not already exist. I'm looking for the case where there is an existing table, with data in it, and need to add new fields to the table. thanks, -D Hello, Redeploying the entity bean should take care of creating the table... Am i missing some point here? rgds MS -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] maybe just dreaming - Entity Bean change reflect in Persistant Storage? Hi All, I may be just dreaming, but when making a change to a CMP Bean, is there some functionality to automatically update the Persistant Storage with the change? As an example, add some new fields to the bean and have it add the new fields to the attached database? Jboss3.0.4/Jetty w/ MySQL DB Thanks in advance if anyone has a solution! -D --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 2 From: Igor Semenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu, 9 Jan 2003 22:59:02 +0200 Subject: [JBoss-user] per application login Reply-To: [EMAIL PROTECTED] We have many applications (stores) deployed In jboss, each have one or more users to perform store administration tasks. I'm thinking about best way to limit users to their own stores. Login information is stored In table: userId, password, storeId ... First idea is to overwrite DatabaseLoginModule and put storeId attribute into Principal object, then handle access rules within application. Ideally login module should reject login with storeId different from 'current storeId'. Any idea? Thanks, Igor Semenko. --__--__-- Message: 3 To: [EMAIL PROTECTED] From: Weiqi Gao [EMAIL PROTECTED] Date: Thu, 09 Jan 2003 14:59:23 -0600 Subject: [JBoss-user] Re: Intermittent error on deployment Reply-To: [EMAIL PROTECTED] Scott M Stark wrote: That can't be this case as he said retouching the descriptor resulted in a successful deployment. If the process was out of fds due to leaks its not likely that it suddenly got one. How is the build being done? Perhaps the descriptor is being removed and there is a race condition between seeing the update and replacing the descriptor. In my case, I'm touching the .ear file in the deploy directory. The ear file is 5.4MB in size. Could it be that the file scanner saw the file coming and immediately tied to read META-INF/application.xml, before the file is completely there? Copying the file typically take this long: real0m0.240s user0m0.050s sys 0m0.180s -- Weiqi Gao [EMAIL PROTECTED] --__--__-- Message: 4 Date: Thu, 09 Jan 2003 15:23:11 -0600 From: Dan Christopherson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate Reply-To: [EMAIL PROTECTED] Their performance was pretty good in what it was optimized for: navigational access. Query performance was horrendous. This is somewhat the mirror image of relational database at the same level of maturity: they were great for queries, but navigational access sucked. -danch Eric Kaplan wrote: Maybe things have changed recently, but I think the biggest thing against them (besides some of their obscene pricing policies - read ObjectStore) was their poor performance querying across very large sets of data compared to their stodgy relational counterparts. They were stillborn because they fell apart under certain conditions. Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Christopherson Sent: Thursday, January 09, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate Matthew Baird wrote: couple notes: - try selling an enterprise level application that doesn't support a standard rdbms on the backend (oracle/sql server/db2) Probably the second biggest
RE: Antwort: [JBoss-user] can't enlist error on second pass through resource adapter
reordering did fix the problem, thanks. however, shouldn't my previous ordering have worked as well? i wouldexpect thatin a CMT case, the transaction is begun and committed outside the calls to getConnection/close. i would expect this ordering to work in a BMT case as well. i've noticed with my BMT EJB thatswapping the order of Connection.close and UserTransaction.commit doesn't seem to affect behavior. but as we've just seen, swapping UserTransaction.begin and ConnectionFactory.getConnection breaks the enlistment/delistment. is this a bug, or am i missing something in the spec that requires the getConnection call to proceed the beginning of a UserTransaction? thanks. -mike -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Friday, January 10, 2003 1:43 AMTo: [EMAIL PROTECTED]Subject: Antwort: [JBoss-user] "can't enlist" error on second pass through resource adapterFirst check if reordering of getConnection() and getUserTransaction() will solve your problem javax.resource.cci.ConnectionFactory conFac = (javax.resource.cci.ConnectionFactory) ctx.lookup ("java:comp/env/HPIARM");cx = conFac.getConnection(); tran = (UserTransaction) context.getUserTransaction(); tran.begin(); . If not, than start step debugging of JBoss-internal transaction/connection manager code when calling cx.close() on first ejb invocation. Look for correct calls of org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener.delist() on your previously ( inside tran.begin() ) enlisted resource. Ulf Schroeter "GROVE,MIKE (HP-FtCollins,ex1)" [EMAIL PROTECTED] Gesendet von: [EMAIL PROTECTED] 10.01.2003 00:08 Bitte antworten an jboss-user An: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Kopie: Thema:[JBoss-user] "can't enlist" error on second pass through resource adapterjboss gurus, i'm trying to port a resource adapter to jboss to investigate the feasibility/cost of using this resource adapter with jboss. i'm using jboss 3.0.4 with tomcat 4.1.12. my jdk is 1.3.1.06. platform is w2kp sp3. the resource adapter supports XA. res-sharing-scope is set to Unshareable in the ejb-jar.xml file of the EJB that uses the resource adapter. the resource adapter worked fine in the following use case with both oracle's 9.0.3 oc4j and HP Bluestone's TeS 7.3. the use case is as follows: i have a stateless session bean that begins a BMT, looks up the resource adapter, performs some work on it (via the Interaction interface), closes the connection, and commits the transaction. e.g.: InitialContext ctx = new InitialContext (); // i tried both of the following UserTransaction lookups in trying to fix the problemtran = (UserTransaction) ctx.lookup ("java:comp/UserTransaction");//tran = (UserTransaction) context.getUserTransaction(); tran.begin();javax.resource.cci.ConnectionFactory conFac = (javax.resource.cci.ConnectionFactory) ctx.lookup ("java:comp/env/HPIARM");cx = conFac.getConnection();Interaction ix = cx.createInteraction (); // do work on ix, e.g. ix.execute(); // i've tried reordering the following two calls without effect. tran.commit(); cx.close(); a servlet invokes the EJB to perform the above operations. the first time i run this body of code, everything works fine. that is, my resource adapter receives XAResource.start, XAResource.end, and XAResource.commit at the appropriate times. the second time, i get the exception listed below. it appears as if the TM still believes the XAResource is enlisted in the first transaction. this surprises me, because both XAResource.end and XAResource.commit were called during the first pass through the method. i believe we get the exception right after ManagedConnectionFactory has run matchManagedConnection and found a match. any suggestions on how to debug this problem? i set the CONSOLE Threshold to TRACE in log4j.xml, which didn't provide any log messages that helped me diagnose the problem. i'm relatively new to jboss; it's certainly possible i missed a simple configuration step. the service file for the resource adapter was mostly copied from an example that shipped with jboss. thanks. -mike exception from jboss's console: 2003-01-09 15:33:42,036 WARN [org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener] in Enlisting tx, illegal state: TransactionImpl:XidImpl [FormatId=257, GlobalId=fcmgrove//7, BranchQual=]2003-01-09 15:33:42,046 ERROR [STDERR] java.lang.IllegalStateException: Can't enlist - already a tx!2003-01-09 15:33:42,046 ERROR [STDERR] at org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener.enlist(XATxConnectionManager.java:250)2003-01-09 15:33:42,056 ERROR [STDERR] at
RE: [JBoss-user] Why PHP why not JSP?
We are in the process of creating our own CMS framework. Actually a direct port of PostNuke. When that is complete we'll switch back to Java land. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher Blunck Sent: Friday, January 10, 2003 11:32 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Why PHP why not JSP? On Thu, Jan 09, 2003 at 11:16:38PM -0500, sherlock costello wrote: Does anybody (other than me) find it ironic that the leading open source application server project uses PHP on it's home page instead of JSP? Absolutely. I think it's insane. Not to fuel the flames thus far (it seems like there is a spectrum of respondants, some of which favor the move, some of which criticize it, and some of which are indifferent) but . . . :) TheServerSide.com folks have written their own application to manage stories, responses, threads, etc. It's pretty cool, and I'm impressed to see reporters actually explore the domain in which they report. I read articles in magazines, but I have no idea if the author even downloaded, compiled, wrote some client code, and truly evaluated a potential product. Or if they simply browsed the online API and read some class docs. To that end, I have a lot of respect for TheServerSide.com folks for (as somebody else pointed out) eating their own dog food and truly being in the trenches when it comes to emerging technology. Example: They wanted to review clustering. What did they do? They clustered *their* production website using Oracle's app server and WebLogic. After clustering, they wrote their review. Their review has a hell of a lot of credibility when on the left hand side of the browser window it reads Running on bea WebLogic and after a refresh it says Running on Oracle's WebSphere. I mean come on . . . you can't get much better than that. Likewise, I think JBoss should be in similar water and ... eating their own dog food. Yes I am familiar with the open source J2EE architecture (wrt Jetty or Tomcat being a servlet engine, and JBoss is an application server that can use Jetty or Tomcat, yadda yadda yadda). But it seems to me that ... if you really stand behind your movement you'd be using the tools in your domain to solve your problems. Or, if (as I am hearing) the current tools are not appropriate, make a new tool. Or change the existing tools to be more appropriate - that's the whole beauty of open source! Somewhat related to another poster's comment about MS Marketing, I'm just waiting for a smartass coworker to read a post somewhere (/. perhaps) that says that JBoss.org doesn't trust their product enough to run their own development site and then come shouting to me about how the project I've evangelized over the past year (over WebLogic and Oracle) isn't up to snuff. Please don't let those jabronis do that. Please... -c -- 11:20am up 81 days, 2:36, 1 user, load average: 0.06, 0.53, 2.13 --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] maybe just dreaming - Entity Bean change reflect
SL - if you redeploy your bean and use the create-table feature of CMP, JBoss SL will re-create the table (but not update it = you loose your data). No, JBoss won't recreate the table if remove-table wasn't set to true. The table will remain the same. Thus, if entity's structure/definition changed, it'll fail soon or later. alex -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Darren Hartford Envoyé : vendredi, 10 janvier 2003 17:37 À : [EMAIL PROTECTED] Objet : [JBoss-user] maybe just dreaming - Entity Bean change reflect Hi MS, I understand with CMP you can have it create a table if it does not already exist. I'm looking for the case where there is an existing table, with data in it, and need to add new fields to the table. thanks, -D Hello, Redeploying the entity bean should take care of creating the table... Am i missing some point here? rgds MS -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] maybe just dreaming - Entity Bean change reflect in Persistant Storage? Hi All, I may be just dreaming, but when making a change to a CMP Bean, is there some functionality to automatically update the Persistant Storage with the change? As an example, add some new fields to the bean and have it add the new fields to the attached database? Jboss3.0.4/Jetty w/ MySQL DB Thanks in advance if anyone has a solution! -D --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 2 From: Igor Semenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu, 9 Jan 2003 22:59:02 +0200 Subject: [JBoss-user] per application login Reply-To: [EMAIL PROTECTED] We have many applications (stores) deployed In jboss, each have one or more users to perform store administration tasks. I'm thinking about best way to limit users to their own stores. Login information is stored In table: userId, password, storeId ... First idea is to overwrite DatabaseLoginModule and put storeId attribute into Principal object, then handle access rules within application. Ideally login module should reject login with storeId different from 'current storeId'. Any idea? Thanks, Igor Semenko. --__--__-- Message: 3 To: [EMAIL PROTECTED] From: Weiqi Gao [EMAIL PROTECTED] Date: Thu, 09 Jan 2003 14:59:23 -0600 Subject: [JBoss-user] Re: Intermittent error on deployment Reply-To: [EMAIL PROTECTED] Scott M Stark wrote: That can't be this case as he said retouching the descriptor resulted in a successful deployment. If the process was out of fds due to leaks its not likely that it suddenly got one. How is the build being done? Perhaps the descriptor is being removed and there is a race condition between seeing the update and replacing the descriptor. In my case, I'm touching the .ear file in the deploy directory. The ear file is 5.4MB in size. Could it be that the file scanner saw the file coming and immediately tied to read META-INF/application.xml, before the file is completely there? Copying the file typically take this long: real0m0.240s user0m0.050s sys 0m0.180s -- Weiqi Gao [EMAIL PROTECTED] --__--__-- Message: 4 Date: Thu, 09 Jan 2003 15:23:11 -0600 From: Dan Christopherson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate Reply-To: [EMAIL PROTECTED] Their performance was pretty good in what it was optimized for: navigational access. Query performance was horrendous. This is somewhat the mirror image of relational database at the same level of maturity: they were great for queries, but navigational access sucked. -danch Eric Kaplan wrote: Maybe things have changed recently, but I think the biggest thing against them (besides some of their obscene pricing policies - read ObjectStore) was their poor performance querying across very large sets of data compared to their stodgy relational counterparts. They were stillborn because they fell apart under certain conditions. Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Christopherson Sent: Thursday, January 09, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate Matthew Baird wrote: couple notes: - try selling an enterprise level application that doesn't support a standard rdbms on the backend (oracle/sql server/db2) Probably the second biggest thing (after fear of change) that caused ODBMS's to be stillborn: Will insert corporate standard
Re: [JBoss-user] Why PHP why not JSP?
Let's try viewing this from a different angle: How much fun would we have with the .NET advocates if www.microsoft.com was built using PHP? /Goran Andersson --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error deploying custom scheduler service
Hi, I created a custom implementation of the Schedulable interface. I tried deploying it as a SAR with the Schedulable implementation included or a scheduler-service.xml with the implemention in the JBoss lib directory. scheduler-plugin.jar is in lib, too. Either way I'm getting the stacktrace below. Since I closely followed the instructions in the JBoss 3.0.4. paid-docs PDF book I can't imagine what I'm doing wrong. This is my scheduler-service.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE server server classpath codebase=lib archives=scheduler-plugin.jar/ !-- -- !-- Scheduler Service -- !-- -- mbean code=org.jboss.varia.scheduler.Scheduler name=:service=Scheduler attribute name=StartAtStartuptrue/attribute attribute name=SchedulableClasscom.logica.isis.server.common.util.UserSessionRemova lService/attribute attribute name=SchedulableArgumentsPhoenix,12/attribute attribute name=SchedulableArgumentTypesjava.lang.String,long/attribute attribute name=InitialStartDateNOW/attribute attribute name=SchedulePeriod30/attribute attribute name=InitialRepetitions-1/attribute /mbean /server I'm especially surprised about the error message 19:04:51,248 ERROR [Scheduler] Could not find the constructor or create Schedulable instance since my SchedulableClass contains the required constructor with the String and long arguments. Also surprised about the OutOfMemoryError since that has never happened before during deployment. If anybody can shed some light on this, I'd be more than happy :) ! Thanks, Bernhard See this Stacktrace -- 19:04:49,435 INFO [MainDeployer] Starting deployment of package: file:/C:/gb05- projekte/dbv-winterthur/Tools/lib/jboss/server/default/deploy/scheduler-serv ice. xml 19:04:49,505 INFO [Scheduler] Creating 19:04:49,505 INFO [Scheduler] Created 19:04:49,515 INFO [Scheduler] Starting 19:04:51,248 ERROR [Scheduler] Could not find the constructor or create Schedula ble instance 19:05:11,407 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment .scanner.URLDeploymentScanner$DeployedURL@c12cc056{ url=file:/C:/gb05-projekte/d bv-winterthur/Tools/lib/jboss/server/default/deploy/scheduler-service.xml, deplo yedLastModified=0 } org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/ gb05-projekte/dbv-winterthur/Tools/lib/jboss/server/default/deploy/scheduler -ser vice.xml; - nested throwable: (java.lang.OutOfMemoryError) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:827) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy4.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:435) at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe ploymentScanner.java:656) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:507) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A bstractDeploymentScanner.java:261) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1 65) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl ler.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:398) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
Re: [JBoss-user] Why PHP why not JSP?
If is not ask to much, can we keep this as an help system? If you like you tool (any name you like) better use it. Thank you, John Mello --- Göran_Andersson [EMAIL PROTECTED] wrote: Let's try viewing this from a different angle: How much fun would we have with the .NET advocates if www.microsoft.com was built using PHP? /Goran Andersson --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Re[2]: [JBoss-user] maybe just dreaming - Entity Bean change reflect
We have been using a home-made solution where a pre-deployer reads an xml-file from the jar-file containing any db-script to be executed before the actual deployment of the ejb. It works ok. BUT... the BeanShell solution looks very interesting... /Lennart - Original Message - From: Alex Loubyansky [EMAIL PROTECTED] To: Sacha Labourey [EMAIL PROTECTED] Sent: Friday, January 10, 2003 6:35 PM Subject: Re[2]: [JBoss-user] maybe just dreaming - Entity Bean change reflect SL - if you redeploy your bean and use the create-table feature of CMP, JBoss SL will re-create the table (but not update it = you loose your data). No, JBoss won't recreate the table if remove-table wasn't set to true. The table will remain the same. Thus, if entity's structure/definition changed, it'll fail soon or later. alex --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [JBoss-dev] PHP
In the early days of Java, I read that a large retailer had about 70 Java programmers because it was a business decision. It was the only tool available that they could use to integrate their systems. Most likely, Marc's decision to use PHP on the website is a business decision as well. The website has to be fluid, functional, and professional, require a mininum of time and attention, and it all has to be done Now. So Marc found a ready-made solution that will solve 80% of his requirements. The 20% that's missing is that it's not J2EE. JSP is relatively new compared to PHP, and JSP/JSTL is significantly more complex. It sounds like Mark has both an immediate plan and a vision for the future all based on real-world requirements and recent practical experience wrestling with the forums. It would be nice to see everything pure java. Marc says we'll get there. He's got us this far, hasn't he? So having had our say (from the perspective of ones not paying the bills), I suggest we all just get back to work. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] can't enlist revisited - this time, with concurrent use of resource adapter
hi, in a previous post with subject "[JBoss-user] "can't enlist" error on second pass through resource adapter" i described a problem i was havingwith multiple, non-concurrent invocations of a resource adapter via a stateless session bean. the responder's suggestion (swapping the order of UserTransaction.begin() and ConnectionFactory.getConnection()) got me past this problem. i still have an outstanding question out as to why this should be required, but we'll leave that as a separate thread. my new problem is that i can't perform multiple, concurrent invocations of the resource adapter. during the 2nd call to ConnectionFactory.getConnection(), i get the "Can't enlist - already a tx!" error. in case it's helpful, this is the same error i got before i flipped the order of UserTransaction.begin() and ConnectionFactory.getConnection(). i put some comments in the EJB method that invokes the resource adapter to help me track down what state caused the problem. i also threw in a sleep call to assist as well. same environment as in my previous post, which i'll repeat here: i'm using jboss 3.0.4 with tomcat 4.1.12. my jdk is 1.3.1.06. platform is w2kp sp3. the resource adapter supports XA. res-sharing-scope is set to Unshareable in the ejb-jar.xml file of the EJB that uses the resource adapter. this use case works fine under oc4j 9.0.3 and TeS 7.3. any assistance would be appreciated. i'm trying to understand the feasibility/cost of a port of our resource adapter to jboss - an inability to use the resource adapter in a concurrent fashion would likely prevent us from using jboss. thanks. -mike ejb code snippets: javax.resource.cci.ConnectionFactory conFac = (javax.resource.cci.ConnectionFactory) ctx.lookup ("java:comp/env/HPIARM");System.out.println("getting connection");cx = conFac.getConnection();System.out.println("got connection"); tran = (UserTransaction) context.getUserTransaction(); System.out.println("beginning transaction");tran.begin();System.out.println("begun transaction"); try { Thread.sleep(5000);}catch (InterruptedException ie) { } // do some work on cs via Interaction interface tran.commit(); System.out.println("commited transaction"); cx.close(); System.out.println("closed connection"); output in server.log: 2003-01-10 13:31:18,286 INFO [STDOUT] getting connection2003-01-10 13:31:18,286 INFO [STDOUT] got connection2003-01-10 13:31:18,286 INFO [STDOUT] beginning transaction2003-01-10 13:31:18,306 INFO [STDOUT] begun transaction2003-01-10 13:31:18,406 INFO [STDOUT] getting connection2003-01-10 13:31:18,436 WARN [org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener] in Enlisting tx, illegal state: TransactionImpl:XidImpl [FormatId=257, GlobalId=fcmgrove//8, BranchQual=]2003-01-10 13:31:18,436 ERROR [STDERR] java.lang.IllegalStateException: Can't enlist - already a tx!2003-01-10 13:31:18,446 ERROR [STDERR] at org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener.enlist(XATxConnectionManager.java:250)2003-01-10 13:31:18,446 ERROR [STDERR] at org.jboss.resource.connectionmanager.XATxConnectionManager.managedConnectionReconnected(XATxConnectionManager.java:202)2003-01-10 13:31:18,446 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:534)2003-01-10 13:31:18,466 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)2003-01-10 13:31:18,466 ERROR [STDERR] at com.hp.ov.activator.resmgr.connector.HPIAConnectionFactory.getConnection(Unknown Source)2003-01-10 13:31:18,476 ERROR [STDERR] at com.hp.ov.activator.resmgr.ejb.ServiceActivationBean.executeService(Unknown Source)2003-01-10 13:31:18,476 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method)2003-01-10 13:31:18,476 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)2003-01-10 13:31:18,486 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)2003-01-10 13:31:18,486 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)2003-01-10 13:31:18,486 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)2003-01-10 13:31:18,496 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)2003-01-10 13:31:18,496 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)2003-01-10 13:31:18,496 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)2003-01-10 13:31:18,496 ERROR [STDERR] at
[JBoss-user] Re: Here is that sample
Attached file:
Re: [JBoss-user] xactisolevel error: PostgreSQL-7.3 and JBOSS-3.0.4
On Fri, 2003-01-10 at 19:43, Allan Kamau wrote: I am experiencing problems running JBoss-3.0.4 using PostgreSQL-7.3 as the database for CMP. It appears PostgreSQL-7.3 doesn't understand show xactisolevel command (which is been sent to it by JBoss) unlike PostgreSQL-7.2.x. I've deployed the latest jdbc driver for PostgreSQL-7.3 from jdbc.postgres.org. but the query show xactisolevel is still being passed on to the DB causing postgres to throw an error. You must have another copy of the driver somewhere. I had this problem and replacing the driver with the 7.3 version from the postrgresql site sis the trick I don't get any such problems while I use PostgreSQL-7.2.3 as show xactisolevel is a valid PostgresSQL-7.2.x command. Now my question is there a way to possibly through one of the configuration .xmls in JBoss that I can make JBoss not pass this query to the backend and instead pass a PostgreSQL-7.3.x alternative to this query? Or how as/can this situation be solved. I'm not sure it's jboss. I think it's in the driver, as I said replacing the driver fixed it for me. Here's the checksum. 30f050e02bdbdb60641ad10c3699b4db postgresql.jar Thank you. Allan. -k. -- If you don't test then your code is only a collection of bugs which apparently behave like a working program. Website: http://www.rocketred.com.au/blogs/kevin/ --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Cmp vs hibernate
From: Pete Beck [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 12:36 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Cmp vs hibernate On Thu, 2003-01-09 at 19:32, Dan Christopherson wrote: Probably the second biggest thing (after fear of change) that caused ODBMS's to be stillborn: Will insert corporate standard reporting tool work with it? No!?!?! How do you expect to sell it? Which is probably why no-one has developed a commercial solution for the problem. Eh? What was Gemstone/J? RDBMSes (and the myriad tools surrounding them) have evolved under real-world pressures over the last 30+ years. The concept (and a half-dozen different implementations) are about as refined as enterprise software gets. It will be a long time before it has been proven safe to store mission-critical data anywhere else. IMHO, trying to create a general-purpose persistence mechanism that abstracts both RDBMS and ODBMS data stores is foolish. One of the really frustrating things about EJB CMP (before I ditched it in favor of Hibernate, one of the best decisions I ever made) was how difficult CMP made it to sidestep the abstraction and use aggregation queries, outer joins, and other performance-enhancing techniques. If you are writing code and thinking to yourself hey, maybe I'll move my datastore to an ODBMS sometime in the future then you're writing a toy, not a serious enterprise application. In the real world that doesn't happen. It's tough (organizationally and technically) just to switch database vendors. Jeff Schnitzer --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [non HTML repost] References ObjectFactories
1. Has been added to 3.0.5. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Brian Topping [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 2:06 AM Subject: RE: [JBoss-user] [non HTML repost] References ObjectFactories From: Scott M Stark [mailto:[EMAIL PROTECTED]] Subject: Re: [JBoss-user] [non HTML repost] References ObjectFactories Sorry, this is my first time for remoted MBeans, so I'm a little slow. 1. Expose the security manager interfaces methods as MBean operations on the JaasSecurityManagerServiceMBean with an additional argument of the security domain name. Now the ops are available over any protocol for which there is a JMX connector. Okay, there are a total of four of them. For example on the AuthenticationManager exposure: public boolean isValid(String securityDomain, Principal principal, Object credential) { SecurityDomainContext securityDomainCtx = (SecurityDomainContext) securityDomainCtxMap.get(securityDomain); if( securityDomainCtx == null ) { AuthenticationManager am = securityDomainCtx.getSecurityManager(); return am.isValid(principal, credential); } return false; } Looks okay? --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Purposes/behavior of different MBean services
It a simple lock inspection monitor as described in the admin/devel docs: The EntityLockMonitor has no configurable attributes. It does have the following read-only attributes: -MedianWaitTime: The median value of all times threads had to wait to acquire a lock. -AverageContenders: The ratio of the total number of contentions to the sum of all threads that had to wait for a lock. -TotalContentions: The total number of threads that had to wait to acquire the transaction lock. This happens when a thread attempts to acquire a lock that is associated with another transaction -MaxContenders: The maximum number of threads that were waiting to acquire the transaction lock. It also has the following operations: -clearMonitor: This operation resets the lock monitor state by zeroing all counters. -printLockMonitor: This operation prints out a table of all ejb locks that lists the ejbName of the bean, the total time spent waiting for the lock, the count of times the lock was waited on and the number of transactions that timed out waiting for the lock. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Meyer-Willner, Bernhard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 12:53 AM Subject: Re: [JBoss-user] Purposes/behavior of different MBean services Thanks a lot for the info, Scott. Could you also please comment on the EntityLockMonitor, as I believe it could be useful for detecting deadlock. !-- Uncomment to enable JMX monitoring of the entity bean locking -- mbean code=org.jboss.monitor.EntityLockMonitor name=jboss.monitor:name=EntityLockMonitor/ Thanks, Bernhard -Ursprüngliche Nachricht- Von: Scott M Stark [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 8. Januar 2003 04:00 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] Purposes/behavior of different MBean services - BeanCacheMonitor is obsolete and will be removed. - FileDeploymentStore and DeploymentCache were experiments by Jason. They are unsupported and only available for experimentation. - CounterService is simple accumulator you can lookup from JNDI under java:/CounterService to invoker accumulate(String counterName, long add) ops on and list totals from. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Meyer-Willner, Bernhard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 2:46 AM Subject: Re: [JBoss-user] Purposes/behavior of different MBean services Hi, does anybody from the JBoss team care to comment on those MBeans? Seems there some interesting services offered and I'd love to know what they're for, can't find any docs or meaningful info on the forums, though. Thanks, Bernhard -Ursprüngliche Nachricht- Von: Meyer-Willner, Bernhard [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 6. Januar 2003 16:06 An: JBoss-User (E-Mail) Betreff: [JBoss-user] Purposes/behavior of different MBean services Hi, I have a couple of questions on different MBean services which are not covered in the paid-for docs unfortunately, or are covered, but not in a sufficient manner IMHO. I'd love to hear from anybody who can tell me about the following: 1: -- Except from jboss-service.xml: !-- -- !-- Monitoring and Management -- !-- -- !-- Uncomment to enable JMX monitoring of the bean cache -- mbean code=org.jboss.monitor.BeanCacheMonitor name=jboss.monitor:name=BeanCacheMonitor/ !-- Uncomment to enable JMX monitoring of the entity bean locking -- mbean code=org.jboss.monitor.EntityLockMonitor name=jboss.monitor:name=EntityLockMonitor/ 2: -- Excerpt from jboss-service.xml !-- -- !-- Deployment Scanning -- !-- -- !-- Uncomment to enable caching of deployment units -- mbean code=org.jboss.deployment.cache.FileDeploymentStore name=jboss.deployment:type=DeploymentStore,flavor=File attribute name=DirectoryNamedata/deployment-cache/attribute /mbean mbean code=org.jboss.deployment.cache.DeploymentCache name=jboss.deployment:type=DeploymentCache depends optional-attribute-name=Deployerjboss.system:service=MainDeployer/depend s depends optional-attribute-name=Storejboss.deployment:type=DeploymentStore,flavor =File/depends /mbean 3: -- What's the counter service MBean for (counter-service.xml) and how can it be used and for what purposes? Thanks, Bernhard --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
Re: [JBoss-user] List of active users logged in thru JAAS
Its been added for 3.0.5 Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Meyer-Willner, Bernhard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 9:02 AM Subject: Re: [JBoss-user] List of active users logged in thru JAAS Thanks for your two solutions, you guys. Unfortunately I don't have a web layer, but instead a Swing GUI based app talking directly to the EJB-based business logic via business delegates. So this solution won't work for me like that :( Are there any other ways to get a list of active users from the JAAS LoginContext? Cheers, Bernhard -Ursprüngliche Nachricht- Von: Luttrell, Peter [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. Januar 2003 17:45 An: '[EMAIL PROTECTED]' Betreff: RE: [JBoss-user] List of active users logged in thru JAAS I've done a very similar solution. I had problems getting the HttpSessionListener to work so i used the HttpSessionAttributeListener instead. This meant that my solution was Jetty specific but in the end, that was ok. Here's the code, stripped of exception handling and such: public class HttpSessionEventHandler implements HttpSessionAttributeListener { public void attributeAdded( HttpSessionBindingEvent event ) { if ( org.mortbay.jetty.Auth.equalsIgnoreCase( event.getName() ) ) { String sessionKey = event.getSession().getId(); String applicationKey = event.getSession().getServletContext().getServletContextName(); String userKey = event.getValue().toString(); MonitorService.getMonitorService().registerSession( sessionKey, userKey, applicationKey ); } } public void attributeRemoved( HttpSessionBindingEvent event ) { if ( org.mortbay.jetty.Auth.equalsIgnoreCase( event.getName() ) ) { MonitorService.getMonitorService().removeSession( event.getSession().getId() ); } } public void attributeReplaced( HttpSessionBindingEvent event ) { } } Filter: public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException { //do this before hand so that the actual page that is displaying the results gets updated, but // it doens't work all the time before because the user might night be authenticated, thus // ignore any such error because it will be done after the request processing as well... HttpServletRequest httpRequest = ( HttpServletRequest ) request; MonitorService.getMonitorService().updateSession( httpRequest.getSession().getId() ); chain.doFilter( request, response ); HttpServletRequest httpRequest = ( HttpServletRequest ) request; MonitorService.getMonitorService().updateSession( httpRequest.getSession().getId() ); } The underlying storage of session tracking info can of course be done many ways, such as a singleton or MBean. Mine has the concept of applications and usernames. I use the session id for the uniquekey identifying the session in the service. enjoy. .peter -Original Message- From: Krishnakumar N [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:12 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] List of active users logged in thru JAAS We use a combination of a filter and a HttpSessionListener to achieve something like this (we do not store the list of currently stored users in a db). The filter checks whether the current user is logged in and if yes, adds the user id to a application context hashtable. The same hashtable is used by the same filter to prevent multiple simultaneous logins on the same userid. The timeout, in case of browser crash/hang/close, is handled via Session.setMaxInactiveInterval() along with the sessionDestroyed event handler in the HttpSessionListener . Cheers, Krishna -Original Message- From: Meyer-Willner, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 7:14 PM To: JBoss-User (E-Mail) Subject: [JBoss-user] List of active users logged in thru JAAS Hi, I'm using JAAS to authenticate users logging in against a database. I was wondering if there is any way to find out if a user's LoginContext has timed out (is active respectively). Thing is, for business logic reasons, we also have to keep information about all logged in users in a database table. If for some reason the client app hangs or the user doesn't log out properly these user record sets remain in the database. We're planning on running a scheduler MBean service that removes recordsets above a certain age from time to time. However, to be sure that the user isn't actively using our app/system any more we would like to check, if he's still authenticated in JBoss. Is there any way to find this out and get a list of active/logged on users, authenticated thru JAAS? Thanks for any ideas. Bernie This e-mail and any attachment
Re: [JBoss-user] What does this exception mean?
That you redeployed the ejb being called without redeploying the calling context and the class versions are out of date. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Matthew Van Horn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:52 AM Subject: [JBoss-user] What does this exception mean? I get this message intermittently, usually after another error has occurred, and I am rerunning a test. javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.accesstech.atjsystems.db.XindiceClientLocal com.accesstech.atjsystems.db.XindiceClientLocalHome.create() throws javax.ejb.CreateException Can someone give me a quick summary of what this is all about? Thanks, Matt --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to use a principal from a webapp for securing ejb calls
You use the bundled Tomcat or Jetty containers and use the same security-domain value in the ejbs as the web app and do nothing else. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Scheil, Sven [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 10, 2003 5:41 AM Subject: [JBoss-user] How to use a principal from a webapp for securing ejb calls We have developed a multitier app (cmdline clients, webclients, ejb business layer and db layer). Running all on a jboss 3.0.3; the webclients are developed using struts 1.1; the complete application can be put in one ear file. The access to the webbclients is controlled by a form-based authentication with a security-domain configured via login-config.xml: application-policy name = GatewayRealm authentication login-module code =org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required module-option name =dsJndiNamejava:/CloudscapeDS/module-option module-option name = principalsQueryselect PASSWORD from PERSON p where p.USERNAME=? and p.LOCKED=false/module-option module-option name = rolesQueryselect r.ROLE,'Roles' from PERSON_ROLE_ROLE_PERSON_ROLE r, PERSON p where p.USERNAME=? AND p.PERSONNO=r.PERSON/module-option /login-module /authentication /application-policy This works all very well. Now we would like to use declarative Security for our EJBs (with the same realm). But we don't know how to use the principal (we have in each request of my webclients) to authenticate against the ejb container. Do we have to build our own Hashtable h with ... h.put(javax.naming.CONTEXT.SECURITY_PRINCIPAL , request.getUserPrincipal()); ... ctx = new InitialContext(h) and saving this ctx in a session attribute of my webclient to use for further lookups? If this is the way, we become trouble with our implementation of the ServiceLocator pattern. Our ServiceLocator class is a Singelton and results the home interfaces of our EJBs. The InitialContext is stored once in an instance variable. Could anyone give us a short description of the right way or send us an url of an example app? Thank you Sven --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to use a principal from a webapp for securing ejb calls
I may be going out on a limb here, but I think Sven's question may be along the same lines of what I have been wondering about, which is: If you do not lock down the servlets (i.e. no security) but you want to collect username and credential information in the web layer, how do you create and propagate the security context to the EJB layer from there ? //Nicholas Scott M Stark [EMAIL PROTECTED] wrote: You use the bundled Tomcat or Jetty containers and use the same security-domainvalue in the ejbs as the web app and do nothing else.Scott StarkChief Technology OfficerJBoss Group, LLC- Original Message - From: "Scheil, Sven" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Friday, January 10, 2003 5:41 AMSubject: [JBoss-user] How to use a principal from a webapp for securing ejb calls We have developed a multitier app (cmdline clients, webclients, ejb business layer and db layer). Running all on a jboss 3.0.3; the webclients are developed using struts 1.1; the complete application can be put in one ear file. The access to the webbclients is controlled by a form-based authentication with a security-domain configured via login-config.xml: ="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required" ="dsJndiName"java:/CloudscapeDS select PASSWORD from PERSON p where p.USERNAME=? and p.LOCKED=false select r.ROLE,'Roles' from PERSON_ROLE_ROLE_PERSON_ROLE r, PERSON p where p.USERNAME=? AND p.PERSONNO=r.PERSON This works all very well. Now we would like to use declarative Security for our EJBs (with the same realm). But we don't know how to use the principal (we have in each request of my webclients) to authenticate against the ejb container. Do we have to build our own Hashtable h with ... h.put(javax.naming.CONTEXT.SECURITY_PRINCIPAL , request.getUserPrincipal()); ... ctx = new InitialContext(h) and saving this ctx in a session attribute of my webclient to use for further lookups? If this is the way, we become trouble with our implementation of the ServiceLocator pattern. Our ServiceLocator class is a Singelton and results the home interfaces of our EJBs. The InitialContext is stored once in an instance variable. Could anyone give us a short description of the right way or send us an url of an example app? Thank you Sven---This SF.NET email is sponsored by:SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!http://www.vasoftware.com___JBoss-user mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-userNicholas WhiteheadHome: (973) 377 9335Cell: (201) 615 2716Work: (212) 622 5639[EMAIL PROTECTED]
Re: [JBoss-user] Store large pdfs with JBoss
On Saturday 04 January 2003 04:48, Pete Beck wrote: I agree with Sun 100% on this. Using the file-system is bad news for maintenance, scalability and as the article says security. I've seen the chaos that using the filesystem can cause in clustered environments and I would say avoid it if you can. Of course, the problem is Oracle seems to have totally pathetic support for large objects from Java. However I am using Postgres and it works like a charm. Postgres is more natural, yes. However, Oracle's support is still good. You just need to use a combination of the JDBC LOB support with the DBMS_LOB package. We use a combination of stored procedures that manipulate the LOB using DBMS_LOB.getlength(), DBMS_LOB.read(), DBMS_LOB.write(), and DBMS_LOB.copy(), in combination with the getBlob(), select, and select for update operations. Postgres is pretty much the same, but supports most of these operations directly from the JDBC driver, instead of through a database package for LOB operations. The only difference I can see from a usability standpoint, is Postgres lacks a copy operation. You would have to write a stored procedure in C I would imagine, to obtain this goal in Postgres. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Why PHP why not JSP?
On Thursday 09 January 2003 21:53, Sundaram Ramasamy wrote: Today I visited jboss.org web site, it looks different (with php . I don't know much about php. I think it is one of the most unprofessional and abnoxious sites I've seen in a long time. I preferred the old site much better. They need to get rid of offensive and loud colors, blinking icons and scale WY back the content. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error deploying custom scheduler service
Your target Schedulable is causing an OutOfMemoryError in its ctor I would say. The msg says it find the ctor, OR create the instance. The create is failing due to the OutOfMemoryError. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Meyer-Willner, Bernhard [EMAIL PROTECTED] To: JBoss-User (E-Mail) [EMAIL PROTECTED] Sent: Friday, January 10, 2003 10:14 AM Subject: [JBoss-user] Error deploying custom scheduler service Hi, I created a custom implementation of the Schedulable interface. I tried deploying it as a SAR with the Schedulable implementation included or a scheduler-service.xml with the implemention in the JBoss lib directory. scheduler-plugin.jar is in lib, too. Either way I'm getting the stacktrace below. Since I closely followed the instructions in the JBoss 3.0.4. paid-docs PDF book I can't imagine what I'm doing wrong. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Why PHP why not JSP?
I think it is one of the most unprofessional and abnoxious sites I've seen in a long time. Unprofessional and abnoxious (guess that's like obnoxious) works for me but that achievement notwithstanding the project would be better off with a fully buzzword compliant J2EE application front to back. That necessarily would include the use of JSP technologies. The decision to use PHP was a vote of no confidence in JSP and given the firestorm of controversy this has generated among the ten people who care it should have been avoided. - Original Message - From: JD Dubchak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 10, 2003 5:50 PM Subject: Re: [JBoss-user] Why PHP why not JSP? On Thursday 09 January 2003 21:53, Sundaram Ramasamy wrote: Today I visited jboss.org web site, it looks different (with php . I don't know much about php. I think it is one of the most unprofessional and abnoxious sites I've seen in a long time. I preferred the old site much better. They need to get rid of offensive and loud colors, blinking icons and scale WY back the content. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Store large pdfs with JBoss
I've not read Sun's argument, but I've never understood the rationale for storing large invariant data in an RDBMS. Or course the RDBMS vendor wants you to do it - they want the whole world stored under their product. And the DASD vendors love it. But what does it buy you, the user who implements such a solution? Say in the example below you have 20 GB of PDFs. Every time you do a full database backup, you are going to be backing up that same, **unchanged** 20 GB of PDFs! What is the point in that? Just store a reference to a location in the filesystem, and keep the binary files in the filesystem. You can back up your filesystem as easily as you can back up your Oracle logs. - Original Message - From: Daniel Bruce Lynes [EMAIL PROTECTED] To: JBoss Users [EMAIL PROTECTED] Sent: Friday, January 10, 2003 8:03 PM Subject: Re: [JBoss-user] Store large pdfs with JBoss On Saturday 04 January 2003 04:48, Pete Beck wrote: I agree with Sun 100% on this. Using the file-system is bad news for maintenance, scalability and as the article says security. I've seen the chaos that using the filesystem can cause in clustered environments and I would say avoid it if you can. Of course, the problem is Oracle seems to have totally pathetic support for large objects from Java. However I am using Postgres and it works like a charm. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user