Re: [JBoss-user] JBoss Evaluation Questions
>> Availability and integration of rich development environment? > > Well, > vi, vim, emacs, xemacs are quiete rich but people don't like them. Easy there, big fella! Many people like emacs ;) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss-2.4.2 release with updated Tomcat4.0/3.2.3
> we are on JBoss 2.4.0 and don't want to upgrade it ! we'll end up > upgrading servers more than upgrading code one of the few > issues with open source! Take a look at Debian GNU/Linux. Debian is actually several Linux distro's: stable, unstable, and "bleeding edge". Their stable distro changes only when security problems (or bad bugs) are found, and those fixes are usually back-ported from newer versions of each package. In other words, you get bug fixes but not new features. You could do the same thing with JBoss - get the code using anonymous CVS and watch the changes. Port the ones that you're interested in over to your code base. Upgrade when you feel like it. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat 4.0rc2 rocks
> Just installed (on Windows) the latest version of tomcat 4.0 rc2. > The web container is extremely fast. Tomcat 4 will make resin and > jetty not necessary. When will it(catalina) be integrated with > Jboss Patrick, Don't know when the official bundle will show up (probably not before the 4.0-final release), but If you're willing to get your fingernails a little dirty you can roll your own. Grab a copy of the jboss source, including the contrib module, apply patch 450987 from the sourcforge patch tracker to the contrib/catalina directory and follow the instructions in the readme in that directory. It works pretty well for me with 4.0-rc1 so YMMV with rc2, at least for trivial loads. Regards, Toby ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Jetty support for JSP 1.2 and servlets 2.3
Actually, they do. The first link answers your first question directly, and the second link contains a pointer to the Jetty mailing list, which is probably a better place to ask questions about Jetty than the JBoss mailing list. > these links don't tell me much. > > -Original Message- > From: toby cabot [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 2:53 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Jetty support for JSP 1.2 and servlets > 2.3 > > >> Does Jetty currently support JSP 1.2 and servlets 2.3? If not, >> when will it be. > > http://jetty.mortbay.com/ > http://sourceforge.net/projects/jetty/ > > > > > ___ > 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] Jetty support for JSP 1.2 and servlets 2.3
> Does Jetty currently support JSP 1.2 and servlets 2.3? If not, when > will it be. http://jetty.mortbay.com/ http://sourceforge.net/projects/jetty/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Integration with Catalina/Tomcat 4?
> When will Jboss be integrated with Catalina/Tomcat 4? > thanks > Patrick Patrick, It's pretty funny, I was wondering the same thing myself. I asked on the forums this morning and was told that one of the developers would re-open the catalina integration next week. In the mean time there's some code in the contrib/catalina directory; it's rusty but with a few fixes I got it to build, but it throws during initialization. If you're curious, here's the patch which lets you build, then you can follow the instructions in the readme to install (and crash). Please let me know if you make any progress: Index: readme === RCS file: /cvsroot/jboss/contrib/catalina/readme,v retrieving revision 1.1.1.1 diff -r1.1.1.1 readme 1,2c1 < 1) copy embedded.jar to jboss/lib/ext, tools.jar should go to1) copy embedded.jar to jboss/lib/ext 4,8c3 < 2) copy the files jaxp.jar (from catalina_home/server) to jboss/lib, 2) add the following lines to jboss.conf (changing the directories accordingly) 12c7 < --- > 25c20 < 4) there are 3 mbeans that need to be configured in jboss.jcml: --- > 3) there are 3 mbeans that need to be configured in jboss.jcml: 57c52 < 5) start jboss, all war files will be deployed to localhost as configured in --- > 4) start jboss, all war files will be deployed to localhost as configured in 59c54 To see the typical home page http://localhost:8080 enable the root cvs server: Diffing src cvs server: Diffing src/build Index: src/build/build.sh === RCS file: /cvsroot/jboss/contrib/catalina/src/build/build.sh,v retrieving revision 1.2 diff -r1.2 build.sh 10,11c10,11 < ${TOMCAT_HOME}/server/crimson.jar:\ < ${TOMCAT_HOME}/server/jaxp.jar:\ --- > ${TOMCAT_HOME}/server/lib/crimson.jar:\ > ${TOMCAT_HOME}/server/lib/jaxp.jar:\ Index: src/build/build.xml === RCS file: /cvsroot/jboss/contrib/catalina/src/build/build.xml,v retrieving revision 1.1.1.1 diff -r1.1.1.1 build.xml 14,16c14,16 < http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to inegrate JBoss with other databases
> Please give me the steps to follow i.e files to change or edit > for > integrating JBoss2.2.2 with some other database(other than > Hssql)like Mysql or Oracle. http://www.jboss.org/documentation/HTML/ch03.html ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Non-unique Primary Keys
> In other words, I have a table which doesn't have a unique primary > key but rather a pair of fields that must be unique. How do I make > a primary key object without having to add another field to the > database? The quick answer is yes, you can do this, and you probably want to check out EJBdoclet. It will create the primary key class (and a lot of the other EJB code) for you. http://sourceforge.net/projects/ejbdoclet/ Not to pick a nit but you *do* in fact have a primary key, it's just composed of the two columns which together are unique, e.g.: CREATE TABLE "text_data" ( "text_data" int4 NOT NULL, "language" int4 NOT NULL, "text" character varying(255), PRIMARY KEY ("text_data", "language") ); With this table you can have multiple rows for each text_data value and multiple rows for each language value, but only one row for each text-data/language pair. HTH, Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Hardware Sizing
> JBoss experts, > I am looking for any available hardware configuration/sizing > information to support a Jboss/Tomcat deployment in production. > Thanks in advance! > > Thomas Cong > Portal Software > [EMAIL PROTECTED] Tom, The bottom line is that there are way too many dependencies on your code and the other products that you use to do anything other than build some test harnesses, run it, measure it, and see. Most HW vendors have "capacity planning" labs where you can borrow their high-end gear to run stress tests, but it's a good idea to run some preliminary tests in-house to resolve the obvious bottlenecks first. It's a fair amount of effort to do it right but you'll get lots of good data to feed back into your code. Given that Portal sells big-dollar billing software for ISP's this is a pretty significant win for JBoss. Any chance you'd be willing to add Portal to the jboss.org "Success Stories" page? Regards, Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Immediate deletion of object from cache
> I have a system where I'll be logging user > transactions in one of my tables. I won't ever need to access them > again. Doesn't a session bean fit these requirements? It seems to me that you could have a stateless session bean which takes an object and writes the member variables to a row in the database. The container will manage the pooling etc for you, probably more efficently than if you were using entity beans. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Velocity & JBoss
>> > I use Velocity as my web interface and JBoss as J2EE. >> >> > Where is the root directory relative to servelet running by >> > JBoss & Tomcat? >> >> I believe that it's the directory where you are when you run >> jboss. >> >> > Anyone knows how to solve it? >> >> I use Velocity's classpath resource loader. Jar up your >> templates, drop >> the jar into the lib directory of your war file, and add: >> >> resource.loader = classpath >> classpath.resource.loader.class = >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader >> >> to WEB-INF/conf/velocity.properties. You also need to make sure that the properties are passed to your servlet. Do you have an element like: properties WEB-INF/conf/velocity.properties nested in in your web.xml? Toby PS. We're getting OT for this list - please follow up on velocity-user. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Velocity & JBoss
> I use Velocity as my web interface and JBoss as J2EE. > Where is the root directory relative to servelet running by JBoss & > Tomcat? I believe that it's the directory where you are when you run jboss. > Anyone knows how to solve it? I use Velocity's classpath resource loader. Jar up your templates, drop the jar into the lib directory of your war file, and add: resource.loader = classpath classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader to WEB-INF/conf/velocity.properties. HTH, Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss startup problems postgresql driver
> What is wrong with my configuration? > name="DefaultDomain:service=XADataSource,name=myWMS"> > We had a similar problem. Try adding a password, even if you don't need one to connect. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] What is optimized?
> I have downloade the jboss version which comes with tomcat, when i > execute the example the page says: > > "...and once with the inVM optimization.." http://jboss.org/documentation/HTML/ch06s08.html Look for the explanation of the element. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Performance Tests --- Comparision with Weblogic
>> Does the JBoss optimized container invoker (or whatever it's >> called...) serialize arguments in order to preserve RMI semantics >> (i.e. pass-by-value) and short-circuit the RMI layer? > > Yes I think that this is not correct. I ran some tests with container-invoker-conf Optimized true and I got call-by-reference rather than call-by-value. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] my problem: postgresql 7.0.2 jdbc driver don't update database really
> I work with jboss2.2 which connect to postgresql 7.0.2 by its own > jdbc driver. I insert some records into database in my session > bean, and no error is reported by jboss or jdbc. it's seemed that > everything is ok. >But when i look into the database with the psql client, all >inserted records disappear.How can i make jboss or postgresql >jdbc flush the data created into the database? Thanks in >advance. I've noticed that jboss behaves differently than the Sun reference implementation, so instead of grabbing a Connection once and using it many times (e.g. the way Sun does it in their tutorial examples) you're better off getting and closing the Connection once for each method. I should point out that my experience here was with entity beans, not session beans but I'd imagine that the behavior is similar. There's more detailed info in my earlier post to this list (and in the replies it generated). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] just curious: jboss/java/setiathome contention
Folks, I had been fooling around with a small benchmark of my code (remote client calls session bean calls entity bean, a little db i/o) and trying to figure out why it was so darn slow (100 xactions in 70 seconds). I stripped the code down to a simple round trip between the jboss server and a client in another VM with little improvement but then killed setiathome (which I had running "nice" in the background) and the full-blown code (after I put back the database I/O) did 100 xactions in 15-16 seconds. This is debian linux (potato), sun jdk 1.3.0, jboss 2.2 on a 1.2G athlon with 256M memory. Everything's swimming, no swapping. The solution is easy enough ("doctor it hurts when I do this" "don't do that"), and therefore not terribly critical but I'm curious if anyone knows why setiathome and java should have such a cat fight. I can't remember any other application running any slower with seti in the background. TIA, Toby Cabot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jetty vs. Tomcat
> Does anyone have any opinions as to which contain is more robust, > easier to use and such? There was a slashdot story about Tomcat over the weekend which sparked a whole bunch of posts about just this topic. As always, take /. with a grain of salt... ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] diff in behavior between server-side and client-side
danch, > toby cabot wrote: >> I noticed that the remote client code gets a copy of moola but the >> server-side session bean gets a reference to the member itself >> (and can thus change it). > > Turn off optimized invocations in jboss.xml Got it, thanks. I can hack standardjboss.xml for a system-wide change or jboss.xml on a bean-by-bean basis. Nice. This raises an interesting issue, though: what the out-of-the-box defaults should be. Some might argue that default behavior should be as spec-compliant as possible but with notes indicating what to change to go fast and what the side effects will be. In any case, jboss rocks! Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem with JBoss+Tomcat+Posgresql
> I'm using Tomcat3.2, jdk1.2.2(or Jdk1.3), Postgreql7.0.2 > under linux mandrake 7.2. > > After configuring jboss.jcml and jboss.conf, I try to >start jboss and I've got nothing. > Jboss begin to start using default config file and then > it frozen and I've to do Ctrl-c. Do you have an empty password attribute element? One of the guys here got the same behavior when he tried to start up with an empty password element (he had pgsql set up to trust). I do, too, but have a bogus password just so that it's not empty: foo HTH ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] diff in behavior between server-side and client-side
Folks, I just noticed the following behavior and wonder if there are preferred patterns for dealing with it. I've got an entity bean which can presumably be accessed by remote client-side code (e.g. in another VM) or by session beans running in the jboss server VM. Let's say the entity bean has some code like so: private Money moola; /** * @remote-method */ Money getMoney() { return moola; } I noticed that the remote client code gets a copy of moola but the server-side session bean gets a reference to the member itself (and can thus change it). This makes sense but it does mean that the behavior is different for in-VM client code and remote client code. Is this "standard" EJB behavior? One approach to trade some efficiency for safety would be as follows: Money getMoney() { return new Money( moola); } This way the clients would be unable to modify the private member even if they were running in the same VM. Are there other approaches? TIA, Toby Cabot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] newbie install problem
> I'm having the following error starting up JBoss for the first > time: > > Exception in thread "main" [Default] > javax.xml.parsers.FactoryConfigurationError : > org.apache.crimson.jaxp.DocumentBuilderFactoryImpl > [Default] at > javax.xml.parsers.DocumentBuilderFactory.newInstance(Document > > if I comment out the JAX stuff in run.bat the server comes up, I'm > using the default run.bat (uses crimson.jar) Do you have another JAXP parser in your CLASSPATH? I did and it gave me an error similar to this one IIRC. Try running with an empty CLASSPATH, if that works then add the Sun tools.jar (which tomcat needs). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Starting jboss
> I'm a new user only I had installed jboss and when I > launch the program, by running the script run.bat (I > am win32 user) I got the following message: > CLASSPATH=.;d:\jdk1.3\lib\tools.jar;d:\jdk1.3\jre\lib\rt.jar;d:\jdk1.3\jre\lib\i18n.jar;d:\jdk1.3\jre\lib\jaws > .jar;d:\j2sdkee1.2.1\lib\j2ee.jar;d:\JdbcDrivers\mm.mysql.jar;d:\JdbcDrivers\freetds_jdbc.jar;d:\j2sdkee1.2.1\ > lib\cloudscape\cloudscape.jar;d:\j2sdkee1.2.1\lib\cloudscape\tools.jar;d:\j2sdkee1.2.1\lib\cloudscape\client.j > ar;d:\j2sdkee1.2.1\lib\cloudscape\RmiJdbc.jar;run.jar;../lib/crimson.jar > [Default] java.lang.SecurityException: sealing > violation I had the same problem which seems to go away if you clean out your CLASSPATH so that it has only the sun tools.jar in it before you run jboss. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
(offlist) Re: [JBoss-user] jboss 2.0 connection pool AutoCommit default?
>> Am I right in thinking that holding on to the Connection is a bad >> idea and interferes with the container's container-managed >> demarcation? > > According to the spec, no, that should work fine. This currently > doesn't work in JBoss however. > > It is on my list of things to do when I get around to it if no one > else has done it already. Toby, Thanks! Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Help for a little subproject?
You'll probably want to look at EJBDoclet: http://dreambean.com/projects/ejbdoclet/ . Granted it's not a GUI but I think that's a feature, and if you use it with ant you can automate the building of jars (and even copying to the deploy directory). > I'm experimenting with knocking up a GUI editor for EJBs that > autogenerates the home and proxy (client) interfaces as well as the > deployment > descriptors. Imagine a tree at left and an edit pane at right that > shows either a property sheet for terminal children of the selected > node or a method body editor. The info that goes in deployment > descriptors etc is handled as "properties" of the beans. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss 2.0 connection pool AutoCommit default?
More data: AccountEJB.java from the Sun j2ee tutorial grabs a Connection in setEntityContext(), holds onto it until unsetEntityContext(), and uses it for all database work in the mean time. This doesn't seem to agree with the 1.1 spec (page 168) which shows example code grabbing and releasing the Connection in the same method. If I hack the code to grab and release in each method then it seems to work as expected. Guess I'll point this out to Sun. Am I right in thinking that holding on to the Connection is a bad idea and interferes with the container's container-managed demarcation? Thanks, Toby Cabot > I'm getting my feet wet porting some of the Sun j2ee tutorial code > (stateless session "Converter", BMP entity "Account") over to jboss > 2.0 and postgresql 7.0. It's been pretty straightforward so far, > except for one issue: it appears that the Sun BMP code assumes (and > the Sun > reference j2ee container implements) that jdbc connections are by > default AutoCommit true, since the AccountEJB code never calls >setAutoCommit() or commit(), but the results *are* committed to the >database. > > In jboss/postgresql it looks like AutoCommit is false by default > since I get the same behavior if I explicitly setAutoCommit( false) > that I get if I do nothing (i.e. results never committed to db). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss 2.0 connection pool AutoCommit default?
Folks, Jboss is great! I'm getting my feet wet porting some of the Sun j2ee tutorial code (stateless session "Converter", BMP entity "Account") over to jboss 2.0 and postgresql 7.0. It's been pretty straightforward so far, except for one issue: it appears that the Sun BMP code assumes (and the Sun reference j2ee container implements) that jdbc connections are by default AutoCommit true, since the AccountEJB code never calls setAutoCommit() or commit(), but the results *are* committed to the database. In jboss/postgresql it looks like AutoCommit is false by default since I get the same behavior if I explicitly setAutoCommit( false) that I get if I do nothing (i.e. results never committed to db). Just curious: is this the expected behavior? For all db's or just pgsql? Can it be changed in a configuration file? Regards, Toby Cabot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] war files
> Is it possible to deploy war files with Jboss? Are there special > deployment descriptors necessary? Do one have to package them in > ear files or is it possible to deploy them as raw war files? Where > would they go? And where would you define the context? Christian, Not a complete answer, but in the jboss-tomcat 2.0 distribution there's a file called: jboss-tomcat-2.0/jboss-2.0-FINAL/deploy/tomcat-test.ear It's got a jar and a war in it. HTH, Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user