RE: [JBoss-user] Deploying MBeans together with ears, jars...
Title: RE: [JBoss-user] Deploying MBeans together with ears, jars... Thanks a lot. I'll take a look at it and give feedback. It will probably take a week though. I'm very busy right now. Marko. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 5:19 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Deploying MBeans together with ears, jars... Hi, I've done some work in this direction, see patch 443701. This lets you deploy and undeploy mini-jcml files. As far as I know, the code for the mbeans has to be on the classpath when jboss starts. With this patch, you could easily modify j2eeDeployer to deploy a mini-jcml file from your ear, containing configuration for app-specific mbeans (such as connection factories). To make this complete, you need to be able to include the mbean codebase in the ear and deploy that too. My impression is that this will be a simple adaptation or use of the web installation/clustering stuff Marc is working on. I'm waiting to see what he comes up with. I think it may be desirable to create an application-specific namespace in the mbean namespace for mbeans deployed as part of an application, perhaps by including a key something like application=name in the ObjectName. I'd appreciate any comments/feedback david jencks On 2001.08.07 02:36:50 -0400 Marko Strukelj wrote: Hi all, I'm not familiar with the latest jsr efforts, but since working with jBoss and tasting the power of using MBeans as services together with EJBs the thing I'm waiting for now is to be able to bundle MBeans together with EJBs and deploy them in an application context. That way I can deploy a whole application in one single stroke and have multiple applications each with its own set of MBeans coexist in the same server. Now, there is no way that I know of, to have a sort of descriptor and deploy a package of multiple MBeans at anytime runtime. Are there any specs in the making that will solve this at J2EE level? Or are there any plans to support that as an extra non-spec feature? Thanks for any feedback, Marko. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1 META NAME=Generator CONTENT=MS Exchange Server version 5.5.2650.12 TITLEDeploying MBeans together with ears, jars.../TITLE /HEAD BODY BR PFONT SIZE=2Hi all,/FONT /P PFONT SIZE=2I'm not familiar with the latest jsr efforts, but since working with jBoss and tasting the power of using MBeans as services together with EJBs the thing I'm waiting for now is to be able to bundle MBeans together with EJBs and deploy them in an quot;application contextquot;. That way I can deploy a whole application in one single stroke and have multiple applications each with its own set of MBeans coexist in the same server. /FONT/P PFONT SIZE=2Now, there is no way that I know of, to have a sort of descriptor and deploy a package of multiple MBeans at anytime runtime./FONT/P PFONT SIZE=2Are there any specs in the making that will solve this at J2EE level? Or are there any plans to support that as an extra non-spec feature?/FONT/P BR PFONT SIZE=2Thanks for any feedback,/FONT /P BR Pnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; FONT SIZE=2Marko./FONT /P /BODY /HTML ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JAAS and JSP
I need help in security matters. I've read the JAAS Howto and got the (thin) client to sucessfully authenticate itself etc... (using DatabaseServerLoginModule). I'd like to try out the same with JSP pages (unfortunately no example but cannot be that different since it is in essence a servlet itself) but appear to have some problems. First, the web server doesn't give me the popup box for authentication (as advertised in the Howto), so I decided to do this via a login page. Not a big problem since this is much closer to a real-life scenario anyway (we'll need this later on). The first problem is that the webcontainer does't seem to know about the security-authentication mechanism since it says: [Default] java.io.IOException: Properties file users.properties not found [Default] at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:200) I'd expect any errors to come from the DatabaseServerLoginModule. What didn't I do, and where should I put my client's auth.conf? WEB deployment descriptors attch'd. Thanks in advance ;) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ?xml version=1.0? !DOCTYPE web-app SYSTEM web.dtd web-app descriptionFrontwire Workspace Demo/description taglib taglib-uri/hello/taglib-uri taglib-location/WEB-INF/tlds/hello.tld/taglib-location /taglib resource-ref res-ref-namejdbc/CAMS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref security-constraint web-resource-collection web-resource-nameRestricted/web-resource-name descriptionDeclarative Security Test/description url-pattern/workspace/*/url-pattern http-methodHEAD/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint role-nameguest/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameFrontwire Workspace Demo/realm-name /login-config security-role role-nameguest/role-name /security-role ejb-ref ejb-ref-nameClientController/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.frontwire.cams.session.clientcontroller.ClientControllerHome/home remotecom.frontwire.cams.session.clientcontroller.ClientController/remote /ejb-ref /web-app ?xml version=1.0? jboss-web security-domainjava:/jaas/frontwire-platform/security-domain ejb-ref ejb-ref-nameClientController/ejb-ref-name jndi-nameejb/cmp/ClientController/jndi-name /ejb-ref /jboss-web
Re: [JBoss-user] JBoss-Tomcat as NT Service
Thanks guys for the suggestions. For the record, I finished up using ServiceMill for now, as we already use it in-house. From the guy who did the surfing to find it, I am told it is one of the few products that makes it easy to convert batch files (or whatever they're called on NT) into services. This allows us to put sleeps inbetween kicking off a database and JBoss. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBOSS INTEREST EXAMPLE
Title: RE: [JBoss-user] JBOSS INTEREST EXAMPLE Wow!, That's very useful. Thanks Paul. Martin
[JBoss-user] Problem in Mbeans initialization
Hi, I'm trying to move my apps on JBoss-Tomcat from WindowsNT to Linux (Mandrake 8) and I have some problems during the initialization of MBeans from jboss.conf. I'm using JBoss 2.2.0 and Tomcat 3.2.1 (but Tomcat is not concerned : runs well alone) The exception stack trace is the following : CLASSPATH=/data10/cadappl/sun-bin-jdk1.3.1/lib/tools.jar:/data10/cadappl/jboss-2.2/bin/run.jar:/data10/cadappl/jboss-2.2/lib/crimson.jar jboss.home = /data10/cadappl/jboss-2.2 Using configuration default javax.management.ServiceNotFoundException: The specified URL is null at javax.management.loading.MLet.getMBeansFromURL(MLet.java:367) at org.jboss.Main.init(Main.java:173) at org.jboss.Main$1.run(Main.java:107) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:103) JBoss 2.2.0 FINAL Started in 0m:0s I think the problem comes from jboss.conf because when I look into the sources of JBoss 2.3 beta, I can see these lines : // Load configuration URL mletConf = mlet.getResource(jboss.conf); Set beans = (Set)mlet.getMBeansFromURL(mletConf); It might be due to the URLs retrieved for each MBean but my jboss.conf file is the one given with the distribution (whitout modification). First lines of this file are : MLET CODE = org.jboss.logging.Logger ARCHIVE=jboss.jar CODEBASE=../../lib/ext//MLET !-- The log dir needs to be in the classpath to allow location of log.properties -- MLET CODE = org.jboss.util.ClassPathExtension ARCHIVE=jboss.jar CODEBASE=../../lib/ext/ ARG TYPE=java.lang.String VALUE=../../log/ /MLET Must I change something in the CODEBASE attributs of this Mbeans ? Thank you for your help. Best regards, Laurent ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] auth.conf
Hi... Could somebody tell me what this file does. Would a user need to edit this file at any stage? Thx, Nausheen.
Re: [JBoss-user] JAAS and JSP
Nicolai P Guba wrote: I need help in security matters. I've read the JAAS Howto and got the (thin) client to sucessfully authenticate itself etc... (using DatabaseServerLoginModule). I'd like to try out the same with JSP pages (unfortunately no example but cannot be that different since it is in essence a servlet itself) but appear to have some problems. First, the web server doesn't give me the popup box for authentication (as advertised in the Howto), so I decided to do this via a login page. Not a big problem since this is much closer to a real-life scenario anyway (we'll need this later on). The first problem is that the webcontainer does't seem to know about the security-authentication mechanism since it says: [Default] java.io.IOException: Properties file users.properties not found [Default] at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:200) I'd expect any errors to come from the DatabaseServerLoginModule. What didn't I do, and where should I put my client's auth.conf? Have you put an entry in auth.conf for frontwire-platform which uses the DatabaseServerLoginModule? It sounds like you're ending up with the default one. Presumably you're using the embedded tomcat distribution (??). This is set up to use the jboss security manager so you should modify the auth.conf in your jboss configuration directory. Also you say you're now using a login page instead of basic authentication ?? I'm not sure what you mean by this because the web.xml you supplied was still set up to use basic authentication. This should preobably be changed to use form-based authentication and specify the jsp to use for logins: login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/loginFailed.htm/form-error-page /form-login-config /login-config Luke. -- Luke Taylor. PGP Key ID: 0x57E9523C ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem in Mbeans initialization
Hi, here's my previous post : I'm trying to move my apps on JBoss-Tomcat from WindowsNT to Linux (Mandrake 8) and I have some problems during the initialization of MBeans from jboss.conf. I'm using JBoss 2.2.0 and Tomcat 3.2.1 (but Tomcat is not concerned : runs well alone) The exception stack trace is the following : CLASSPATH=/data10/cadappl/sun-bin-jdk1.3.1/lib/tools.jar:/data10/cadappl/jboss-2.2/bin/run.jar:/data10/cadappl/jboss-2.2/lib/crimson.jar jboss.home = /data10/cadappl/jboss-2.2 Using configuration default javax.management.ServiceNotFoundException: The specified URL is null at javax.management.loading.MLet.getMBeansFromURL(MLet.java:367) at org.jboss.Main.init(Main.java:173) at org.jboss.Main$1.run(Main.java:107) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:103) JBoss 2.2.0 FINAL Started in 0m:0s After some other tests, I can specify the problem : JBoss seems to be unable to build the path to access ./conf/default/jboss.conf Instead, Jboss is looking for this file : ./conf/jboss.conf and can't find it ! Can someone help me please ? Regards, Laurent ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] New feature UserTransaction in JBoss2.4
Hi, For an example: Check out jbosstest. The CTS test has a test for this in testUserTransaction() (in file BmpTest.java). What is happening at server-side? From your client-side code, it looks to me like you are trying to provoke some kind of failure in your bean method SB_M_WareHouse.update(M_WareHouseData). What kind of exception does your bean method throw on this failure? You say that JBoss halted in the background, but how? Did the Java VM abort or is it frozen? Does ut.commit() return? Please let us see the server-side log, so we can see what is happening there. Best Regards, Ole Husgaard. Edward Wang wrote: Hi, Sir: I am using JBoss 2.4 Beta, and I want to use the new feature UserTransaction in my stand alone client. I lookup it in the JNDI but failed to use it. May someone help me by giving some hint or examples. Below is my code for the Client, in which SB_M_WareHouseHome is the JNDI name of the home of a Session Bean. ClientUT.java === import java.util.*; import java.text.*; import javax.naming.*; import javax.ejb.*; import javax.transaction.UserTransaction; import com.lotus.common.*; import com.lotus.exception.*; import com.lotus.mst.session.sb_m_warehouse.*; public class ClientUT { public static void main(String[] args) { System.out.println(Hello World!); SB_M_WareHouseHome home = null; SB_M_WareHouse cli = null; M_WareHouseData md = null; javax.naming.Context ctx = null; UserTransaction ut = null; try { ctx = getInitialContext(); ut = (UserTransaction) ctx.lookup(UserTransaction); System.out.println(); System.out.println(ut.toString()); System.out.println(); ut.begin(); home = (SB_M_WareHouseHome) ctx.lookup(SB_M_WareHouseHome); cli = home.create(); String sWareHouseID = args[0]; if (sWareHouseID == null) sWareHouseID = 10; md = cli.getOneRecord(sWareHouseID.trim()); System.out.println(ID is: + sWareHouseID); md.setUpdatedBy(YY); cli.update(md); System.out.println(Updated Ok!); System.out.println(To Update with a Wrong Active Value:); md.setIsActive(AA);//IsActive is a CHAR(1) in DataBase, so it's assumed to a error here. cli.update(md); System.out.println(Updated Ok!); ut.commit(); } catch (Exception e) { try { ut.rollback(); } catch (Exception e2) { e2.printStackTrace(); } e.printStackTrace(); } } public static Context getInitialContext() throws NamingException { Properties env = new Properties(); env.setProperty(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); env.setProperty(java.naming.provider.url, localhost:1099); env.setProperty(java.naming.factory.url.pkgs, org.jboss.naming); ctx = new javax.naming.InitialContext(env); return ctx; } } = ClientUT.java End Here, below is the error message. I:\srcjava ClientUT Hello World! org.jboss.tm.usertx.client.ClientUserTransaction@505c81 Hello World! org.jboss.tm.usertx.client.ClientUserTransaction@691f36 ID is: 2 Updated Ok! To Update with a Wrong Active Value: Updated Ok! = *BUT*: JBoss halted in the background. It's very urgent for me, may you please help me a.s.a.p? Thanks. Regards, Edward ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Transactions and AutoCommit problems
Hi, I'm using JBoss2.2.2 with Oracle 8i and minerva. My applications contains BMP and CMP beans. All my beans methods require transactions. And I have problem with AutoCommit. Sometimes I get connection with AutoCommit turned on sometimes it is turned off. I know that it should be off when I use methods with transactions. (In EJB specification there is specified that in transaction AutoCommit of connection has to be turned off.) Sometimes when my application creates a new CMP bean this bean is not stored in the DB table. I can find it using findByPrimaryKey but when I shout down JBoss server I lose this bean (there is no that bean in the DB after JBoss restarting). OK in BMP beans I can check what is AutoCommit and possibly turn it off. But what with CMP beans. Maybe there is a special server property which I can configure. Note that previously I used Sun's J2EE server and above problems do not occur! Please help. Regards, AJ. Pozdrawiam, AJ. mailto:[EMAIL PROTECTED] http://strony.wp.pl/wp/ajonak ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Transactions and AutoCommit problems
The problem may well be in the configuration of your datasource. Can you show the relevant parts of jboss.jcml? david jencks On 2001.08.08 08:16:33 -0400 Artur Jonak wrote: Hi, I'm using JBoss2.2.2 with Oracle 8i and minerva. My applications contains BMP and CMP beans. All my beans methods require transactions. And I have problem with AutoCommit. Sometimes I get connection with AutoCommit turned on sometimes it is turned off. I know that it should be off when I use methods with transactions. (In EJB specification there is specified that in transaction AutoCommit of connection has to be turned off.) Sometimes when my application creates a new CMP bean this bean is not stored in the DB table. I can find it using findByPrimaryKey but when I shout down JBoss server I lose this bean (there is no that bean in the DB after JBoss restarting). OK in BMP beans I can check what is AutoCommit and possibly turn it off. But what with CMP beans. Maybe there is a special server property which I can configure. Note that previously I used Sun's J2EE server and above problems do not occur! Please help. Regards, AJ. Pozdrawiam, AJ. mailto:[EMAIL PROTECTED] http://strony.wp.pl/wp/ajonak ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
On 08 Aug 2001 14:17:21 +0100, Luke Taylor wrote: Have you put an entry in auth.conf for frontwire-platform which uses the DatabaseServerLoginModule? It sounds like you're ending up with the default one. Yeah. Note that I can do this successfully with a swing client. It's the tomcat bit which causes me grief. Presumably you're using the embedded tomcat distribution (??). This is Indeedy :) set up to use the jboss security manager so you should modify the auth.conf in your jboss configuration directory. Done (when I configured auth for the client). Also you say you're now using a login page instead of basic authentication ?? I'm not sure what you mean by this because the web.xml you supplied was still set up to use basic authentication. This should preobably be changed to use form-based authentication and specify the jsp to use for logins: login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/loginFailed.htm/form-error-page /form-login-config /login-config Cheers Luke! I'll give this a go and let you know if I had any joy :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
Nicolai P Guba wrote: Hmmm, it gives me java.rmi.RemoteException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: Authentication exception, principal=null java.lang.SecurityException: Authentication exception, principal=null Are you using the Jboss_Tomcat distribution out of the box, or have you tried to set it up yourself? This error could happen if tomcat doesn't have the appropriate security interceptor included. It will then let you access the web pages without authentication, and when the calls are made to jboss, there is no principal set by the client so the call fails. Alternatively (possibly more likely), you don't have your security constraints setup properly and they just aren't being applied - whether you use basic or form authentication shouldn't matter. Are the files you are accessing definately in your app name/workspace/* Have you checked there are no typos in the url ?? Luke. -- Luke Taylor. PGP Key ID: 0x57E9523C ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
On 08 Aug 2001 17:16:36 +0100, Luke Taylor wrote: Nicolai P Guba wrote: Hmmm, it gives me java.rmi.RemoteException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: Authentication exception, principal=null java.lang.SecurityException: Authentication exception, principal=null Are you using the Jboss_Tomcat distribution out of the box, or have you tried to set it up yourself? This error could happen if tomcat doesn't have the appropriate security interceptor included. It will then let you access the web pages without authentication, and when the calls are made to jboss, there is no principal set by the client so the call fails. Out of the Box, ie from the binary download. Hmmm, I tried the JASS-Howto example and that worked fine. Alternatively (possibly more likely), you don't have your security constraints setup properly and they just aren't being applied - whether you use basic or form authentication shouldn't matter. Are the files you are accessing definately in your app name/workspace/* Have you checked there are no typos in the url ?? No typos in url. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
Luke Taylor wrote: Alternatively (possibly more likely), you don't have your security constraints setup properly and they just aren't being applied - whether you use basic or form authentication shouldn't matter. Are the files you are accessing definately in your app name/workspace/* Have you checked there are no typos in the url ?? following receipt of war file ... Yes that's the problem. The url-name tag in the security constraint is /workspace/* but your files are in the root directory. Note that all the urls are relative to your web application, not the web server root - i.e. if your app is called workspace you shouldn't include this in the urls. Create a subdirectory in the war file (e.g. protected), move the restricted files in there, change the url-name to /protected/* and it should work. The application name can be set at deployment so shouldn't be referenced anywhere in your code or web.xml. All the best, Luke. -- Luke Taylor. PGP Key ID: 0x57E9523C ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Implementing JSSE/SSL in JBoss +Tomcat
In our Project, we are using JBoss 2.2.1 and Tomcat 3.2.1. From this environment we have to access the https port of another Web Server.(iPlanet). We have successfully configured https in iPlanet and is able to access the same from an ordinary Java class. But when the same code snippet is moved to a bean/servlet in Tomcat JBoss environment it is failing to recognise the https protocol. JSSE jar files are in the JBoss classpath.(lib\ext directory). The error messages we are getting are .. when the JSSE jars are in JBoss lib\ext only java.net.MalformedURLException: unknown protocol:https when the JSSE jars are in jre lib\ext also/only java.net.SocketException: SSL implementation not available It will be a great help if you can help us in solving this problem. Any info/ help will be appreciated. The code snippet related to SSL *** System.setProperty(java.protocol.handler.pkgs,com.sun.net.ssl.internal.www.protocol); System.setProperty (javax.net.ssl.trustStore,samplecacerts); Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider()); //appears these properties are not getting set !!! *** theUrl = new URL(https://myserver:9003/;); HttpsURLConnection con = null; con = (HttpsURLConnection)theUrl.openConnection(); con.setAllowUserInteraction(true); con.setUseCaches(false); con.setRequestProperty(Un_Name,Un_Value); Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] log4j
Hi, I am currently working on a ejb project using JBoss as the application server. What I am trying to do is use Log4j as my logging mechanism for my application but to set it up in such a way that if I had to deploy to another app server if someone should ever request it that the log4j code would still be valid. Therefore, I'm not sure if using Jboss' log4j service will work for me. Does anyone know if this is possible and if there is a good way to implement this? My concern is that I would like to startup log4j once and share the instance across all my beans but I am unsure how this can be accomplished. Any feedback would be appreciated. Thanks, Mike __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] log4j
Log4j is not JBoss code. You can find it at jakarta.apache.org. Thus, if you ever wanted to use it on an app server that doesn't come with it, you could just install it and use it. - Original Message - From: Mike korcynski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 1:21 PM Subject: [JBoss-user] log4j Hi, I am currently working on a ejb project using JBoss as the application server. What I am trying to do is use Log4j as my logging mechanism for my application but to set it up in such a way that if I had to deploy to another app server if someone should ever request it that the log4j code would still be valid. Therefore, I'm not sure if using Jboss' log4j service will work for me. Does anyone know if this is possible and if there is a good way to implement this? My concern is that I would like to startup log4j once and share the instance across all my beans but I am unsure how this can be accomplished. Any feedback would be appreciated. Thanks, Mike __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Any WebServices function/sample available in JBoss?
Bea weblogic6.1 has the new feature Web Services. I like to know whether jboss (The bea killer) has that feature or not. If yes, is there any sample I can get? Thanks Jonathan. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Any WebServices function/sample available in JBoss?
It is coming up as part of the JBoss 3.0, stay tuned marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan Lee |Sent: Wednesday, August 08, 2001 3:06 PM |To: [EMAIL PROTECTED] |Subject: [JBoss-user] Any WebServices function/sample available in |JBoss? | | |Bea weblogic6.1 has the new feature Web Services. |I like to know whether jboss (The bea killer) has that |feature or not. If yes, is there any sample I can get? | |Thanks | | | |Jonathan. | |__ |Do You Yahoo!? |Make international calls for as low as $.04/minute with Yahoo! Messenger |http://phonecard.yahoo.com/ | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Question about JAWS table generation
Title: Question about JAWS table generation Im using EJBDoclet v1.2 to generate my EJB files. When I build all my files and deploy them, here are the message that are log in 'server.log': [JAWS] Table t_user created [JAWS] Created table 't_user' successfully. [JAWS] Primary key of table 't_user' is 'null'. I checked in hypersonic, and the field 'pk' is not the primary key. Why? Is there any xml-tag for JAWS for specifying the primary key? here are my deployment files: ejb-jar.xml jboss.xml jaws.xml ejb-jar.xml jboss.xml jaws.xml
Re: [JBoss-user] Jboss CD Example - 'pload: can't read file ` cds.txt error
On Fri, Jun 29, 2001 at 05:58:06PM -, SigurĂ°ur Reynisson wrote: The table is created in my database (SapDB) but all I get is: 'pload: can't read file ` cds.txt I seem to remember that I had to rename the cds.txt file to CDs.txt. FGL PS. The date of your system is several weeks behind the times... ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Need more examples contributed by others
Cool beans! I'd also like to hear success stories on how people are integrating jboss with other open source projects. For example, from things a little more exotic than the typical Apache/Tomcat/Jboss combo. I haven't spent much time with Castor but it looks interesting. I don't know what Lucene or jmoz is. My little company is trying to levarage as much as we can from the open source world. Of course we will have to donate back to the open source cause as much as we can... BTW The JBoss/Jetty combo is really cool. Further, it is my understanding that the new jboss forum is based on Jboss/Jetty/Jive. It inspired us to think about creating some forums of our own. Rob From: Kevin O'Neill [EMAIL PROTECTED] Organization: rocketred pty ltd The jmoz (jmoz.sourceforge.net) project provides a complete sample application the use of Cocoon, JBOSS, Castor JDO and Lucene. Although documentation is a little light (ok none existent), id be willing to document the aspects of the system that people believe are useful. k. From: Robert Finneran Sent: Wednesday, 8 August 2001 6:29 AM To: Jboss-User Subject: [JBoss-user] Need more examples contributed by others I think it would be an absolute godsend if more people contributed to the documentation, especially in the area of concrete examples. I know the core JBoss team is really busy, so it I would image they would welcome any such efforts. Often the topic of the questions belongs more appropriately to a basics of J2EE, J2EE configuration and security but it can be very confusing to know where the problem exists: Where did I go wrong? I for one hope to write some docs for this project very soon, but I'm afraid it would be the blind leading the blind right now! (But thats a poor excuse...) Martin Welch [EMAIL PROTECTED] wrote: Amos, Erk. Hands up -- I didn't use EAR, WARs etc. I've done everything by hand -- a batch file to create the jars and a manual copy of all the necessary files. My next step is to create a simple example of my own and use Ant (which I don't understand at all yet) to create there EARs and WARs (which I also don't understand). If you wish I'll document what I did if that helps. Would this be of interest to others? Martin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
Title: I have an entity bean named 'User' (associate with value object UserData) and a session bean named 'UserCollection' that contains the function 'findById( int id )'. Whenever I call this function with a valid id, i receive the following exception: [test] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [test] java.rmi.ServerException: Load failed; nested exception is: [test] java.lang.NullPointerException [test] java.rmi.ServerException: Load failed; nested exception is: [test] java.lang.NullPointerException [test] java.lang.NullPointerException [test] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe r(Unknown Source) [test] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source ) [test] at sun.rmi.server.UnicastRef.invoke(Unknown Source) [test] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.i nvoke(Unknown Source) [test] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeCont ainer(GenericProxy.java:357) [test] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.i nvoke(StatelessSessionProxy.java:123) [test] at $Proxy2.findById(Unknown Source) [test] at test.UserCollectionBeanTest.testFindById(UserCollectionBeanTe st.java:123) [test] at java.lang.reflect.Method.invoke(Native Method) [test] at junit.framework.TestCase.runTest(TestCase.java:156) [test] at junit.framework.TestCase.runBare(TestCase.java:130) [test] at junit.framework.TestResult$1.protect(TestResult.java:100) [test] at junit.framework.TestResult.runProtected(TestResult.java:118) [test] at junit.framework.TestResult.run(TestResult.java:103) [test] at junit.framework.TestCase.run(TestCase.java:121) [test] at junit.framework.TestSuite.runTest(TestSuite.java:149) [test] at junit.framework.TestSuite.run(TestSuite.java:144) [test] at junit.framework.TestSuite.runTest(TestSuite.java:149) [test] at junit.framework.TestSuite.run(TestSuite.java:144) [test] F [test] Time: 19.007 [test] at junit.textui.TestRunner.doRun(TestRunner.java:63) [test] [test] at junit.textui.TestRunner.start(TestRunner.java:217) BTW: in 'log/server.log', the error is not reported, every thing seems fine. Im using JBoss v2.4 with Tomcat 2.3.2 ejb-jar.xml jaws.xml jboss.xml ejb-jar.xml jaws.xml jboss.xml
[JBoss-user] automatic datasource generation...
Is it possible to add a new datasource on the fly? I assume this could be done with a custom mbean... But I am curious is this is already possible. d. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
Yes it is but on my machine only :) 3.0 series marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 5:22 PM |To: JBoss User (E-mail) |Subject: [JBoss-user] automatic datasource generation... | | |Is it possible to add a new datasource on the fly? | |I assume this could be done with a custom mbean... |But I am curious is this is already possible. | |d. | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
I really need that... How does this work for 3.0? For 2.2.2 I have been looking into the MBeanServer stuff some more. Couldn't I do an MBeanServer.invoke() to initialize and start an XADataSourceLoader? I am still hashing through trying to figure out the syntax... -Original Message- From: marc fleury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] automatic datasource generation... Yes it is but on my machine only :) 3.0 series marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 5:22 PM |To: JBoss User (E-mail) |Subject: [JBoss-user] automatic datasource generation... | | |Is it possible to add a new datasource on the fly? | |I assume this could be done with a custom mbean... |But I am curious is this is already possible. | |d. | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] automatic datasource generation...
Well actually, in the 2.5 code you can do this, if you are using jca adapters. There's even a test: jmx test, showing how to add a datasource using the mbean server interface. If you want to do this conveniently, apply patch 443701, then you can drop a mini-jcml file with the config into the deploy directory and it will auto deploy. (or you can call ConfigurationService Deploy method with the url to the mini-jcml file). Follow the example in the patch's test- you need a ServiceControl mbean in the jcml file too. I'm waiting to see how this patch fits in with what marc's doing. david jencks On 2001.08.08 17:50:08 -0400 marc fleury wrote: Yes it is but on my machine only :) 3.0 series marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 5:22 PM |To: JBoss User (E-mail) |Subject: [JBoss-user] automatic datasource generation... | | |Is it possible to add a new datasource on the fly? | |I assume this could be done with a custom mbean... |But I am curious is this is already possible. | |d. | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] automatic datasource generation...
hi, (see also my reply to marc's message) You almost certainly can manipulate the mbean server to create your datasource loader -- see the jmx test for a model. For future compatibility I'd recommend using the jca stuff if you can -- although it's more convenient in 2.4 than in 2.2. I suspect patches 443701 and 444219 would work without change on 2.4, and be pretty easy to adapt to 2.2.2 if you want to experiment. -- this might be what you want. david jencks On 2001.08.08 18:14:36 -0400 Ferguson, Doug wrote: I really need that... How does this work for 3.0? For 2.2.2 I have been looking into the MBeanServer stuff some more. Couldn't I do an MBeanServer.invoke() to initialize and start an XADataSourceLoader? I am still hashing through trying to figure out the syntax... -Original Message- From: marc fleury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] automatic datasource generation... Yes it is but on my machine only :) 3.0 series marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 5:22 PM |To: JBoss User (E-mail) |Subject: [JBoss-user] automatic datasource generation... | | |Is it possible to add a new datasource on the fly? | |I assume this could be done with a custom mbean... |But I am curious is this is already possible. | |d. | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss CD Example - 'pload: can't read file ` cds.txt error
in the Upload class where public static void main(String[] args) { String filename = CDs.txt; try { put the cds.txt classpath for instance C:\jboss\cds.txt it will work Faisal Abdallah - Original Message - From: SigurĂ°ur Reynisson [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 29, 2001 6:58 PM Subject: [JBoss-user] Jboss CD Example - 'pload: can't read file ` cds.txt error Hi y'all! I'm running the run_upload.sh script on a Linux box. The table is created in my database (SapDB) but all I get is: 'pload: can't read file ` cds.txt oh, I've also set the primary key manually on the CDBEAN table and I'm using the latest scripts from the JBoss mailing list. Anyone solved this problem? Hints? Links? TIA! -- sr ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help to unsubscribe
Could someone please email me the details for unsubsubscibibg to this list, I seem to have misplaced the first few emails with the relevant details. Thanks in advance, Paula ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [URGENT] Problem while calling a method of a session bean
I have 2 beans: User (Entity) and UserCollection (Session). In UserCollection I have the following functions: public UserData findById( int id ) throws ObjectNotFoundException, RemoteException { if ( TeamSpace.DEBUG_ENABLED ) { m_logger.debug( findById( + id + ) ); } try { UserHome home = ( UserHome ) getHome( UserHome.JNDI_NAME, UserHome.class ); User usr = home.findByPrimaryKey( new UserPK( id ) ); return usr.getData(); } catch ( FinderException f ) { throw new ObjectNotFoundException( Can't find user with id: + id, f ); } } When I call this function from my test-case, I receive the following exception: [test] .test.UserCollectionBeanTest.testFindById() [test] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [test] java.rmi.ServerException: Load failed; nested exception is: [test] java.lang.NullPointerException [test] java.rmi.ServerException: Load failed; nested exception is: [test] java.lang.NullPointerException [test] java.lang.NullPointerException [test] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) [test] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) [test] F [test] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) [test] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) [test] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357) [test] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123) [test] at $Proxy2.findById(Unknown Source) Does anyone knows what's wrong in my bean? thanx PS: Im using JBoss 2.4 with Linux 6.2 ?xml version=1.0 encoding=UTF-8? !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; ejb-jar display-name/display-name enterprise-beans session descriptionCollection of users/description ejb-nametspace/UserCollection/ejb-name hometbh.tspace.bo.user.UserCollectionHome/home remotetbh.tspace.bo.user.UserCollection/remote ejb-classtbh.tspace.bo.user.UserCollectionSession/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type ejb-ref ejb-ref-nameejb/tspace/User/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type hometbh.tspace.bo.user.UserHome/home remotetbh.tspace.bo.user.User/remote ejb-linktspace/User/ejb-link /ejb-ref /session entity descriptionTeamSpace user/description ejb-nametspace/User/ejb-name cmp-version1.0/cmp-version hometbh.tspace.bo.user.UserHome/home remotetbh.tspace.bo.user.User/remote ejb-classtbh.tspace.bo.user.UserCMP/ejb-class persistence-typeContainer/persistence-type prim-key-classtbh.tspace.bo.user.UserPK/prim-key-class reentrantTrue/reentrant cmp-field descriptionUnique Id/description field-nameid/field-name /cmp-field cmp-field descriptionLogin/description field-namelogin/field-name /cmp-field cmp-field descriptionPassword/description field-namepassword/field-name /cmp-field cmp-field descriptionFirst name/description field-namefirstname/field-name /cmp-field cmp-field descriptionLast name/description field-namelastname/field-name /cmp-field cmp-field descriptionEmail/description field-nameemail/field-name /cmp-field cmp-field descriptionID of the user timezone/description field-nametimezoneID/field-name /cmp-field cmp-field descriptionVersion number for soft locking/description field-nameversion/field-name /cmp-field /entity entity descriptionWorkspace bean/description ejb-nametspace/Workspace/ejb-name cmp-version1.0/cmp-version hometbh.tspace.bo.workspace.WorkspaceHome/home remotetbh.tspace.bo.workspace.Workspace/remote ejb-classtbh.tspace.bo.workspace.WorkspaceCMP/ejb-class persistence-typeContainer/persistence-type prim-key-classtbh.tspace.bo.workspace.WorkspacePK/prim-key-class reentrantTrue/reentrant cmp-field descriptionWorkspace unique id/description field-nameid/field-name /cmp-field cmp-field
RE: [JBoss-user] automatic datasource generation...
What is the hot redploy I am hearing so much about? d. -Original Message- From: marc fleury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 6:01 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] automatic datasource generation... |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 6:15 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |I really need that... | |How does this work for 3.0? | |For 2.2.2 for 2.5 there was a patch submitted working with jcml but not providing hot redeploy. What I am doing is trying to make sure that we can redeploy in case you cycle. Right now it is a once and for all which means no errors allowed in the deploy which sort of misses the point of on the fly. If you miss, you need to restart. 3.0 is working on the redeploy part with the advanced CL. David: your stuff is relevant in the autodeployer part the rest is completely rewritten in 3.0. It is the same spirit though only done with hot redeploy. So doug, take that that RW passwd of yours out of the drawer and commit David stuff if you really need it. thanks marcf |I have been looking into the MBeanServer stuff some more. |Couldn't I do an MBeanServer.invoke() to initialize and start an |XADataSourceLoader? |I am still hashing through trying to figure out the syntax... | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 4:50 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | |Yes it is but on my machine only :) | |3.0 series | |marcf | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 5:22 PM ||To: JBoss User (E-mail) ||Subject: [JBoss-user] automatic datasource generation... || || ||Is it possible to add a new datasource on the fly? || ||I assume this could be done with a custom mbean... ||But I am curious is this is already possible. || ||d. || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
|What is the hot redploy I am hearing so much about? Ok, without hot redeploy you essentially have one chance and one chance only to get your classes right. It was as if you were coding a bean and if you missed something about the bean class you had to restart the server. Not having this in the 2.x series means that either you get the class right the first time or you need to restart. In that light there is little gain in having on the fly since you only have one deploy and if you miss it restart. I am trying to fix this for the 3.0 series. The patch we are talking about will give you one deploy chance on the class. Maybe that is what you need? It has to do with MLets and classloaders... and I am not even sure it will work perfectly for 3.0 it is a bit of research from the stuff we did with Rickard/Jung in December. regards marcf | |d. | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot redeploy. | |So doug, take that that RW passwd of yours out of the drawer and commit |David stuff if you really need it. | |thanks | |marcf | ||I have been looking into the MBeanServer stuff some more. ||Couldn't I do an MBeanServer.invoke() to initialize and start an ||XADataSourceLoader? ||I am still hashing through trying to figure out the syntax... || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 4:50 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||Yes it is but on my machine only :) || ||3.0 series || ||marcf || |||-Original Message- |||From: [EMAIL PROTECTED] |||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |||Doug |||Sent: Wednesday, August 08, 2001 5:22 PM |||To: JBoss User (E-mail) |||Subject: [JBoss-user] automatic datasource generation... ||| ||| |||Is it possible to add a new datasource on the fly? ||| |||I assume this could be done with a custom mbean... |||But I am curious is this is already possible. ||| |||d. ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
So the code seems to work for creating and starting the Pool.. Is this an ok way to do this until 3.0 comes along? Is there anyway I can persist to jboss.jcml? Invoking saveConfiguration doesn't seem to do what I want... ** String name = DefaultDomain:service=XADataSource,name=dynamicDB; MBeanServer server = (MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); ObjectName objectName = new ObjectName(name); String code = org.jboss.jdbc.XADataSourceLoader; ObjectInstance instance = server.createMBean(code, objectName, new ObjectName(server.getDefaultDomain(), service, MLet)); MBeanInfo info = server.getMBeanInfo(instance.getObjectName()); server.setAttribute(objectName, new Attribute(PoolName,jdbc/dynamicDB)); server.setAttribute(objectName, new Attribute DataSourceClass,org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl)) ; server.setAttribute(objectName, new Attribute(URL,jdbc:oracle:thin:@10.3.0.140:1521:test)); server.setAttribute(objectName, new Attribute(JDBCUser,testmaster)); server.setAttribute(objectName, new Attribute(Password,testmaster)); server.invoke(objectName, init, new Object[0],new String[0]); server.invoke(objectName, start, new Object[0],new String[0]); -Original Message- From: marc fleury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 6:01 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] automatic datasource generation... |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 6:15 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |I really need that... | |How does this work for 3.0? | |For 2.2.2 for 2.5 there was a patch submitted working with jcml but not providing hot redeploy. What I am doing is trying to make sure that we can redeploy in case you cycle. Right now it is a once and for all which means no errors allowed in the deploy which sort of misses the point of on the fly. If you miss, you need to restart. 3.0 is working on the redeploy part with the advanced CL. David: your stuff is relevant in the autodeployer part the rest is completely rewritten in 3.0. It is the same spirit though only done with hot redeploy. So doug, take that that RW passwd of yours out of the drawer and commit David stuff if you really need it. thanks marcf |I have been looking into the MBeanServer stuff some more. |Couldn't I do an MBeanServer.invoke() to initialize and start an |XADataSourceLoader? |I am still hashing through trying to figure out the syntax... | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 4:50 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | |Yes it is but on my machine only :) | |3.0 series | |marcf | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 5:22 PM ||To: JBoss User (E-mail) ||Subject: [JBoss-user] automatic datasource generation... || || ||Is it possible to add a new datasource on the fly? || ||I assume this could be done with a custom mbean... ||But I am curious is this is already possible. || ||d. || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
So how is the differnt form auto-deploy? d. -Original Message- From: marc fleury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 7:15 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] automatic datasource generation... |What is the hot redploy I am hearing so much about? Ok, without hot redeploy you essentially have one chance and one chance only to get your classes right. It was as if you were coding a bean and if you missed something about the bean class you had to restart the server. Not having this in the 2.x series means that either you get the class right the first time or you need to restart. In that light there is little gain in having on the fly since you only have one deploy and if you miss it restart. I am trying to fix this for the 3.0 series. The patch we are talking about will give you one deploy chance on the class. Maybe that is what you need? It has to do with MLets and classloaders... and I am not even sure it will work perfectly for 3.0 it is a bit of research from the stuff we did with Rickard/Jung in December. regards marcf | |d. | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot redeploy. | |So doug, take that that RW passwd of yours out of the drawer and commit |David stuff if you really need it. | |thanks | |marcf | ||I have been looking into the MBeanServer stuff some more. ||Couldn't I do an MBeanServer.invoke() to initialize and start an ||XADataSourceLoader? ||I am still hashing through trying to figure out the syntax... || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 4:50 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||Yes it is but on my machine only :) || ||3.0 series || ||marcf || |||-Original Message- |||From: [EMAIL PROTECTED] |||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |||Doug |||Sent: Wednesday, August 08, 2001 5:22 PM |||To: JBoss User (E-mail) |||Subject: [JBoss-user] automatic datasource generation... ||| ||| |||Is it possible to add a new datasource on the fly? ||| |||I assume this could be done with a custom mbean... |||But I am curious is this is already possible. ||| |||d. ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [URGENT] Problem while calling a method of a session bean (hint)
Herve Tchepannou wrote: if I change the UserCollection function by: public boolean findById( int id ) throws ObjectNotFoundException, RemoteException { if ( TeamSpace.DEBUG_ENABLED ) { m_logger.debug( findById( + id + ) ); } try { UserHome home = ( UserHome ) getHome( UserHome.JNDI_NAME, UserHome.class ); User usr = home.findByPrimaryKey( new UserPK( id ) ); return true; } catch ( FinderException f ) { throw new ObjectNotFoundException( Can't find user with id: + id, f ); } } every thing works fine. Looks like JBoss has problem returning UserData class (BTW: UserData implements java.io.Serializable) I have 2 beans: User (Entity) and UserCollection (Session). In UserCollection I have the following functions: public UserData findById( int id ) throws ObjectNotFoundException, RemoteException { if ( TeamSpace.DEBUG_ENABLED ) { m_logger.debug( findById( + id + ) ); } try { UserHome home = ( UserHome ) getHome( UserHome.JNDI_NAME, UserHome.class ); User usr = home.findByPrimaryKey( new UserPK( id ) ); return usr.getData(); } catch ( FinderException f ) { throw new ObjectNotFoundException( Can't find user with id: + id, f ); } } When I call this function from my test-case, I receive the following exception: [test] .test.UserCollectionBeanTest.testFindById() [test] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [test] java.rmi.ServerException: Load failed; nested exception is: [test] java.lang.NullPointerException [test] java.rmi.ServerException: Load failed; nested exception is: [test] java.lang.NullPointerException [test] java.lang.NullPointerException [test] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) [test] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) [test] F [test] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) [test] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) [test] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357) [test] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123) [test] at $Proxy2.findById(Unknown Source) Does anyone knows what's wrong in my bean? thanx PS: Im using JBoss 2.4 with Linux 6.2 ?xml version=1.0 encoding=UTF-8? !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; ejb-jar display-name/display-name enterprise-beans session descriptionCollection of users/description ejb-nametspace/UserCollection/ejb-name hometbh.tspace.bo.user.UserCollectionHome/home remotetbh.tspace.bo.user.UserCollection/remote ejb-classtbh.tspace.bo.user.UserCollectionSession/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type ejb-ref ejb-ref-nameejb/tspace/User/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type hometbh.tspace.bo.user.UserHome/home remotetbh.tspace.bo.user.User/remote ejb-linktspace/User/ejb-link /ejb-ref /session entity descriptionTeamSpace user/description ejb-nametspace/User/ejb-name cmp-version1.0/cmp-version hometbh.tspace.bo.user.UserHome/home remotetbh.tspace.bo.user.User/remote ejb-classtbh.tspace.bo.user.UserCMP/ejb-class persistence-typeContainer/persistence-type prim-key-classtbh.tspace.bo.user.UserPK/prim-key-class reentrantTrue/reentrant cmp-field descriptionUnique Id/description field-nameid/field-name /cmp-field cmp-field descriptionLogin/description field-namelogin/field-name /cmp-field cmp-field descriptionPassword/description field-namepassword/field-name /cmp-field cmp-field descriptionFirst name/description field-namefirstname/field-name /cmp-field cmp-field descriptionLast name/description field-namelastname/field-name /cmp-field cmp-field descriptionEmail/description
[JBoss-user] JBoss 3.0 - Clustering, WebServices, automatic datasource generation, etc.
Hi, There were very cool news mentioned during last couple of days/weeks about coming JBoss 3.0 features: Clustering, WebServices, automatic datasource generation, etc. I would be much appreciated to hear about these coming features in more details, so we could prepare ourselves for them and also get answers for some questions in advance. For instance, there is very good article about J2EE clustering: http://www.javaworld.com/javaworld/jw-02-2001/jw-0223-extremescale_p.html http://www.javaworld.com/javaworld/jw-08-2001/jw-0803-extremescale2_p.html How clustering is going to be implemented in JBoss 3.0? I understand, that those features are in development now and might be changed as the development is progressing, but it will be very nice to hear about them, at least very briefly. I really address this to Marc Fleury. Best Regards, Leonid Shamis Directory Technology Pty. Ltd. Team Leader - Publishing On-Line System Phone:+61 3 9856 5352 Fax:+61 3 9856 5000 E-Mail: mailto:[EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss 3.0 - Clustering, WebServices, automatic datasource generat ion, etc.
Well you got me there :) JBoss 3.0 will solve world hunger. What I want to do in the time I have allocated to myself is the General Purpose Architecture. That means microkernel architecture. I detach invocation connector from the bean stacks which would make webservices a breeze. The idea is that each connector generates something equivalent to the MessageInvocation we have in there today and we decouple the call from connector to bean so anything can be generating an MI and anything can be fielding the MI. The clustering is yet another level and to be honest I don't think I will be doing that in the coming days, but it is on the roadmap for 3.0. I will also put on the humble hat and make sure I communicate that some of the stuff in there is advanced and I hope to get something that works so that jboss-dev high fliers can work from that. I hope I can clearly communicate that vision. But in moi vs. the Devil give the Devil tons of points. marcf |There were very cool news mentioned during last couple of days/weeks about |coming JBoss 3.0 features: Clustering, WebServices, automatic datasource |generation, etc. | |I would be much appreciated to hear about these coming features in more |details, so we could prepare ourselves for them and also get answers for |some questions in advance. | |For instance, there is very good article about J2EE clustering: |http://www.javaworld.com/javaworld/jw-02-2001/jw-0223-extremescale_p.html |http://www.javaworld.com/javaworld/jw-08-2001/jw-0803-extremescale2_p.html | |How clustering is going to be implemented in JBoss 3.0? | |I understand, that those features are in development now and might be |changed as the development is progressing, but it will be very nice to hear |about them, at least very briefly. | |I really address this to Marc Fleury. | |Best Regards, | |Leonid Shamis | |Directory Technology Pty. Ltd. |Team Leader - Publishing On-Line System | |Phone:+61 3 9856 5352 |Fax:+61 3 9856 5000 |E-Mail: mailto:[EMAIL PROTECTED] | | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
you only get one chance. auto-deploy will not work if you need to change the class of the datasource you miss? its restart land marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 8:31 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |So how is the differnt form auto-deploy? | |d. | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 7:15 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | ||What is the hot redploy I am hearing so much about? | |Ok, without hot redeploy you essentially have one chance and one |chance only |to get your classes right. | |It was as if you were coding a bean and if you missed something about the |bean class you had to restart the server. | |Not having this in the 2.x series means that either you get the class right |the first time or you need to restart. | |In that light there is little gain in having on the fly since you only |have one deploy and if you miss it restart. | |I am trying to fix this for the 3.0 series. The patch we are talking about |will give you one deploy chance on the class. Maybe that is what |you need? | |It has to do with MLets and classloaders... and I am not even sure it will |work perfectly for 3.0 it is a bit of research from the stuff we did with |Rickard/Jung in December. | |regards | |marcf | || ||d. || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 6:01 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || || || |||-Original Message- |||From: [EMAIL PROTECTED] |||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |||Doug |||Sent: Wednesday, August 08, 2001 6:15 PM |||To: '[EMAIL PROTECTED]' |||Subject: RE: [JBoss-user] automatic datasource generation... ||| ||| |||I really need that... ||| |||How does this work for 3.0? ||| |||For 2.2.2 || ||for 2.5 there was a patch submitted working with jcml but not |providing hot ||redeploy. || ||What I am doing is trying to make sure that we can redeploy in case you ||cycle. Right now it is a once and for all which means no errors |allowed in ||the deploy which sort of misses the point of on the fly. If you |miss, you ||need to restart. || ||3.0 is working on the redeploy part with the advanced CL. David: ||your stuff ||is relevant in the autodeployer part the rest is completely rewritten in ||3.0. It is the same spirit though only done with hot redeploy. || ||So doug, take that that RW passwd of yours out of the drawer and commit ||David stuff if you really need it. || ||thanks || ||marcf || |||I have been looking into the MBeanServer stuff some more. |||Couldn't I do an MBeanServer.invoke() to initialize and start an |||XADataSourceLoader? |||I am still hashing through trying to figure out the syntax... ||| |||-Original Message- |||From: marc fleury [mailto:[EMAIL PROTECTED]] |||Sent: Wednesday, August 08, 2001 4:50 PM |||To: [EMAIL PROTECTED] |||Subject: RE: [JBoss-user] automatic datasource generation... ||| ||| |||Yes it is but on my machine only :) ||| |||3.0 series ||| |||marcf ||| -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, Doug Sent: Wednesday, August 08, 2001 5:22 PM To: JBoss User (E-mail) Subject: [JBoss-user] automatic datasource generation... Is it possible to add a new datasource on the fly? I assume this could be done with a custom mbean... But I am curious is this is already possible. d. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user || || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED]
[JBoss-user] [unit testing]
does anyone have any resources regarding unit testing within JBoss? I find JUnit indispensable, but I am not sure how to implement this effectively within JBoss. cheers /t toby hede ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] automatic datasource generation...
yes this is the soft part, the configuration, you can configure any pool you want with the existing classes. Getting more classes in there, and hot deploying them (redeploy) is the trick. In other words, if you need a new driver you are stuck. That's all, is it clear now? marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 8:19 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |So the code seems to work for creating and starting the Pool.. |Is this an ok way to do this until 3.0 comes along? |Is there anyway I can persist to jboss.jcml? |Invoking saveConfiguration doesn't seem to do what I want... | |** | |String name = DefaultDomain:service=XADataSource,name=dynamicDB; |MBeanServer server = |(MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); |ObjectName objectName = new ObjectName(name); |String code = org.jboss.jdbc.XADataSourceLoader; |ObjectInstance instance = |server.createMBean(code, objectName, new |ObjectName(server.getDefaultDomain(), service, MLet)); |MBeanInfo info = server.getMBeanInfo(instance.getObjectName()); | |server.setAttribute(objectName, | new Attribute(PoolName,jdbc/dynamicDB)); |server.setAttribute(objectName, | new Attribute |DataSourceClass,org.opentools.minerva.jdbc.xa.wrapper.XADataSour |ceImpl)) |; |server.setAttribute(objectName, | new Attribute(URL,jdbc:oracle:thin:@10.3.0.140:1521:test)); |server.setAttribute(objectName, | new Attribute(JDBCUser,testmaster)); |server.setAttribute(objectName, | new Attribute(Password,testmaster)); |server.invoke(objectName, init, | new Object[0],new String[0]); |server.invoke(objectName, start, | new Object[0],new String[0]); | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot redeploy. | |So doug, take that that RW passwd of yours out of the drawer and commit |David stuff if you really need it. | |thanks | |marcf | ||I have been looking into the MBeanServer stuff some more. ||Couldn't I do an MBeanServer.invoke() to initialize and start an ||XADataSourceLoader? ||I am still hashing through trying to figure out the syntax... || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 4:50 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||Yes it is but on my machine only :) || ||3.0 series || ||marcf || |||-Original Message- |||From: [EMAIL PROTECTED] |||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |||Doug |||Sent: Wednesday, August 08, 2001 5:22 PM |||To: JBoss User (E-mail) |||Subject: [JBoss-user] automatic datasource generation... ||| ||| |||Is it possible to add a new datasource on the fly? ||| |||I assume this could be done with a custom mbean... |||But I am curious is this is already possible. ||| |||d. ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] automatic datasource generation...
Hi, Let me try to clarify from my point of view what my patch does ;-) 1. All your mbean classes must be in lib/ext, so like marc says, no way you can change them after server starts. (actually there are zero chances - the class has to be there when the server starts, you can't deploy the class. 2. The mini-jcml's you deploy must use only preexisting mbean code, as just mentioned: however [the configuration of] specific mbean instances can be deployed/undeployed/hot redeployed to your hearts content. If you are only using well known mbeans like ConnectionFactoryLoader (or XADataSourceLoader) this will work fine: all you want is a particular configuration instance of a preexisting (code) mbean. It won't work if you need to experiment with your own custom mbean that doesn't work yet. Marc, what problems are you running into that make you doubt it will work perfectly? Are you keeping the idea of deploying additional/mini jcml files? Is this configuration question orthogonal to the classloading questions you are working on? thanks david jencks On 2001.08.08 20:14:57 -0400 marc fleury wrote: |What is the hot redploy I am hearing so much about? Ok, without hot redeploy you essentially have one chance and one chance only to get your classes right. It was as if you were coding a bean and if you missed something about the bean class you had to restart the server. Not having this in the 2.x series means that either you get the class right the first time or you need to restart. In that light there is little gain in having on the fly since you only have one deploy and if you miss it restart. I am trying to fix this for the 3.0 series. The patch we are talking about will give you one deploy chance on the class. Maybe that is what you need? It has to do with MLets and classloaders... and I am not even sure it will work perfectly for 3.0 it is a bit of research from the stuff we did with Rickard/Jung in December. regards marcf | |d. | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot redeploy. | |So doug, take that that RW passwd of yours out of the drawer and commit |David stuff if you really need it. | |thanks | |marcf | ||I have been looking into the MBeanServer stuff some more. ||Couldn't I do an MBeanServer.invoke() to initialize and start an ||XADataSourceLoader? ||I am still hashing through trying to figure out the syntax... || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 4:50 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||Yes it is but on my machine only :) || ||3.0 series || ||marcf || |||-Original Message- |||From: [EMAIL PROTECTED] |||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |||Doug |||Sent: Wednesday, August 08, 2001 5:22 PM |||To: JBoss User (E-mail) |||Subject: [JBoss-user] automatic datasource generation... ||| ||| |||Is it possible to add a new datasource on the fly? ||| |||I assume this could be done with a custom mbean... |||But I am curious is this is already possible. ||| |||d. ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user | |___ |JBoss-user mailing list |[EMAIL PROTECTED]
Re: [JBoss-user] [unit testing]
I usually just implement my JUnit tests as standard EJB clients, one for each EJB. Setup gets the connection, creates any required EJBs, the test calls methods on that EJB, and teardown cleans up. There is info and an extension to JUnit which is especially for testing EJBs. I beleive that it is a servlet, which lets you run your tests with a web browser. I think this is it: http://www.javaworld.com/javaworld/jw-05-2000/jw-0526-testinfect_p.html Haven't tried it myself. Mike - Original Message - From: Toby Hede [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 7:15 PM Subject: [JBoss-user] [unit testing] does anyone have any resources regarding unit testing within JBoss? I find JUnit indispensable, but I am not sure how to implement this effectively within JBoss. cheers /t toby hede ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] automatic datasource generation...
hmmm I haven't tried it but I bet if you need a new driver you could pack the driver classes up with the appropriate minerva jdbc to jca adapter and deploy it as a new rar and the rar's classloader would find all the classes it needs from the rar deployment. Should try this-- I'm pretty sure the spec requires this to work. david jencks On 2001.08.08 21:15:25 -0400 marc fleury wrote: yes this is the soft part, the configuration, you can configure any pool you want with the existing classes. Getting more classes in there, and hot deploying them (redeploy) is the trick. In other words, if you need a new driver you are stuck. That's all, is it clear now? marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 8:19 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |So the code seems to work for creating and starting the Pool.. |Is this an ok way to do this until 3.0 comes along? |Is there anyway I can persist to jboss.jcml? |Invoking saveConfiguration doesn't seem to do what I want... | |** | |String name = DefaultDomain:service=XADataSource,name=dynamicDB; |MBeanServer server = |(MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); |ObjectName objectName = new ObjectName(name); |String code = org.jboss.jdbc.XADataSourceLoader; |ObjectInstance instance = |server.createMBean(code, objectName, new |ObjectName(server.getDefaultDomain(), service, MLet)); |MBeanInfo info = server.getMBeanInfo(instance.getObjectName()); | |server.setAttribute(objectName, | new Attribute(PoolName,jdbc/dynamicDB)); |server.setAttribute(objectName, | new Attribute |DataSourceClass,org.opentools.minerva.jdbc.xa.wrapper.XADataSour |ceImpl)) |; |server.setAttribute(objectName, | new Attribute(URL,jdbc:oracle:thin:@10.3.0.140:1521:test)); |server.setAttribute(objectName, | new Attribute(JDBCUser,testmaster)); |server.setAttribute(objectName, | new Attribute(Password,testmaster)); |server.invoke(objectName, init, | new Object[0],new String[0]); |server.invoke(objectName, start, | new Object[0],new String[0]); | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot redeploy. | |So doug, take that that RW passwd of yours out of the drawer and commit |David stuff if you really need it. | |thanks | |marcf | ||I have been looking into the MBeanServer stuff some more. ||Couldn't I do an MBeanServer.invoke() to initialize and start an ||XADataSourceLoader? ||I am still hashing through trying to figure out the syntax... || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 4:50 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||Yes it is but on my machine only :) || ||3.0 series || ||marcf || |||-Original Message- |||From: [EMAIL PROTECTED] |||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |||Doug |||Sent: Wednesday, August 08, 2001 5:22 PM |||To: JBoss User (E-mail) |||Subject: [JBoss-user] automatic datasource generation... ||| ||| |||Is it possible to add a new datasource on the fly? ||| |||I assume this could be done with a custom mbean... |||But I am curious is this is already possible. ||| |||d. ||| |||___ |||JBoss-user mailing list |||[EMAIL PROTECTED] |||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED] ||http://lists.sourceforge.net/lists/listinfo/jboss-user || ||___ ||JBoss-user mailing list ||[EMAIL PROTECTED]
RE: [JBoss-user] automatic datasource generation...
But I don't need to add new classes... I just need to add a new database.. Here is the deal. We have seperate databases per client. And many jboss servers. I have to update all the jboss servers whenver a new client signs up. If I can add the pool on the fly then I don't need to reboot or edit the jcml file. So, I am storing configuration info in all the dbs and when I get a NamingException, I create the datasource on the fly... I seem to be able to add them the code below, but jboss.jcml isn't updated. Since I haven't seen anyone talk about this, I wanted to get a stamp of approval incase my implementation is wacked... What do you guys think? d. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 9:53 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] automatic datasource generation... hmmm I haven't tried it but I bet if you need a new driver you could pack the driver classes up with the appropriate minerva jdbc to jca adapter and deploy it as a new rar and the rar's classloader would find all the classes it needs from the rar deployment. Should try this-- I'm pretty sure the spec requires this to work. david jencks On 2001.08.08 21:15:25 -0400 marc fleury wrote: yes this is the soft part, the configuration, you can configure any pool you want with the existing classes. Getting more classes in there, and hot deploying them (redeploy) is the trick. In other words, if you need a new driver you are stuck. That's all, is it clear now? marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 8:19 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |So the code seems to work for creating and starting the Pool.. |Is this an ok way to do this until 3.0 comes along? |Is there anyway I can persist to jboss.jcml? |Invoking saveConfiguration doesn't seem to do what I want... | |** | |String name = DefaultDomain:service=XADataSource,name=dynamicDB; |MBeanServer server = |(MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); |ObjectName objectName = new ObjectName(name); |String code = org.jboss.jdbc.XADataSourceLoader; |ObjectInstance instance = |server.createMBean(code, objectName, new |ObjectName(server.getDefaultDomain(), service, MLet)); |MBeanInfo info = server.getMBeanInfo(instance.getObjectName()); | |server.setAttribute(objectName, | new Attribute(PoolName,jdbc/dynamicDB)); |server.setAttribute(objectName, | new Attribute |DataSourceClass,org.opentools.minerva.jdbc.xa.wrapper.XADataSour |ceImpl)) |; |server.setAttribute(objectName, | new Attribute(URL,jdbc:oracle:thin:@10.3.0.140:1521:test)); |server.setAttribute(objectName, | new Attribute(JDBCUser,testmaster)); |server.setAttribute(objectName, | new Attribute(Password,testmaster)); |server.invoke(objectName, init, | new Object[0],new String[0]); |server.invoke(objectName, start, | new Object[0],new String[0]); | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot redeploy. | |So doug, take that that RW passwd of yours out of the drawer and commit |David stuff if you really need it. | |thanks | |marcf | ||I have been looking into the MBeanServer stuff some more. ||Couldn't I do an MBeanServer.invoke() to initialize and start an ||XADataSourceLoader? ||I am still hashing through trying to figure out the syntax... || ||-Original Message- ||From: marc fleury [mailto:[EMAIL PROTECTED]] ||Sent: Wednesday, August 08, 2001 4:50 PM ||To: [EMAIL PROTECTED] ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||Yes it is but on my machine only :) || ||3.0 series || ||marcf || |||-Original Message- |||From: [EMAIL PROTECTED]
Re: [JBoss-user] automatic datasource generation...
hmm, I didn't think you needed new classes, that's why I pushed my patch, you still might like to try it, each clients config info would be in a separate file--just drop them into the deploy dir, and you don't need to save from the running server. For what you are doing, I don't see why the saveConfiguration doesn't work. I don't know why it would make a difference, but did you try creating the mbean with the server.createMBean(class, objectName) method? Can you see your mbean on the port 8082 viewer? david jencks On 2001.08.08 23:00:10 -0400 Ferguson, Doug wrote: But I don't need to add new classes... I just need to add a new database.. Here is the deal. We have seperate databases per client. And many jboss servers. I have to update all the jboss servers whenver a new client signs up. If I can add the pool on the fly then I don't need to reboot or edit the jcml file. So, I am storing configuration info in all the dbs and when I get a NamingException, I create the datasource on the fly... I seem to be able to add them the code below, but jboss.jcml isn't updated. Since I haven't seen anyone talk about this, I wanted to get a stamp of approval incase my implementation is wacked... What do you guys think? d. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 9:53 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] automatic datasource generation... hmmm I haven't tried it but I bet if you need a new driver you could pack the driver classes up with the appropriate minerva jdbc to jca adapter and deploy it as a new rar and the rar's classloader would find all the classes it needs from the rar deployment. Should try this-- I'm pretty sure the spec requires this to work. david jencks On 2001.08.08 21:15:25 -0400 marc fleury wrote: yes this is the soft part, the configuration, you can configure any pool you want with the existing classes. Getting more classes in there, and hot deploying them (redeploy) is the trick. In other words, if you need a new driver you are stuck. That's all, is it clear now? marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, |Doug |Sent: Wednesday, August 08, 2001 8:19 PM |To: '[EMAIL PROTECTED]' |Subject: RE: [JBoss-user] automatic datasource generation... | | |So the code seems to work for creating and starting the Pool.. |Is this an ok way to do this until 3.0 comes along? |Is there anyway I can persist to jboss.jcml? |Invoking saveConfiguration doesn't seem to do what I want... | |** | |String name = DefaultDomain:service=XADataSource,name=dynamicDB; |MBeanServer server = |(MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); |ObjectName objectName = new ObjectName(name); |String code = org.jboss.jdbc.XADataSourceLoader; |ObjectInstance instance = |server.createMBean(code, objectName, new |ObjectName(server.getDefaultDomain(), service, MLet)); |MBeanInfo info = server.getMBeanInfo(instance.getObjectName()); | |server.setAttribute(objectName, | new Attribute(PoolName,jdbc/dynamicDB)); |server.setAttribute(objectName, | new Attribute |DataSourceClass,org.opentools.minerva.jdbc.xa.wrapper.XADataSour |ceImpl)) |; |server.setAttribute(objectName, | new Attribute(URL,jdbc:oracle:thin:@10.3.0.140:1521:test)); |server.setAttribute(objectName, | new Attribute(JDBCUser,testmaster)); |server.setAttribute(objectName, | new Attribute(Password,testmaster)); |server.invoke(objectName, init, | new Object[0],new String[0]); |server.invoke(objectName, start, | new Object[0],new String[0]); | |-Original Message- |From: marc fleury [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, August 08, 2001 6:01 PM |To: [EMAIL PROTECTED] |Subject: RE: [JBoss-user] automatic datasource generation... | | | | ||-Original Message- ||From: [EMAIL PROTECTED] ||[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, ||Doug ||Sent: Wednesday, August 08, 2001 6:15 PM ||To: '[EMAIL PROTECTED]' ||Subject: RE: [JBoss-user] automatic datasource generation... || || ||I really need that... || ||How does this work for 3.0? || ||For 2.2.2 | |for 2.5 there was a patch submitted working with jcml but not providing hot |redeploy. | |What I am doing is trying to make sure that we can redeploy in case you |cycle. Right now it is a once and for all which means no errors allowed in |the deploy which sort of misses the point of on the fly. If you miss, you |need to restart. | |3.0 is working on the redeploy part with the advanced CL. David: |your stuff |is relevant in the autodeployer part the rest is completely rewritten in |3.0. It is the same spirit though only done with hot
[JBoss-user] 420628 Handles remember their container.
I just saw the following comment in the 2.4 release notes. If I have 5 application servers and I obtain a handle from a bean in one of these does this mean that Handle is smart enough to get me to the right application server? *** 420628 Handles remember their container. The JRMP proxy and handle implementation has been updated to remember which container they came from. This allows clients to pass handles to VMs that do not have an explicit configuration for the initial context factory and provider url (as well as other environment properties) from which the bean originated. This should provide a better migration path from other EJB containers which provide this behavior. The issuing container reads the environment properties which are required to construct a new InitialContext object from a properties files specified by the system property: org.jboss.ejb.plugins.jrmp.interfaces.InitialContextHandle.environment The value of this property is currently assumed to be a URL or omitted to disable the feature. The default value for this property is currently being set to: file:../conf/default/handle-jndi.properties Which contains properties suitable for connecting to the default JNDI server configured to start with JBoss. If the port number which the Naming service is changed from the default, then this file should be updated to reflect the new value. If this property is omitted, then the old behavior will be used, which simply constructed a new InitialContext with no environment properties. This will assume that they are suitable system properties set to setup the context. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [unit testing]
Out of curiousity, how/where/when do you deploy and undeploy your ejbs? What size groups of ejbs do you deploy together when testing? Thanks david jencks On 2001.08.08 22:35:37 -0400 Michael Jara wrote: I usually just implement my JUnit tests as standard EJB clients, one for each EJB. Setup gets the connection, creates any required EJBs, the test calls methods on that EJB, and teardown cleans up. There is info and an extension to JUnit which is especially for testing EJBs. I beleive that it is a servlet, which lets you run your tests with a web browser. I think this is it: http://www.javaworld.com/javaworld/jw-05-2000/jw-0526-testinfect_p.html Haven't tried it myself. Mike - Original Message - From: Toby Hede [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 7:15 PM Subject: [JBoss-user] [unit testing] does anyone have any resources regarding unit testing within JBoss? I find JUnit indispensable, but I am not sure how to implement this effectively within JBoss. cheers /t toby hede ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user