[JBoss-user] integrated tomcat question
Hi all, I have an ear file which contains a web-application (war file: testapp.war). If I deploy this war file, it can be reached at: http://myhost.com/testapp How can I configure JBoss to open my webapp at this url: http://myhost.com But, because during development all my (relative) links look like this: /testapp/myjsp.jsp So I want to keep the /testweb prefix. Can this be achieved? Thanks, Regards, Harm de Laat Informatiefabriek The Netherlands
Re: [JBoss-user] deployment question
I just need to call a method on a session bean packaged in EAR B, from EAR A. In EAR A i have a web application which needs to call a business method on a Session bean packaged in EAR B (which is packaged in a jar file inside the ear). By the way, congratulations on JBoss Nukes. I just took a look at it. And it looks great! Regards, Harm de Laat Informatiefabriek The Netherlands Julien Viet <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10-03-2004 21:21 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] deployment question what kind of access ? On Mar 10, 2004, at 3:08 PM, [EMAIL PROTECTED] wrote: > > Hi all, > > I have two ear files. > > In EAR A i need to access a sessionbean which is in EAR B. > > How can this be achieved? > > Thanks in advance, > > Regards, > > Harm de Laat > Informatiefabriek > The Netherlands
[JBoss-user] deployment question
Hi all, I have two ear files. In EAR A i need to access a sessionbean which is in EAR B. How can this be achieved? Thanks in advance, Regards, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] classloaders & webapplication inside ear
Hi all, I think I have some sort of problem with classloaders in my application. I have a EAR file which contains an EJB jar file. It also contains 2 WAR archives. Both WAR archives are STRUTS applications. My struts applications use a different ApplicationResource.properties file for external strings. Unfortunatly somehow the two WAR archives use the SAME ApplicationResources.properties file eventhough both WAR archives contain a different ApplicationResources.properties file. Can this behaviour be explained? (Maybe I'm doing something wrong regarding classloaders?). Thanks in advance, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] classloading & packaging
Hi all, I have a question regarding to classloading and packaging in JBoss. I have a EJB jar file which contains several (service) beans (stateless session beans) and some entities (entity beans). I also have about 4 war archives which all use the same the EJB's in the previously mentioned EJB jar file. I want to be able to redeploy one of my WAR archives without having to redeploy my EJB jar file. Also, if a bug exists in my EJB jar file, and I have to redeploy my EJB jar file, is it then possible to re-deploy the EJB jar file without having to redeploy my WAR archives? I was thinking about an exploded EAR file which contains all previously mentioned archives? Any ideas on this? Regards, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] JBossManagedConnectionPool MBean
Hi all, The (for-pay) documentation speaks about the JBossManagedConnectionPool MBean. It has several connection attributes such as MinSize, MaxSize, BlockingTimeOutMillis, etc... In which deployment descriptor should these values be set? I have looked into ra.xml and the *.-ds.xml files, but none of them seem to have these attributes... Thank you, Regards, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] jca connector
Hi all, I'm trying to develop a JCA connector for Lotus Domino which can be used in JBoss. (Which will be public available). My first goal is to develop the connector without CCI support. I just want JBoss to pool my connections. Lotus delivers a (native) library which can be used to connect to Domino using Java. To set up a simple connection to Domino you could code something like this: import lotus.domino.Session; import lotus.domino.NotesSession; Session s = new NotesSession("myhostname", "myusername", "mypassword"); This Session object is a what I believe is the equivalent of Connection instance. My question however is. Where in the JCA classes / interfaces should I actualy create this Session object. And how can I obtain it then from my beans? I'm realy stuck on this. As I cannot find any simple example which more or less tries to do the same. Maybe you guys can help? Regards, Harm de Laat Informatiefabriek The Netherlands
RE: [JBoss-user] Lotus Domino Connection Pooling in JBoss
Thanks for the URL. Great. Now I have implemented all required classes and packed them into a RAR file. I have this in ra.xml: Domino Connector Informatiefabriek 0.1 Lotus Domino 6.0.3 nl.informatiefabriek.domino.jca.adapter.DominoManagedConnectionFactoryImpl javax.resource.cci.ConnectionFactory nl.informatiefabriek.domino.jca.adapter.DominoConnectionFactoryImpl javax.resource.cci.Connection nl.informatiefabriek.domino.jca.adapter.DominoConnectionImpl NoTransaction false Where / How can I specify the JNDI name for my ConnectionFactory? So that I can test it, to see if the connector works. I have tried the JNDIView MBean but I don't see any entries regarding the new connector. I'm sorry if this is all to basic. But, I have bought the JBoss docs and cannot find anything mentioned about it... Also there are little resources available on the web. (As well as books). Regards, Harm de Laat Informatiefabriek The Netherlands Adrian Brock <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 02-02-2004 15:06 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject RE: [JBoss-user] Lotus Domino Connection Pooling in JBoss http://developers.sun.com/sw/building/codesamples/integration_jca.html Regards, Adrian On Mon, 2004-02-02 at 13:55, [EMAIL PROTECTED] wrote: > Thanks for your reply... > > I have searched the net for days looking for a simple JCA connector > example. I even read the specification (490 pages!). > Unfortunatly i ended empty handed... > I need a simple example to get started... > > Does somebody have a simple example of a JCA adapter? > > Many thanks, > > Regards, > > Harm de Laat > Informatiefabriek > The Netherlands > > > > > "Srinivas Malladi" > <[EMAIL PROTECTED]> > Sent by: > [EMAIL PROTECTED] > > 30-01-2004 23:44 > Please respond to > [EMAIL PROTECTED] > To > <[EMAIL PROTECTED]> > cc > > Subject > RE: [JBoss-user] > Lotus Domino > Connection > Pooling in JBoss > > > > > Write JCA adaptor. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, January 29, 2004 7:46 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Lotus Domino Connection Pooling in JBoss > > > Hi all, > > I'm thinking of implementing a connection pool for Lotus Domino for > JBoss 3.2.3. > > This way my EJB's can ask for a connection from the pool and do some > manipulation of the Lotus Domino data. > > Unfortunatly I'm not sure in what kind of object to build the > connection pool. > JBoss has connection pools for other kind of databases. > > What classes should I implement to create such a connection pool in > JBoss? > Or are where can I look into JBoss source code to see what I should be > doing? > > Thanks in advance, > > Regards, > > Harm de Laat > Informatiefabriek > The Netherlands > -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Lotus Domino Connection Pooling in JBoss
Thanks for your reply... I have searched the net for days looking for a simple JCA connector example. I even read the specification (490 pages!). Unfortunatly i ended empty handed... I need a simple example to get started... Does somebody have a simple example of a JCA adapter? Many thanks, Regards, Harm de Laat Informatiefabriek The Netherlands "Srinivas Malladi" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 30-01-2004 23:44 Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] Lotus Domino Connection Pooling in JBoss Write JCA adaptor. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 29, 2004 7:46 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Lotus Domino Connection Pooling in JBoss Hi all, I'm thinking of implementing a connection pool for Lotus Domino for JBoss 3.2.3. This way my EJB's can ask for a connection from the pool and do some manipulation of the Lotus Domino data. Unfortunatly I'm not sure in what kind of object to build the connection pool. JBoss has connection pools for other kind of databases. What classes should I implement to create such a connection pool in JBoss? Or are where can I look into JBoss source code to see what I should be doing? Thanks in advance, Regards, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] Lotus Domino Connection Pooling in JBoss
Hi all, I'm thinking of implementing a connection pool for Lotus Domino for JBoss 3.2.3. This way my EJB's can ask for a connection from the pool and do some manipulation of the Lotus Domino data. Unfortunatly I'm not sure in what kind of object to build the connection pool. JBoss has connection pools for other kind of databases. What classes should I implement to create such a connection pool in JBoss? Or are where can I look into JBoss source code to see what I should be doing? Thanks in advance, Regards, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] Lotus Domino Connection Pooling in JBoss
Hi all, I'm thinking of implementing a connection pool for Lotus Domino for JBoss 3.2.3. This way my EJB's can ask for a connection from the pool and do some manipulation of the Lotus Domino data. Unfortunatly I'm not sure in what kind of object to build the connection pool. JBoss has connection pools for other kind of databases. What classes should I implement to create such a connection pool in JBoss? Or are where can I look into JBoss source code to see what I should be doing? Thanks in advance, Regards, Harm de Laat Informatiefabriek The Netherlands
[JBoss-user] Lotus Domino Connection Pooling in JBoss
Hi all, I'm thinking of implementing a connection pool for Lotus Domino for JBoss 3.2.3. This way my EJB's can ask for a connection from the pool and do some manipulation of the Lotus Domino data. Unfortunatly I'm not sure in what kind of object to build the connection pool. JBoss has connection pools for other kind of databases. What classes should I implement to create such a connection pool in JBoss? Or are where can I look into JBoss source code to see what I should be doing? Thanks in advance, Regards, Harm de Laat Informatiefabriek The Netherlands
Re: [JBoss-user] Datasource mysql
Just drop a file (mysql-ds.xml) into your deployment directory with the following contents: mysqlDS jdbc:mysql://yourhost:3306/adatabase org.gjt.mm.mysql.Driver yourusername yourpassword That's it! Good luck! Regards, Harm de Laat Informatiefabriek The Netherlands Ian Hamilton <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 27-01-2004 10:55 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Datasource mysql I have ann existing webapp (JSF/mysql) - NO J2EE stuff yet - running on tomcat. I want to 'port' it to run on JBoss/Tomcat. ( I will then start using EJB's and CMP. I have got so far but I can't connect to my database. Can someone help me? I don't know where to begin as most of the documentation is for setting up managed persistence and at the moment I just want to replicate my webapps behaviour in JBoss. Thanks in advance, Ian = Krabi Language School,Panurat Rd,Paknam,Muang Krabi,81000,Thailand Krabi,81000,Thailand Tel. 09-8734310 BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Design advice
Hi all, We are starting to migrate our datamodel from Lotus Domino databases to JBoss. At this time we are looking into using Entity Beans (CMP 2.0) for this purpose. But we are also looking into Hibernate. Our underlying database is MySQL. Especially, we might need inheritance mapping which probably is best supported by Hibernate. But, we also need transactions, cache, security, etc... (This is probably best supported by CMP). Which technology would you recommend for us to use? Regards, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.2.4 ...
What is buggy about 3.2.3? Regards, Harm de Laat Informatiefabriek The Netherlands Rafal Kedziorski <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 12/12/2003 11:53 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] JBoss 3.2.4 ... At 11:31 12.12.2003, Thomas Hentschel Lund wrote: >hehe > >3.2.3 was just released 1-2 days ago. Talk about being impatient ;-) no, but I will not work with buggy JBoss 3.2.3. :) JBoss 3.2.2 was released on 1st december (I'm looking on ftp for download), but I found some bugs, which is impossible for me to switch to this version. /rk >/Thomas > >fre, 2003-12-12 kl. 11:18 skrev Rafal Kedziorski: > > Hi, > > > > when will be JBoss 3.2.4 released? > > > > > > Regards, > > Rafal > > > > > > > > --- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > >--- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >___ >JBoss-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Commit type question
Alexey, Thank you for your reply. Does this mean that it is a bug in JBoss? I'm currently using JBoss 3.2.2. Or do I have to configure my beans in some other way in jboss.xml? Thanks, Harm de Laat Informatiefabriek The Netherlands Alexey Loubyansky <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 12/11/2003 02:28 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] Commit type question Sorry, editted version of my response... If a bean/method has a read-only true in jboss.xml it is not associated with the transaction and is not participating in synchronizaion when the tx commits and remains in the cache. This issue was reported recently and it seems to me Adrian fixed it. AFAIK, the instance will be evicted from the cache at the end of the invocation unless the container is configured with option A. The nuance is that, if you try to access the instance again, in the same transaction it will be RELOADED from the database. > > [EMAIL PROTECTED] wrote: > >> Hi all, >> >> I have an EJB application. In this application some entity beans >> should use commit type 'A' (I own the database). >> And some Entities should use commit type 'B'. (They can be modified >> using the database client, MySQL). >> >> I have the following deployment descriptor (jboss.xml) snippet: >> >> >> Config >> Config >> >> >> >> get* >> true >> >> >> >> >> >> Relation >> Relation >> Standard CMP 2.x EntityBean and >> Cache >> >> >> >> get* >> true >> >> >> >> >> >> In standardjboss.xml I added: >> >> >> Standard CMP 2.x EntityBean and >> Cache >> false >> >> entity-rmi-invoker >> >> false >> false >> >> >> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor >> >> org.jboss.ejb.plugins.LogInterceptor >> org.jboss.ejb.plugins.SecurityInterceptor >> org.jboss.ejb.plugins.TxInterceptorCMT >> > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor >> >> >> org.jboss.ejb.plugins.EntityCreationInterceptor >> >> org.jboss.ejb.plugins.EntityLockInterceptor >> >> org.jboss.ejb.plugins.EntityInstanceInterceptor >> >> >> org.jboss.ejb.plugins.EntityReentranceInterceptor >> >> >> org.jboss.resource.connectionmanager.CachedConnectionInterceptor >> >> >> org.jboss.ejb.plugins.EntitySynchronizationInterceptor >> >> >> org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor >> >> >> org.jboss.ejb.plugins.EntityInstancePool >> >> org.jboss.ejb.plugins.InvalidableEntityInstanceCache >> >> >> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager >> >> >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock >> >> >> >> org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy >> >> >>50 >>100 >>300 >>600 >>400 >> 60 >>1 >>0.75 >> >> >> >> 100 >> >> A >> >> >> I would expect that the Config Entity bean now uses commit type 'B'. >> And the Relation Entity Bean now uses commit type 'A'. >> >> The thruth however is that both entities now use commit type 'A'. >> >> If I modify the Config entity values using the database client >> (mysql), I have to redeploy my application in order to see my changes >> in my EJB application. >> >> Can somebody explain to me what it is that i'm doing wrong? >> >> Thanks you very much, >> >> Harm de Laat >> Informatiefabriek --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Commit type question
Hi all, I have an EJB application. In this application some entity beans should use commit type 'A' (I own the database). And some Entities should use commit type 'B'. (They can be modified using the database client, MySQL). I have the following deployment descriptor (jboss.xml) snippet: Config Config get* true Relation Relation Standard CMP 2.x EntityBean and Cache get* true In standardjboss.xml I added: Standard CMP 2.x EntityBean and Cache false entity-rmi-invoker false false org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor org.jboss.ejb.plugins.LogInterceptor org.jboss.ejb.plugins.SecurityInterceptor org.jboss.ejb.plugins.TxInterceptorCMT org.jboss.ejb.plugins.MetricsInterceptor org.jboss.ejb.plugins.EntityCreationInterceptor org.jboss.ejb.plugins.EntityLockInterceptor org.jboss.ejb.plugins.EntityInstanceInterceptor org.jboss.ejb.plugins.EntityReentranceInterceptor org.jboss.resource.connectionmanager.CachedConnectionInterceptor org.jboss.ejb.plugins.EntitySynchronizationInterceptor org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor org.jboss.ejb.plugins.EntityInstancePool org.jboss.ejb.plugins.InvalidableEntityInstanceCache org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy 50 100 300 600 400 60 1 0.75 100 A I would expect that the Config Entity bean now uses commit type 'B'. And the Relation Entity Bean now uses commit type 'A'. The thruth however is that both entities now use commit type 'A'. If I modify the Config entity values using the database client (mysql), I have to redeploy my application in order to see my changes in my EJB application. Can somebody explain to me what it is that i'm doing wrong? Thanks you very much, Harm de Laat Informatiefabriek --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ejb calls interceptor
Have you looked at the web-console app? This already provides a view on how many times methods are invoked... If you need more then just that, you can always write your own Interceptor which you could add to the Interceptor stack to log this kind of information. Regards, Harm de Laat Informatiefabriek The Netherlands Ionel GARDAIS <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/13/2003 10:32 AM Please respond to [EMAIL PROTECTED] To jboss-user <[EMAIL PROTECTED]> cc Subject [JBoss-user] ejb calls interceptor Hi, Is there a way to catch the calls that are made to an EJB (fields getters/setters, finders, selectors). My goal is to provide some statistical informations (how many times a method have been called, which methods should be optimized ...) through an MBean StatService thanks, = -- Regards, Ionel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] optimize question
Yes 'B' is the default. Regards, Harm de Laat Informatiefabriek The Netherlands "Olve S. Hansen" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/13/2003 10:32 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] optimize question My mistake, I meant A but said B. A double check of my jboss.xml surely states that we are running commit-option A. But I was really convinced I put B in.. But it is B which is the default option, right? Wellwell, the misunderstanding is cleared... --Olve --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] optimize question
Hi all, I have modifieed my beans as follows in the deployment descriptor (jboss.xml): Relation Relation get* true I also switched to commit option 'A', because the container is the only application modifying the database data: CMP 2.x and Cache A I turned on DEBUG info on (org.jboss.ejb.plugins.cmp) using the log4j.xml file, so I can see the SQL generated: Then I my application. On each invocation of my methods I still see the following SQL generated: 15:29:08,938 DEBUG [Relation#findByPrimaryKey] Executing SQL: SELECT relationId FROM Relation WHERE relationId=? 15:29:08,942 DEBUG [Relation#findByPrimaryKey] Executing SQL: SELECT relationId FROM Relation WHERE relationId=? 15:29:08,947 DEBUG [Relation#findByPrimaryKey] Executing SQL: SELECT relationId FROM Relation WHERE relationId=? 15:29:08,951 DEBUG [Relation#findByPrimaryKey] Executing SQL: SELECT relationId FROM Relation WHERE relationId=? As you can see this is a finder method which does no database modifying what so ever. So I assumed JBoss could get this from cache. Why is this SQL still required? Thanks a lot, Regards, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
Hi all, I have been following the thread started by Pedro Salazar. jboss.xml: CorrectionFile CorrectionFile True Am I correct in the following assumption: By default this entity bean has a transaction-type of: "Required". When a getter is called, this bean is not locked within a transcation. When a setter is called, this bean is locked within a transaction. Thanks, Regards, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Clueless on transactions
I'm not sure... But once I put an @ejb.transaction="Required" on all setXXX methods of my Entity bean. This made sure that only setters are in the transaction. When looking up values there will we no transaction used... Am I right about this? Regards, Harm de Laat Informatiefabriek The Netherlands Scott M Stark <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/10/2003 07:28 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] Clueless on transactions There is no such thing as locking of web pages. A web page initiates a request that spans a workflow through any number of ejbs/jca resources and the ejb contract does say there should only be one transaction active in a given ejb. You can control the scope of the transactional lock using transactional tags like RequiresNew and read-only fields, but you have to draw out the workflows to see where the web pages are going to be conflicting. If there is no shared data there is no lock contention. We cover this is the advanced training. Brian McSweeney wrote: > Hi Scott, > Thanks for the help. So does this mean you would advocate the use of > transaction="required" everywhere as long as there are no transacted > resources? > > My application is a web application and my worry is this: > > Imagine if you are displaying a large amount of data that can possibly > change to users, for example let's say auctions on ebay. If the > underlying session façade method which calls something like > "getAuctionsForCategory()" has transaction="required", then does this > not effectively serialize your web application? Ie, every web page > request will have to get a lock on the > database. Am I wrong here? > > Thanks for the help, > Brian --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] does it worths creating entity beans for ...
I'm not sure... But if I remember correct Sasha told me (JBoss Advanced Training) that that should be possible in a JBoss cluster. Maybe Sasha can shed some light on the issue...? Regards, Harm de Laat Informatiefabriek The Netherlands Pedro Salazar <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/07/2003 01:25 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] does it worths creating entity beans for ... On Fri, 2003-11-07 at 11:54, [EMAIL PROTECTED] wrote: > I think your are better of using a Statefull Session bean for this > purpose. I posted already a message asking about the stateful session beans as possibility before I saw your message, but I put 2 questions about using them: 1-I should work with JBOSS in cluster. So, these session beans must be available on both sides. If one JBOSS instance goes down I must have it on on any other instance. Stateful beans guarantee this? 2-Can I make a global search like counting the active connections for a user or the total sessions on system? Can I do this? regards, Pedro Salazar. -- -PS --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] 'On Java' AOP example
Hi all, I have been playing around with JBoss AOP framework. I encountered the following problem when trying to get the 'On Java' code running: Method method = MethodInvocation.getMethod(invocation); It seems there is no static method 'getMethod()' in the MethodInvocation class. Is this changed? And how should I alter the example to get the code running? Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] does it worths creating entity beans for ...
I think your are better of using a Statefull Session bean for this purpose. Regards, Harm de Laat Informatiefabriek The Netherlands Pedro Salazar <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/07/2003 12:42 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] does it worths creating entity beans for ... Greetings, I would like to ask you if it worths create an entity bean for record the id of a connection and delete it when user leaves? The entity bean would have only the id of the connection, the user id and the timestamp of the connection start. Does it worths create an entity bean for that or is better create a stateless bean that would call a stored procedure for create and delete records. I think there is no need of cache since just that user would delete the record that it created. But, I also don't know if I create an entity bean, it goes automatically to the database or it remains a few time in memory before it goes stored in database. I ask this because maybe in future I would like to monitor the user connections in "real time" (? maybe, maybe not) or how many connections are active. In this case, I don't know if an entity bean would make sense here for caching information or it stills doesn't make sense because for these new requirements a stateless bean making JDBC connections invoking stored procedures... what is your opinion? Pedro Salazar. -- -PS --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBOSS3.2.2 FAILED TO START ( SARDeployer problem ??)
It seems that log4j.jar is not in the classpath: Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category Regards, Harm de Laat Informatiefabriek The Netherlands praveen kushwaha <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/07/2003 05:36 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] JBOSS3.2.2 FAILED TO START ( SARDeployer problem ??) Note: forwarded message attached. Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more. Download now. - Message from "MAILER-DAEMON" <[EMAIL PROTECTED]> on 06 Nov 2003 18:17:04 + - To: [EMAIL PROTECTED] Subject: Delivery problems: [JBoss-user] (no subject) Warning, delivery failure! This is a status message indicating that a message could not be delivered to 1 or more recipients. Original message subject: [JBoss-user] (no subject) Date received: 06-Nov-2003 18:16:54 + Recipients and delivery history [EMAIL PROTECTED] Transcript of session follows --- 06-Nov-2003 18:16:54 + Received via SMTP from FIREWALL.PINDAR.COM 06-Nov-2003 18:16:56 + The mailbox for user m.prabhu is full Reporting-MTA: dns;mail-newlands.pindar.com. Final-Recipient: rfc822;[EMAIL PROTECTED] Action: failed Status: 5.0.0 (permanent failure) - Message from praveen kushwaha <[EMAIL PROTECTED]> on Thu, 6 Nov 2003 16:14:02 + (GMT) - To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: [JBoss-user] (no subject) hello everybody i m used and deployed JBoss3.2.2RC4 with jdk1.4.2_01 but now i am facing an error i dont know why this is coming again and again i had downloaded new jboss3.2.2 after deleting perious one but the problem is same iF anybody can give me solution ?? Welcome ERROR DETAILS= 21:00:29,406 INFO [Server] Core system initialized 21:00:29,421 INFO [MainDeployer] Starting deployment of package: file:/D:/docs11i/jboss-3.2.2/server/default/conf/jboss-service.xml 21:00:31,421 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException 21:00:31,437 ERROR [MainDeployer] could not create deployment: file:/D:/docs11i/jboss-3.2.2/server/default/conf/jboss-service.xml org.jboss.deployment.DeploymentException: create operation failed for package file:/D:/docs11i/jboss-3.2.2/server/default/conf/jboss- service.xml; - nested throwable: (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowabl eException)) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291) at org.jboss.Main.boot(Main.java:150) at org.jboss.Main$1.run(Main.java:388) at java.lang.Thread.run(Thread.java:534) Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143) at org.jboss.system.ServiceController.install(ServiceController.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183) ... 17 more Caused by: java.lang.reflect.UndeclaredT
Re: [JBoss-user] relate 2 entities without a common key (WAS Re: [JBoss-user] relationship 1-* with foreign key)
I will give you an example of an 1 - N relation using XDoclet tags. Using this code you can easisly figure out what to put in your code: Advertisement --1N-- Correction AdvertisementBean.java: /** * @ejb.interface-method * @ejb.relation * name = "Advertisement-Correction" * role-name = "AdvertisementHasCorrections" * cascade-delete = "no" * @ejb.value-object * aggregate = "nl.informatiefabriek.om.correction.value.CorrectionValue" * aggregate-name = "AllCorrection" * members = "nl.informatiefabriek.om.correction.interfaces.CorrectionLocal" * members-name = "Corrections" * relation = "external" * type = "Collection" * @jboss.relation-mapping style="foreign-key" */ public abstract Collection getCorrections(); CorrectionBean.java: /** * @ejb.interface-method * @ejb.relation * name = "Advertisement-Correction" * role-name = "CorrectionBelongsToAdvertisement" * cascade-delete = "yes" * @jboss.relation-mapping style = "foreign-key" * @jboss.relation * fk-column="advertisement_fk" * related-pk-field="advertisementId" */ public abstract AdvertisementLocal getAdvertisement(); If you don't need relationships between value objects you can just leave out he @ejb.value-object tags. Regards, Harm de Laat Informatiefabriek The Netherlands Pedro Salazar <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/06/2003 11:08 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] relate 2 entities without a common key (WAS Re: [JBoss-user] relationship 1-* with foreign key) Greetings, -I have 2 entities mapped from 2 database tables, ACCESS_PERMISSION and ACCESS_SCHEDULE. -the "relation" between them is, ACCESS_PERMISSION *has* several ACCESS_SCHEDULE, and a 1-N -*they don't share a common key* ACCESS_PERMISSION - SID_ID SERVICE_ID A1 A2 ... CONSTRAINS: UNIQUE (SID_ID,SERVICE_ID) ACCESS_SCHEDULE --- SID_ID SERVICE_ID TIME_ACCESS_START B1 B2 CONSTRAINTS: UNIQUE(SID_ID,SERVICE_ID,TIME_ACCESS_START) Can I define a relationship between them? I tried to use a relation just with 2 attributes of table ACCESS_SCHEDULE and not using the 3rd one (TIME_ACCESS_START) but JBOSS shows me that error: " [ObjectName: jboss.j2ee:jndiName=ejb/AccessScheduleLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Mappings were not provided for all fields: unmaped fields=[timeAccessStart] in role=schedules_BELONG_TO_access_permission, ObjectName: jboss.j2ee:jndiName=ejb/AccessPermissionLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Mappings were not provided for all fields: unmaped fields=[timeAccessStart] in role=schedules_BELONG_TO_access_permission] " Can I do this in another way? What is normal to do, a "findByXX()" method in ACCESS_SCHEDULE and a interface method on ACCESS_PERMISSION? But in that case, there must exist some programatic code and I don't know how can I synchronize access to that methods? To complete, I put in below also the xdoclet code of my relationship: " /** * @ejb.relation * name="access_permission_TO__access_schedule" * role-name="access_permission_HAS_schedules" * cascade-delete="no" * target-ejb="AccessSchedule" * target-role-name="schedules_BELONG_TO_access_permission" * target-cascade-delete="yes" * @ejb.interface-method * view-type="local" * @ejb.transaction * type="Supports" * @jboss.relation * related-pk-field="sidId" * fk-column="sidId" * @jboss.relation * related-pk-field="primitiveId" * fk-column="primitiveId" * @jboss.target-relation * related-pk-field="sidId" * fk-column="sidId" * @jboss.target-relation * related-pk-field="primitiveId" * fk-column="primitiveId" * @jboss.relation-mapping * style="relation-table" * @jboss.relation-table * table-name="uif_access_permission" */ public abstract java.util.Collection getSchedules(); " regards, Pedro Salazar -- -PS
RE: [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL?
ORDER BY works in JBossQL. It is also in the EJB 2.1 spec. But, I believe JBoss 3.2.x currently supports 2.0. Regards, Harm de Laat Informatiefabriek The Netherlands "Stephane Nicoll" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/06/2003 09:53 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL? I am not sure ORDER BY is allowed (what about caching then?) I know EJB QL does not allow that. Maybe JBoss QL. Regards, Stephane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:24 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL? Doesn't 'ORDER BY' help you? "Darren Hartford" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/05/2003 04:10 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL? Hey all, I got an interesting problem that I should think some of you may have already come across in some fashion or another. I want to do a search to return a collection of objects, but it needs to be very specific as follows: Example table: batchnumber | sequence | receive_date | town | item | status with example values: "1",1,"11/5/2003","MONTREAL","widget", "INVENTORY" "1",2,"11/5/2003","MONTREAL","widget", "FRONT" "1",3,"11/5/2003","MONTREAL","widget", "INVENTORY" "2",1,"11/5/2003","MONTREAL","foo", "FRONT" "3",1,"11/5/2003","MONTREAL","bar", "FRONT" "3",2,"11/5/2003","MONTREAL","bar", "SOLD" "4",1,"11/5/2003","TORONTO","bar", "FRONT" "5",1,"11/6/2003","MONTREAL","bar", "INVENTORY" What I would like is the **last sequence-per-batchnumber** for results based on a search. example psuedo-query: SELECT OBJECT(o) WHERE ((o.town = "MONTREAL") AND (o.receive_date = "11/5/2003")) would return: "1",3,"11/5/2003","MONTREAL","widget", "INVENTORY" "2",1,"11/5/2003","MONTREAL","foo", "FRONT" "3",2,"11/5/2003","MONTREAL","bar", "SOLD" And another psuedo-query: SELECT OBJECT(o) WHERE (o.item = "bar") would return: "3",2,"11/5/2003","MONTREAL","bar", "SOLD" "4",1,"11/5/2003","TORONTO","bar", "FRONT" "5",1,"11/6/2003","MONTREAL","bar", "INVENTORY" Based on JBoss 3.2.2 and Mysql 3.23, could EJB-QL, JBossQL, or some type of declared SQL be able to solve this? An example pretty please! Thanks everyone! -D --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] AOP framework & documentation
Dear JBoss team, Is there a printable version of the AOP documentation? I have bought the yearly subscription but cannot find anything related to the AOP framework... Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL?
Doesn't 'ORDER BY' help you? "Darren Hartford" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/05/2003 04:10 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL? Hey all, I got an interesting problem that I should think some of you may have already come across in some fashion or another. I want to do a search to return a collection of objects, but it needs to be very specific as follows: Example table: batchnumber | sequence | receive_date | town | item | status with example values: "1",1,"11/5/2003","MONTREAL","widget", "INVENTORY" "1",2,"11/5/2003","MONTREAL","widget", "FRONT" "1",3,"11/5/2003","MONTREAL","widget", "INVENTORY" "2",1,"11/5/2003","MONTREAL","foo", "FRONT" "3",1,"11/5/2003","MONTREAL","bar", "FRONT" "3",2,"11/5/2003","MONTREAL","bar", "SOLD" "4",1,"11/5/2003","TORONTO","bar", "FRONT" "5",1,"11/6/2003","MONTREAL","bar", "INVENTORY" What I would like is the **last sequence-per-batchnumber** for results based on a search. example psuedo-query: SELECT OBJECT(o) WHERE ((o.town = "MONTREAL") AND (o.receive_date = "11/5/2003")) would return: "1",3,"11/5/2003","MONTREAL","widget", "INVENTORY" "2",1,"11/5/2003","MONTREAL","foo", "FRONT" "3",2,"11/5/2003","MONTREAL","bar", "SOLD" And another psuedo-query: SELECT OBJECT(o) WHERE (o.item = "bar") would return: "3",2,"11/5/2003","MONTREAL","bar", "SOLD" "4",1,"11/5/2003","TORONTO","bar", "FRONT" "5",1,"11/6/2003","MONTREAL","bar", "INVENTORY" Based on JBoss 3.2.2 and Mysql 3.23, could EJB-QL, JBossQL, or some type of declared SQL be able to solve this? An example pretty please! Thanks everyone! -D --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Application configuration
Not sure if this will work for you... But I have an entity bean which contains my configuration. I simply lookup the (configuration) entity and get the values that I need in my Session bean. This might work for you aswell... Regards, Harm de Laat Informatiefabriek The Netherlands "Giovanni Formenti" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/04/2003 11:00 AM Please respond to [EMAIL PROTECTED] To "Jboss Mailinglist" <[EMAIL PROTECTED]> cc Subject [JBoss-user] Application configuration Hallo! I'm developing an application that have a Session Bean that execute some operations on a db. I'd like to write some configuration elements in a xml files and load them at startup (when JBoss is started) and put them in a storage class (simply a javabean). The Session EJB must access this class and read the config infos. Can someone give me some idea who to do this?! Thanx Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] using mail datasource
Yes you can use it for this purpose: InitialContext ic = new InitialContext(); Session session = null; session = (Session) ic.lookup(JNDINames.MAIL_SESSION); /* create the session */ javax.mail.Message msg = new MimeMessage(session); Regards, Harm de Laat Informatiefabriek The Netherlands [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 11/04/2003 10:33 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] using mail datasource Hallo, for what I can use datasource defined in mail-service.xml? Can I use it for sending mail or I must send mail by another way? I tried to use it as : Context initCtx = new InitialContext(); session = (Session)initCtx.lookup("java:/Mail"); mailMsg = new MimeMessage(session); ... Transport transport = session.getTransport(); transport.sendMessage(mailMsg, addresses); But it does not work. It is not possible to use it for sending or I have some mistake? ... Thanks, Jiri --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss Dynamic QL
ainDeployer.create(MainDeployer.java:768) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) What am I doing wrong here? I can't find any more examples neither in the 'pay' documentation or on the net... Thanks a lot, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss-Tomcat 3.2.x - Petstore application
I deployed the xpetstore application (which can be found on sourceforge) in JBoss without any trouble. Regards, Harm de Laat Informatiefabriek The Netherlands "ARUN PRASAD" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/31/2003 11:45 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Jboss-Tomcat 3.2.x - Petstore application Anyone got a successful deployment ? regards Arun DISCLAIMER*** Information contained and transmitted by this e-mail is confidential and proprietary to Tata Steel Ltd. and is intended for use only by the addressee. If you are not the intended recipient , you are notified that any dissemination or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Tata Steel does not enter into any binding agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of Tata Steel. Tata Steel is not responsible for the consequences of any actions taken on the basis of information provided. While this e-mail has been checked for all known viruses the addressee should also scan for viruses. To know more about Tata Steel please visit www.tatasteel.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMX - hide attributes from view
You could just declare the getters in your interface(no setters). This would make your JMX attribute read-only... Regards, Harm de Laat Informatiefabriek The Netherlands [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/30/2003 10:39 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] JMX - hide attributes from view Hi, is there a possibility to hide attributes from the JMX-webconsole.view? I habe a sub-class of the Timer-MBean and only some of the methods should be edidable. thanks, Juraj --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] native JSP debugging
Hi all, I would like to make use of native JSP debugging (JSR-045) I understand that tomcat 4.x does not support native debugging. I read that Tomcat 5.x does. Is it possible to run JBoss 3.2.2 with Tomcat 5.x? Or is there an existing bundle for this? Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MBean persistence
Hi all, I have a few standard MBeans which have some jmx-managed attributes. I would like to make these attributes persistent. Where can I find some info on how to do this? Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Quick JDBC question.
You haven't closed your resultset... Harm. "Mike Youngstrom" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/09/2003 06:37 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject [JBoss-user] Quick JDBC question. I’m fairly new to JDBC development and JBoss. I have the following code in a stateless session bean. try { boolean exists; prepStmt = conn.prepareStatement(USERNAME_EXISTS); prepStmt.setString(1, username); ResultSet result = prepStmt.executeQuery(); exists = result.next(); result.close(); return exists; } catch (EJBException e) { log.error("Error checking if username exists: ", e); throw new EJBException(e); } finally { try { prepStmt.close(); } catch (Exception e) {/* Do Nothing */} try { conn.close(); } catch (Exception e) {/* Do Nothing */} } Every time I execute the above method I get the following log entry: WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping Any idea what I’m doing to warrant that warning? When I step through the code with a debugger prepStmt.close() is executed with no exception and when conn.close() is executed that warning pops up. prepStmt is the only statement I’m creating with that connection. Anyone have any ideas? Mike +wzf¢+,¦좷o$ ëF÷iÉ®+jd¨º·àzw-²ޯ½4ÓC©zt¨º·>º#yËlI筅ê^¢^Â!j÷³Ä D©®âuæ±êïǬ X«zm§ÿì¢êÜyú+éû.¦+µêì¦I,ºǫ¨¥x%ËI,ºǫ+-²Ê.ǟ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éùb²Û?+-wèþ6è²ˬz
[JBoss-user] JBoss with integrated Tomcat binding to specific IP
Hi all, I have a Redhat Linux machine which has a few IP addresses assigned to it. I have a Apache webserver running on one IP, I want to bind tomcat (bundeld with JBoss) to another IP: Something like this: ++ | A single machine | ++ | 10.1.0.10 (port 80) --> Apache | | 10.1.0.11 (port 80) --> (integrated) Tomcat JBoss | ++ Is this possible? And where can I configure this? I looked in $JBOSS_HOME/server/$myjboss/deploy/ jbossweb-tomcat41.sar/META-INF/jboss-service.xml. I noticed this section: Can I change "localhost" to 10.1.0.11, in order to bind to 10.1.0.11? Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] OS X panther & JBoss
I have been checking Apple's website. I discovered that OSX 10.3 server ships with the JBoss appliction server. Panther Server includes an updated release of Apache, the world’s most popular web server along with Apache Tomcat and Apache Axis for creating powerful web services. With the addition of a new JBoss application server and new application deployment tools, Panther Server is now the easiest way to develop and deploy J2EE applications. How does the JVM perform on OSX? Are there people here who have experience with JBoss on OSX? Any comments on the subject are welcome.. Thanks, Harm de Laat Informatiefabriek The Netherlands +wzf¢+,¦좷o$ ëF÷iÉ®+jd¨º·àzw-²ޯ½4ÓC©zt¨º·>º#yËlI筅ê^¢^Â!j÷³Ä D©®âuæ±êïǬ X«zm§ÿì¢êÜyú+éû.¦+µêì¦I,ºǫ¨¥x%ËI,ºǫ+-²Ê.ǟ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éùb²Û?+-wèþ6è²ˬz
RE: [JBoss-user] MacOS X Server JBoss Management Tool
Is this also an open source initiative by Apple? Or is this tool closed source? "Sacha Labourey" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/09/2003 10:37 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] MacOS X Server JBoss Management Tool Apple. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Hunter Hillegas > Sent: jeudi, 9. octobre 2003 02:23 > To: JBoss User > Subject: [JBoss-user] MacOS X Server JBoss Management Tool > > I see that OS X 10.3 ships with a JBoss Management Tool. > > Anyone know anything about it? > > Who wrote it? Apple? JBossGroup? > > Curious. > > Hunter > > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] scheduler service
Thanks for the quick reply. In which file should I add this? Thanks, Harm. Scott M Stark <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/03/2003 03:03 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] scheduler service An example that invokes the listThreadDump op on the jboss.system:type=ServerInfo mbean: true jboss.system:type=ServerInfo listThreadDump() NOW 1 10 -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: > Hi all, > > Is it possible to call a call a MBean method using a scheduler service? > And if so, where can I find an example to do this? I have looked into the > JBoss (subscription) documentation. > In chapter 10 I only find an example which uses a class which implements a > Schedulable interface > > Thanks, > > Harm de Laat > Informatiefabriek > The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] scheduler service
Hi all, Is it possible to call a call a MBean method using a scheduler service? And if so, where can I find an example to do this? I have looked into the JBoss (subscription) documentation. In chapter 10 I only find an example which uses a class which implements a Schedulable interface Thanks, Harm de Laat Informatiefabriek The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jmx xdoclet example
Hi all, I'm trying to write a MBean. I'm trying to use XDoclet to generate the deployment descriptor and the interface. Unfortunatly I cannot find an example. I was hoping somebody has a example file which I can use to create my own MBean. Thanks a lot. Harm de Laat Informatiefabriek The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Deadlock detected
Hi all, My application uses a few Entity beans. For instance my application has a CorrectionEntityBean. This bean contains a field state. In my ejb-jar.xml I have to following lines: Correction * Required When we do a stress test, which means we change the state field a few hundred times at onces from several different clients I get the following message in my JBoss console: org.jboss.util.deadlock.ApplicationDeadlockException: Application deadlock detected, [EMAIL PROTECTED], bean=Advertisement, id=ADV100, refs=2, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=aphrodite.domain.bongersmedia.nl//2267, BranchQual=], synched=Thread[Thread-6,5,jboss], timeout=5000, queue=[], holder=TransactionImpl:XidImpl [FormatId=257, GlobalId=aphrodite.domain.bongersmedia.nl//2265, BranchQual=], [EMAIL PROTECTED], bean=Relation, id=REL97, refs=3, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=aphrodite.domain.bongersmedia.nl//2265, BranchQual=], synched=null, timeout=5000, queue=[TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257, GlobalId=aphrodite.domain.bongersmedia.nl//2267, BranchQual=] id=0 thread=Thread[Thread-126,5,jboss] queued=true], waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257, GlobalId=aphrodite.domain.bongersmedia.nl//2265, BranchQual=] at org.jboss.util.deadlock.DeadlockDetector.deadlockDetection(DeadlockDetector.java:48) I thought because I'm using the 'Required' attribute each client should wait until some other client has finished it's own transaction. Can somebody tell what's wrong here? Many thanks, Harm de Laat Informatiefabriek The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] question about ejb restrictions
Thank you very much for your help. It was very helpfull. Harm. "Stephane Nicoll" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/01/2003 10:22 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] question about ejb restrictions >The spec prohibits the use of files / native libraries for a reason. >I understand that the usage of a native library can bring down the entire >application server. >Isn't this the same for MBeans? No, see my previous mail. MBean are not running inside the 'J2EE container', that's why. We did that kind of things and it works pretty well. Now, and it will be the same for a standalone application, check that the code which is running inside those MBeans does not take too much CPUs and memory Regards, Stephane "JD Brennan" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/30/2003 11:29 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] question about ejb restrictions One approach would be to use MBeans (Management beans - JMX). Easy to do in JBoss. MBeans can use native code, read/write files. Your EJBs can call into MBeans, which is not expensive when they are all in the same JVM. JD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 1:28 PM To: jboss mailing list Subject: [JBoss-user] question about ejb restrictions Hi all, I have two problems. I would like to create a Message Driven Bean which does some image processing for me. I would like to use JMagick for this purpose. Unfortunatly EJB restricts the usage of native libraries. And ofcourse JMagick is a native library. Can you guys give me some pointers on how to come up with a sollution for this problem? Second of all, I have to handle with files on the filesystem in my application. This is also a restricting in the EJB-spec. Unfortunatly I have to store files to get my application to work. Should it be good practice to store files in a database as blobs? Thanks for all suggestions, Harm de Laat Informatiefabriek The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] question about ejb restrictions
The spec prohibits the use of files / native libraries for a reason. I understand that the usage of a native library can bring down the entire application server. Isn't this the same for MBeans? "JD Brennan" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/30/2003 11:29 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] question about ejb restrictions One approach would be to use MBeans (Management beans - JMX). Easy to do in JBoss. MBeans can use native code, read/write files. Your EJBs can call into MBeans, which is not expensive when they are all in the same JVM. JD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 1:28 PM To: jboss mailing list Subject: [JBoss-user] question about ejb restrictions Hi all, I have two problems. I would like to create a Message Driven Bean which does some image processing for me. I would like to use JMagick for this purpose. Unfortunatly EJB restricts the usage of native libraries. And ofcourse JMagick is a native library. Can you guys give me some pointers on how to come up with a sollution for this problem? Second of all, I have to handle with files on the filesystem in my application. This is also a restricting in the EJB-spec. Unfortunatly I have to store files to get my application to work. Should it be good practice to store files in a database as blobs? Thanks for all suggestions, Harm de Laat Informatiefabriek The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] question about ejb restrictions
Hi all, I have two problems. I would like to create a Message Driven Bean which does some image processing for me. I would like to use JMagick for this purpose. Unfortunatly EJB restricts the usage of native libraries. And ofcourse JMagick is a native library. Can you guys give me some pointers on how to come up with a sollution for this problem? Second of all, I have to handle with files on the filesystem in my application. This is also a restricting in the EJB-spec. Unfortunatly I have to store files to get my application to work. Should it be good practice to store files in a database as blobs? Thanks for all suggestions, Harm de Laat Informatiefabriek The Netherlands --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] mbean question
Hi all, I'm trying to write a basic MBean. This Mean runs a Thread which checks the file system for new files. If a new file is found it should perform some action. My problem however is that whenever I undeploy, or stop the MBean using the jmx-console application, the MBean keeps running. I have no idea what I'm doing wrong here. Below is my code. Could somebody please tell me what it is that I'm doing wrong here? Thanks a lot, Harm de Laat Informatiefabriek The Netherlands package nl.informatiefabriek.jmxlizard; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Vector; import org.jboss.system.ServiceMBeanSupport; /** * @author harm */ public class JBossLizard extends ServiceMBeanSupport implements JBossLizardMBean, Runnable { private Thread lizard; public JBossLizard() { } public String getName() { return "JBossJMXLizard"; } /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { boolean running = true; while (running) { /* wait for interval milliseconds */ sleep(interval); /* do some checking */ File checkDir = new File(absoluteCheckPath); if (!checkDir.exists()) { log.warn( "Directory does not exist: " + checkDir.getAbsolutePath()); sleep(1000 * 5); // we wait for five seconds to avoid a huge system load continue; } if (!checkDir.isDirectory()) { log.warn( "Directory: " + checkDir.getAbsolutePath() + "is not a directory."); sleep(1000 * 5); continue; } /* retrieve the listing */ String[] dirlist1 = checkDir.list(); for (int i = 0; i < dirlist1.length; i++) { /* don't touch hidden files */ if (dirlist1[i].startsWith(".")) { // System.out.println("Hidden file... Leaving it untouched: " + dirlist1[i]); break; } /* get file extension */ int index = dirlist1[i].lastIndexOf('.'); String checkFileExtension = dirlist1[i] .substring(index + 1, dirlist1[i].length()) .toLowerCase(); System.out.println( "File extension is: " + checkFileExtension); /* see if it is a file we should process */ if (checkFileExtension .equals(this .getFileExtension().toLowerCase())) { System.out.println( "This is the correct file extension."); /* Create a file handler */ File f = new File(checkDir, dirlist1[i]); // process the file here! } } } System.out.println("Lizard stopped..."); } private void sleep(long howlong) { try { Thread.sleep(howlong); } catch (Exception e) { } } /* MBean methods */ protected void startService() throws Exception { // Create a new thread with this monitor lizard = new Thread(this, "JBossMonitor"); // Set it as a daemon lizard.setDaemon(true); // start the thread lizard.start(); } protected void stopService() { lizard.interrupt(); } } --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] speed
Hi all, I recently upgraded our JBoss 3.2.1 application servers to 3.2.2R4. I have noticed a significant change in performance. It seems that 3.2.2R4 is much faster than 3.2.1. Is there anything changed under the hood that makes JBoss perform much faster? I'm using Redhat Linux 9 as operating system. (2.4.18). Thanks, Harm de Laat Informatiefabriek --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] packaging
Hi all, I have a sar file which depends on classes in my ejb jar file. I would like to package them both in a single ear file. But, I have read somewhere that the default deployment order is: sar, jar, war Is this true? Or can I modify this in the deployment descriptor? Thanks, Harm de Laat Informatiefabriek --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] design question
Hi all, I have a J2EE application running in JBoss. In my application I need some configuration. For instance, we have to email certain recepients when a action occurs. (For instance, when a certain entity bean is removed we have to send an email to a person). In this email we need to have a configurable messagebody, subject, recipients, reply-address etc... etc... I cannot use the bean environment entries because these only get read at deploy time. I need to be able to change the configuration during run-time. What would be a good way to make this as configurable as possible? Thanks, Harm de Laat Informatiefabriek --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] exception handling advice
Glad I could help... Cheers, Harm. "Brian McSweeney" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/11/2003 02:08 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] exception handling advice Hi Harm, Yes, your answer is very clear and is what I was thinking of doing myself. I found it strange that the ibm doc said you should throw new EJBExceptions whenever a finder or create exception occurs. I appreciate your help, Cheers, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 11 September 2003 09:45 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] exception handling advice Hi Brian, I always do the following. I have one 'baseexception' class. Which all my application specific exceptions extend. (I call this Application Exception). This means that If I catch a ApplicationException it means it has to be some exception generated by my own application. And not some FinderException or CreateException or whatever. In my SessionBean I always do this: If a create exception occurs, I catch it and throw a new Exception (which extends my ApplicationException) with a more meaningfull error message, to the client. The same thing for FinderExceptions. If a FinderException occures (which means that a particular bean cannot be found) I throw a new ApplicationException with a more usefull error like: Cannot find Bean with id: 1123123". This way in the client I don't have to catch all the FinderExceptions / CreateExceptions / RemoteExceptions or whatever. And if they do occur for some reason, it is usualy an exception which cannot be dealed with by the user of the application. Because it is a system exception. It might be a remote error, a programming error or whatever. There is nothing the user can do to correct the problem. Therefore I send the user to a System error page. (I do log the error altough, because I have to see what went wrong to fix the problem). I hope this helps? Good luck, Harm de Laat Informatiefabriek "Brian McSweeney" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/11/2003 11:21 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] exception handling advice Thanks for the response Mathew, I'll look into the business delegate pattern, however I'm still confused as to what I should do with finder and Create exceptions from the session facades. Should these be: a) Thrown on to the clients b) caught and EJBExceptions thrown on if b) is true, how can the clients handle EJBExceptions? These are runtime exceptions no? Any advice for this issue would be really helpful, because I'm still very confused!! Thanks, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Hixson Sent: 10 September 2003 17:55 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] exception handling advice Hi Brian, You might want to look into the BusinessDelegate pattern. It would fit between your struts actions and the session facade. In this level you can wrap system level exceptions inside more application usable exceptions. -M@ On Wednesday, September 10, 2003, at 09:34 AM, Brian McSweeney wrote: > Hi all, > > > > I’d like to know what the best practice on handling exceptions is. > > I’m using: > > > > > > Jsps>struts actions > session facades > entity beans > > > > Imagine for a second that the session façade allows CRUD operations on > > myentity beans. For example say I have a entity bean called customer. > > > > Now if I try to create a customer using a session façade method should > I > > Throw a CreateException back to the struts action so I can tell the > client > > I couldn’t create the customer? > > > > I have read that both FinderExceptions and CreateExceptions in session > > Facades should just log it and throw new EJBException > > > > [http://www-106.ibm.com/developerworks/java/library/j-ejbexcept.html ] > > > > buthow can you give a meaningful error back to the client as to what > > happened? So should I catch finder and create exceptions in the struts > > actions? > > > > I’m very confused. Perhaps someone can give me some advice > > Thanks, > > Brian > > > --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcom
RE: [JBoss-user] exception handling advice
Hi Brian, I always do the following. I have one 'baseexception' class. Which all my application specific exceptions extend. (I call this Application Exception). This means that If I catch a ApplicationException it means it has to be some exception generated by my own application. And not some FinderException or CreateException or whatever. In my SessionBean I always do this: If a create exception occurs, I catch it and throw a new Exception (which extends my ApplicationException) with a more meaningfull error message, to the client. The same thing for FinderExceptions. If a FinderException occures (which means that a particular bean cannot be found) I throw a new ApplicationException with a more usefull error like: Cannot find Bean with id: 1123123". This way in the client I don't have to catch all the FinderExceptions / CreateExceptions / RemoteExceptions or whatever. And if they do occur for some reason, it is usualy an exception which cannot be dealed with by the user of the application. Because it is a system exception. It might be a remote error, a programming error or whatever. There is nothing the user can do to correct the problem. Therefore I send the user to a System error page. (I do log the error altough, because I have to see what went wrong to fix the problem). I hope this helps? Good luck, Harm de Laat Informatiefabriek "Brian McSweeney" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/11/2003 11:21 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] exception handling advice Thanks for the response Mathew, I'll look into the business delegate pattern, however I'm still confused as to what I should do with finder and Create exceptions from the session facades. Should these be: a) Thrown on to the clients b) caught and EJBExceptions thrown on if b) is true, how can the clients handle EJBExceptions? These are runtime exceptions no? Any advice for this issue would be really helpful, because I'm still very confused!! Thanks, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Hixson Sent: 10 September 2003 17:55 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] exception handling advice Hi Brian, You might want to look into the BusinessDelegate pattern. It would fit between your struts actions and the session facade. In this level you can wrap system level exceptions inside more application usable exceptions. -M@ On Wednesday, September 10, 2003, at 09:34 AM, Brian McSweeney wrote: > Hi all, > > > > I’d like to know what the best practice on handling exceptions is. > > I’m using: > > > > > > Jsps>struts actions > session facades > entity beans > > > > Imagine for a second that the session façade allows CRUD operations on > > myentity beans. For example say I have a entity bean called customer. > > > > Now if I try to create a customer using a session façade method should > I > > Throw a CreateException back to the struts action so I can tell the > client > > I couldn’t create the customer? > > > > I have read that both FinderExceptions and CreateExceptions in session > > Facades should just log it and throw new EJBException > > > > [http://www-106.ibm.com/developerworks/java/library/j-ejbexcept.html ] > > > > buthow can you give a meaningful error back to the client as to what > > happened? So should I catch finder and create exceptions in the struts > > actions? > > > > I’m very confused. Perhaps someone can give me some advice > > Thanks, > > Brian > > > --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user N¬±ù隊X¬²'²Þu¼)äç¤Yé\¢g¢½éá¶ÚþØbHzG(û$,²ë®f¢)à+-$,²ë®X¬¶Ë(º·~àzwÛi³ÿåËl²«qç讧zßåËlþX¬¶)ߣøۢË.±ê
Re: [JBoss-user] ping
I had the same problem. I'm not sure what's happening??? "Barlow, Dustin" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/10/2003 03:07 PM Please respond to [EMAIL PROTECTED] To "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc Subject [JBoss-user] ping Sorry for the wasted bandwidth. For some reason my posts haven't been getting thru even though I'm a subscriber to this list. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of Memory error
Yes, I have had the same problem many times with jboss 3.2.1. Development Mailing Lists <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/09/2003 09:09 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Out of Memory error After redeploying several times in Jboss (3.0.7) Jboss gives an OutOFMemory error. Seems to only happen during development when redeploying several times. Does this happen to anyone else? -John --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Looking for some literature/examples on XDoclet/JBoss usage
I recommend that you look at the xpetstore example project. I can be found at: http://xpetstore.sourceforge.net "Sasidharan, Manoj" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/08/2003 09:59 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Looking for some literature/examples on XDoclet/JBoss usage Hello All, I am looking for a some write up (preferrably with examples) on how to use XDoclets for generating deployment descriptor. Has anybody used Chocolate? Would you recommend it for long term product development? Thanks for your help and comments. rgds MS --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] which xdoclet tag creates in ejb-jar.xml?
I totaly agree. But anyway here it is: /** * @ejb.ejb-ref * ejb-name="Customer" * view-type="local" * ref-name="ejb/CustomerLocal" Cheers, Harm de Laat Informatiefabriek The Netherlands Matthew Hixson <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/06/2003 02:20 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] which xdoclet tag creates in ejb-jar.xml? The subject pretty much says it. I'm finding that one of the most frustrating things about the xdoclet documentation is that it doesn't say "Using this tag will cause foo to be placed in the bar deployment descriptor." Thanks, -M@ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re:Using a Properrty File in JBoss
I once made a j2ee application that used a properties file. I made a helper class 'Config': public class Config { private Properties properties; public Config(File f) throws IOException { properties = new Properties(); FileInputStream in = new FileInputStream(f); properties.load(in); in.close(); } public String getProperty(String name) { return (String) properties.get(name); } } I just created a new instance in my Session bean whenever I needed the properties file. I think it's not a very good practice tough. You might be better of using environment entries in your deployment descriptor. Like this: mysql_host java.lang.String hercules You can then whenever you need it load your entries by doing: Context envCtx = (Context) iniCtx.lookup("java:comp/env"); String mysql_host = (String) envCtx.lookup("mysql_host"); Good luck, Cheers, Harm de Laat Informatiefabriek The Netherlands "Paulo Bengero" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/05/2003 02:42 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Re:Using a Properrty File in JBoss Any ideas guys? <><><><><><><><><><><><> How do you use a property file when you deploy your ejbs? Do you put your property files besides the class that loads it? or if not how do you configure it?Do you put it inside the deploymeny descriptors? If yes, what tags do you use? Paulo A. Bengero Application Systems Engineer Team ORION FPI Gateway Scanner scanned email-body and no virus found --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMR with Xdoclet and Jboss
Hi Darren, The best I can do for you is provide you with an example. This is a bi-directional 1-n relation. (Category - Advertisement). In CategoryBean.java: /** * @ejb.interface-method * @ejb.relation * name = "Category-Advertisements" * role-name = "CategoriesHasAdvertisements" * cascade-delete = "no" * @ejb.value-object * aggregate = "nl.xbase.advertisement.value.AdvertisementValue" * aggregate-name = "AllAdvertisement" * members = "nl.xbase.advertisement.interfaces.AdvertisementLocal" * members-name = "Advertisements" * relation = "external" * type = "Collection" * @jboss.relation-mapping style="foreign-key" */ public abstract Collection getAdvertisements(); /** * @ejb.interface-method * @param advertisements */ public abstract void setAdvertisements(Collection advertisements); In AdvertisementBean.java: /** * @ejb.interface-method * @ejb.relation * name = "Category-Advertisements" * role-name = "AdvertisementBelongsToCategory" * cascade-delete = "yes" * @jboss.relation-mapping style = "foreign-key" * @jboss.relation * fk-column="category_fk" * related-pk-field="categoryId" */ public abstract CategoryLocal getCategory(); /** * @ejb.interface-method * @param category */ public abstract void setCategory(CategoryLocal category); With this example you should be able to achieve what you desire. Good luck! Cheers, Harm de Laat Informatiefabriek The Netherlands "Darren Hartford" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/02/2003 09:08 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject [JBoss-user] CMR with Xdoclet and Jboss Hey all, 3 days latertime to ask the list :P I have an existing 1:N table relationship between table Case and Schedule. Now, the pk for Case is 'caseId' and for Schedule it is 'caseId_scheduleIncrement' (created from two other fields 'caseId_fk' and 'scheduleIncrement', old process that must be maintained). You can guess that Case.caseId maps to Schedule.caseId_fk for the 1:N relationship. These two tables are already populated with data, and I would like to setup CMR without interruption/change to the process and THEN, hopefully, be able to call Case.getSchedules() and return a collection/set of all schedules for that case from a Session Bean. I have had most every error related to CMR, including the "both roles of a relationship...must have key fields" and something like CMR can not be used outside of creation transaction(deploys correctly, but can not use method). For Schedule, I have been using ejbcreate to populate the 'caseId_fk', 'scheduleIncrement', and 'caseId_scheduleIncrement' field programattically - this works without CMR, but now trying to get these to EJB's to work with CMR. Jboss 3.2.2RC2, Xdoclet 1.2b4 Attempt so far: /* *CMR Relational Methods (Schedule EJB) */ /** * @ejb.interface-method * view-type="local" * * @ejb.relation * name="Case-Schedules" * role-name="many-schedules-has-one-case" * * @jboss:relation * fk-constraint="false" * related-pk-field="caseId_fk" * fk-column="caseId" * @weblogic.column-map * key-column="caseId" * foreign-key-column="caseId_fk" */ public abstract CaseLocal getCase(); /* *CMR Relational Methods (Case EJB) */ /** * @ejb.interface-method * view-type="local" * * @ejb.relation * name="Case-Schedules" * role-name="one-case-has-many-schedules" * * @weblogic.column-map * key-column="caseId_fk" * foreign-key-column="caseId" */ public abstract java.util.Set getSchedules(); Any help would be great, I want to do this as 'correct' as possible with least workarounds (timedoingotherstuff) TIA! -D --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Configuring Petstore 1.3.2 for JBoss 3.2
Yes you can find it on the xpetstore website: http://xpetstore.sourceforge.net/setup_jboss-3.0.x.html Although these instructions are for jboss-3.0.x the settings for 3.2.x are pretty much the same. Cheers, Harm. "Eliza" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/01/2003 03:01 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject [JBoss-user] Configuring Petstore 1.3.2 for JBoss 3.2 Hi, I've been searching for instructions on how to configuring java petstore 1.3.2 for JBoss 3.2. but could not find any in the forums or in google. Could anyone tell me where to find these instructions? Thank you. Eliza --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Wake up, mailing list owners
Juha, Altough the poster of the original message expresses himself very hostile, I do have to agree it's very annoing receiving all the junk mail comming in on this mailing list. Seriously, is there anything you can do to make this better for us? It would realy be appreciated. Thanks, Harm de Laat Informatiefabriek The Netherlands Juha Lindfors <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 08/26/2003 05:48 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [JBoss-user] Wake up, mailing list owners Fuck off. On Mon, 25 Aug 2003, Tero Paananen wrote: > Anybody home? Hello? Do you read your own mailing list? > > 5 of the last 6 posts to JBoss-user are bounces from > boneheaded (why in the earth do they think it's > important to tell a mailing list someone on it sent > a virus, I'll never understand) anti-virus scanners. > > Would be it too much to ask to get off your asses and > change the mailing list settings to only allow posts > by subscribers? Thanks. Or is your time more appropriately > spent on figuring out who to deny CVS access next? > > -TPP > > > > > --- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here: http://www.vmware.com/wl/offer/358/0 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] change default tomcat port
Hi all, I'm using JBoss 3.2.1 with integrated Tomcat. How can I change the port number to something like 12001 instead of the default 8080? I need to do this because some other server is running on the same port. Thanks a lot, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] sar deployment question
Hi all, I hava a MBean (packaged in a .sar file) which depends on a ejb (entity beans) jar file. Unfortunatly when JBoss boots, it first load the .sar file that then complains that it cannot find some classes (which is correct because the ejb-jar is not loaded yet). How can I change this behaviour so first the ejb-jar is deployed and then the .sar file? Thanks, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP custom field
Hi all, I have a CMP bean with a field 'description'. This field is a java.lang.String. But can contain more than 250 characters. What do I have to do to make JBoss persist into a 'TEXT' database field instead of VARCHAR(250)? Thanks, Harm de Laat Informatiefabriek --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JMX MBean question
I see your point. Maybe I should clarify myself a bit. Each handler has it's own configuration. For instance there is an email-handler. Which sends an email to a specific email-address when a file arrives in the 'watched' directory. The handler also has some other attributes such as the subject of the email message, reply-to address and so on Therefore I would like to make my Handler class a MBean. So I can easily set these properties using the JMXConsole. (Also taking advantage of persistent attributes, etc)... That is why I would like to lookup the Handler class using the MBeanServer. But, from the documentation I only see a way to get the class over RMI. (RMIAdaptor). But, since I'm on the same VM, I think this will not be nessecary. What would be the way to go here? Thanks in advance, Harm de Laat Informatiefabriek [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 07/01/2003 09:35 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject RE: [JBoss-user] JMX MBean question Harm, > I want to be able to configure which handler a particular directory watcher MBean uses. > Therefore I thought it might be a good idea to make the Handler class a MBean aswel. One simple solution might be to create a HandlerFactory that knows the mapping of the different file types to the Handlers that handle them. Your code might look like this: Handler handler = HandlerFactory.createHandler(File file); But I'm confused about your wish to be able to specify which kind of Handler is used by a specific Watcher. If that is the case, why not just give the Watcher the name of the class it has to instantiate as a parameter? -- Jeroen > > There are about 20 different handlers but they all implement > the interface > Handler.java: > > public interface Handler { > public void handle(File file); > } > > I have written all the code... But don't know where to go > from here > How can I instantiate the right Handler and call its > 'handle()' method? > > All ideas are more then welcome, > > Thanks, > > Harm de Laat > Informatiefabriek > > > > --- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMX MBean question
Hi all, I have written a standard MBean which watches a directory on the filesystem. If a file is dropped in this directory a different class (Handler) should be created to handle the file. I want to be able to configure which handler a particular directory watcher MBean uses. Therefore I thought it might be a good idea to make the Handler class a MBean aswel. There are about 20 different handlers but they all implement the interface Handler.java: public interface Handler { public void handle(File file); } I have written all the code... But don't know where to go from here How can I instantiate the right Handler and call its 'handle()' method? All ideas are more then welcome, Thanks, Harm de Laat Informatiefabriek --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Who is using JBoss in production?
Don't get me wrong. I started this thread because I went to the JavaOne conference in the Netherlands. I noticed that not many people were using JBoss in production environments. But, my company does! We used to build our websites and buiness logic in Lotus Domino. We looked into using Websphere but, we can't find any real reasons to buy the very much overpriced Websphere application server, if a perfectly suitable J2EE application server as JBoss exists for free. JBoss team, thanks! Cheers, Harm de Laat Informatiefabriek The Netherlands "Bill Burke" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 06/18/2003 08:51 PM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject RE: [JBoss-user] Who is using JBoss in production? Thanks everybody for providing your testimonials! Could you possibly do me a favor and repost on the Testimonial Forum if you haven't already? http://www.jboss.org/forum.jsp?forum=159 Thanks, Bill Bill Burke Chief Architect JBoss Group, LLC Cast your vote for JBoss as JDJ Best App Server http://www.sys-con.com/java/readerschoice2003/vote.cfm > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Magesh > Prabhu > Sent: Wednesday, June 18, 2003 4:59 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Who is using JBoss in production? > > > I've the experience of working in a large scale intranet system > and a middleware system both running in JBoss. They both are > functioning smoothly. The Intranet system is for a huge Financial > Institution and is being used extensively by minumum of 100 users > concurrently. JBoss is just simply superb. > > On 6/17/03 4:57 PM, Giorgio Ponza <[EMAIL PROTECTED]> wrote: > >I Use JBoss 2.4.7 in 3 machines, and 10 sites > >Never had problems, but are small traffic ones ;) > >Giorgio > > > >> Hi all, > >> I was wondering? How many of you are actually running production > >systems > >> on JBoss? > >> > >> Grtz, > > > > > > > >--- > >This SF.Net email is sponsored by: INetU > >Attention Web Developers & Consultants: Become An INetU Hosting Partner. > >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > >___ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > ** > This email and its attachments are intended for the above > named only and may be confidential. If they have come to > you in error, you must take no action based on them, nor > must you copy or show them to anyone; please reply to this > email and highlight the error. > Security Warning: Please note that this email has been > created in the knowledge that the internet email is not a > 100% secure communications medium. We advise that you > understand and observe this lack of security when emailing us. > Viruses: Although we have taken steps to ensure that this > email and attachments are free from any virus, we advise > that in keeping with good computing practice the recipient > should ensure they are actually virus free. > If you have received this email in error please notify: > [EMAIL PROTECTED] > ** > > > > --- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Who is using JBoss in production?
Hi all, I went to the Sun JavaOne conference in the Netherlands yesterday. I talked to a lot of people, and noticed that not many people are using JBoss in a production environment. I was wondering? How many of you are actually running production systems on JBoss? Grtz, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user