Re: [JBoss-dev] No GROUP BY in JBoss-QL?

2003-11-26 Thread Stefan Arentz
On Nov 26, 2003, at 3:57 AM, Bill Burke wrote:

Yes, but in EJB QL/JBOSS QL you can only select one item, so group by 
is useless.
I forgot to add a unique primary key to the example below. Which is 
what you typically select on.

Anyway, if you think GROUP BY is useless, how would I do the query 
that I posted earlier? Select *all* records and then filter in my 
session facade? That would be pretty lame as it is really a DB job.

Most app server vendors solved this by either adding GROUP BY as a 
EJB-QL extension or allowing real SQL in ejbSelect methods. JBoss has 
neither so I am not sure how to solve this at the moment.

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] No GROUP BY in JBoss-QL?

2003-11-26 Thread Stefan Arentz
On Nov 26, 2003, at 5:13 PM, Bill Burke wrote:

...

Hopefully our future integration of CMP on top of Hibernate will 
provide this sort of solution.   But, if you want to do this work, we 
would be really happy to have it!
I just put it in JBoss 3.2.2. Where do I submit a diff?

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] No GROUP BY in JBoss-QL?

2003-11-26 Thread Stefan Arentz
On Nov 26, 2003, at 6:26 PM, Alexey Loubyansky wrote:

Excuse me, what have you put in 3.2? Bill wrote about CMP on top of 
Hibernate.
You can submit a patch on sourceforge.net.
Oh. I have a patch that adds GROUP BY to jbossql. It follows the 
notation on:

 http://publib7b.boulder.ibm.com/wasinfo1/en/info/aes/ae/rque_bnf.html

(The group_by_clause part)

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] No GROUP BY in JBoss-QL?

2003-11-25 Thread Stefan Arentz
On Nov 25, 2003, at 10:33 PM, Bill Burke wrote:

Unfortunately EJB QL only allows 1 item in the select statement so no 
GROUP BY.  Use Hibernate.
Even then GROUP BY on one table is useful. For example to change this:

UserId LocationId LastLoginDate
1  1  2003-01-01
1  1  2003-01-10
1  1  2003-01-12
1  2  2003-02-01
1  2  2003-03-12
2  1  2003-03-03
2  1  2003-04-05
into this:

UserId LocationId LastLoginDate
1  2  2003-03-12
2  1  2003-04-05
using something like:

select * from Blah group by LocationId order by Date desc;

There is no easy way to do this without GROUP BY.

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Hibernate Integration

2003-11-25 Thread Stefan Arentz
Is the JBoss group going to add 'official' support for Hibernate to 
JBoss? I mean to bundle it in a .sar, integrate Hibernate Session 
management into the EJB container? All the stuff that is badly 
documented right now :-)

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] No GROUP BY in JBoss-QL?

2003-11-25 Thread Stefan Arentz
On Nov 25, 2003, at 11:19 PM, Alexey Loubyansky wrote:

You are misusing GROUP BY here.
What would you like to get in the result?
How does ORDER BY work here?
GROUP BY is intended to be used with statistical functions. To get the 
result you wrote, I would write the query this way:
SELECT UserId, LocationId, MAX(LastLoginDate) FROM Blah GROUP BY 
LocationId
Ok I am no SQL king :-) But still ... wouldn't this be useful to have 
in JBossQL?

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Hibernate Integration

2003-11-25 Thread Stefan Arentz
On Nov 25, 2003, at 11:58 PM, Bill Burke wrote:

We have Hibernate support both development and production if you want 
it.  We just haven't put up the marketing material, if that's what you 
mean.

Gavin is working on a SAR and a Deployer for Hibernate.  If you're 
interested in helping him with it talk to him.  I have him in copy. 
He's already done some work on this I believe.
I am definately interested in that. But the only thing I can do is just 
testing it. I am about to convert a fairly large EJB/CMP app to 
Hibernate, so the .sar would be very welcome.

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] No GROUP BY in JBoss-QL?

2003-11-25 Thread Stefan Arentz
I noticed that there is no GROUP BY in JBoss-QL. Is that for a reason?

Looking at the source of the EJB-QL compiler, is this something that 
can be added by using the ORDER BY code? The two are probably roughly 
the same?

 S.



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Apple is shipping JBoss 3.2 with the Panther preview

2003-06-23 Thread Stefan Arentz
Heya. I'm at the WWDC and we all got a set of CDs with a prerelease 
version of Panther (OS X 10.3) and new developer tools. On the tools CD 
there is a package called 'JavaApplicationServersDev' and it guess what 
... it contains JBoss 3.2 (together with XDoclet and project templates 
for the new dev tools). This was given to 3800 developers!

 S.



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] [Ann:JBoss.net] Web service support for JMXDocletTask (3.2 and HE AD)

2003-04-09 Thread Stefan Arentz
On Wednesday, Apr 9, 2003, at 10:22 Europe/Amsterdam, Jung , Dr. 
Christoph wrote:

...

- In the EJBDocletTask, you may process

- any session beans attributed with @jboss-net:web-service
urn=service-name scope=scope expose-all=true|false
processEntities=true|false, their methods being marked up with
@jboss-net:web-method.
- any entity bean annotated with @jboss-net:xml-schema urn=type to
let it being exposed with our (still in a prototyping stage) JBoss.net
EntityBean(De)Serializers.
Christoph, is this only available in the last CVS version of xdoclet? I 
can't find those tags in the current beta2 documentation.

 S.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Why the forums suck (Was: Re: [JBoss-dev] AOP versioned ACID objects 1st iteration)

2003-04-04 Thread Stefan Arentz
On Thursday, Mar 27, 2003, at 18:25 Europe/Amsterdam, Bill Burke wrote:

We've been trying hard to keep the development forums as the base of 
design
discussions.  There's a lot of good information there.
The information there is good, but it is a pain to access the forums. 
Here are some of the reasons:

The jboss site is bloated with content. If i'm there to read forums I 
don't want to see flashing banners all the time. It slows down page 
loading a lot and takes up a lot of space on the screen.

The development forums are marked with 'no user questions here please' 
but nobody seems to care much. Questions about *any* subject are posted 
in random forums.

Searching in the forums is a pain. It would be so much nicer to be able 
to search by subject, and not see every single article in a thread but 
just the unqiue thread names.

It is *slow* to read. Nothing beats a good news or email reader. I 
read/browse through a backlog of 100 messages on this list in 15 
minutes. On the forums it will take hours to even find the last 
messages.

What would really help is a forum2email gateway to relay new messages 
to an email address.

I know that begging for features is not allowed here :) so if it an 
option to add that as a module to the new nukes stuff then I can help 
out with that.

 S.



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] AOP versioned ACID objects 1st iteration

2003-03-27 Thread Stefan Arentz
On Thursday, Mar 27, 2003, at 03:28 Europe/Amsterdam, marc fleury wrote:

So in the quest to impove J2EE have you killed it?
bla bla bla bla

marc fleury wrote:

do you motherfuckers realize how BIG this is?
obviously some of you don't get it, give it time, it will become very
obvious
It would be nice if discussions about JBoss 4.0 architecture would move 
from your internal mailing list to the public -dev mailing list. Maybe 
then we can get it and also give useful input. JBoss 4.0 is like a 
black box now. Show us what you are doing. Kudos for Bill of course for 
sharing, but more info would be nice.

Peace.

 Stefan



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Jboss/David Vs. Sun/Goliath?

2003-03-23 Thread Stefan Arentz
On Saturday, Mar 22, 2003, at 23:03 Europe/Amsterdam, Tom Coleman wrote:

...

 Personally, certification is irrelevant to me.  My criteria is whether
 or not the product gets the job done.  I think certification serves to
 answer that question for people who don't know how to figure it out 
for
 themselves.
I have a different view on that. I think certification is important 
because by running all those tests we will find a lot of new bugs in 
JBoss. Certification will make it a better product because *all* parts 
of the specification will be touched instead of just what people are 
using.

I agree that certification is not that important to sell the product, 
but from a development / testing perspective it is *very* useful.

 S.



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] 3.2.0 and commons-httpclient.jar

2003-01-26 Thread Stefan Arentz
I noticed that 3.2.0 now includes a commons-httpclient.jar in 
$JBOSS_HOME/lib. Shouldn't this be in the .sar that actually uses this 
library? The problem is that I also use http-commons.jar in my own 
project and because the JBoss provided one is in $JBOSS_HOME/lib, it is 
always found first. Isn't that wrong?

 Stefan



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] 3.0.6 release this weekend

2003-01-26 Thread Stefan Arentz
On Tuesday, Jan 21, 2003, at 22:18 Europe/Amsterdam, Scott M Stark 
wrote:

I'm doing a 3.0.6 release this weekend so make sure anything you 
commit to
the 3.0 branch is tested and stable before then.

I see that this release is available from sourceforge now. However, the 
release/change notes are missing. Is this an official release or am I 
just too impatient :-)

 S.



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Finders, Selectors and ... deleters?

2003-01-17 Thread Stefan Arentz
I was thinking about something  while looking at my application's 
database behaviour... in many cases it is very inefficient to use a 
finder method together with remove() for large collections. It would be 
so much more efficient to have something like

  public int deleteByCode(int code);

 deleter
   method-namedeleteByCode/method-name
   method-params
   method-paramint/method-param
   method-params
   delete-method
 ejb-qldelete from Transactions t where t.code = ?1/ejb-ql
   /delete-method
 /deleter

This all of course integrated with the cache so that it invalidates 
objects that are already loaded, etc.

I'm just toying around with ideas here.

Stefan, wishes he had fulltime to work on things like this :-/




---
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] MDB container causes resource exhaustion

2003-01-12 Thread Stefan Arentz
I think I have found a serious bug in the code where beans are not 
correctly recycled. However, I do not know/understand all the details 
of how this is implemented in JBoss, so I would like to ask this to the 
person responsible for the MDB container to take a look at this.

My test case is very simple, on JBoss 3.2.0b3 I have this code:

public class OutgoingQueueHandlerBean implements MessageDrivenBean, 
MessageListener
{
   private Logger mLogger;

   private static int count = 0;

   public void setMessageDrivenContext(MessageDrivenContext context)
   {
  mLogger = Logger.getLogger(this.getClass().getName());
   }

   public void ejbCreate()
   {
  mLogger.info(ejbCreate; count =  + ++count);
   }

   public void ejbRemove()
   {
  mLogger.info(ejbRemove; count =  + --count);
   }

   public void onMessage(Message message)
   {
  ...
   }
}

When I feed this MDB say 5000 messages, the counter goes up to 243. 
This is odd since this is a standard JBoss install, which has a MDB 
pool size of 100. Also, ejbRemove is *never* called. This leads to 
resource exhaustion since all my MDBs also connect to other beans or 
queues.

Can someone verify this behaviour?

 Stefan



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Off Topic: Disable underline text in vim?

2002-12-05 Thread Stefan Arentz

On Thursday, December 5, 2002, at 09:39 PM, Dain Sundstrom wrote:


The is completely off topic... Does anyone know how to completely 
disable underlined text in vim?  I recently switched to OS X and the 
vim now underlines key words (and other crap)... it is driving me  nuts.

I'm using

 setenv TERM xterm-color

on OS X to get rid of underline text in emacs. Now i have nice colors.

 S.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] new direction for JBoss AOP

2002-11-29 Thread Stefan Arentz

On Wednesday, Nov 27, 2002, at 17:20 Europe/Amsterdam, marc fleury 
wrote:

I just saw this QDox

http://qdox.sourceforge.net/index.html

It could really help us to read the data from the source files. It 
seems
that there is even a small AOP framework built on it (Nanning).  Guys 
it
is time to really commoditize this.

The funny thing is that we don't even compete with the commercial
vendors on this, we run miles ahead.  IT was there the whole time
and we had been generalizing it the whole time.  I love EJB's. Anyway,
we need to kill all these little efforts and like a magnet bring all 
the
effort and focus on our own framework for this implementation.

THIS IS IT.   WE ARE DONE.  JB5 will be services coupled with
interceptors in one easy to use and assemble framework.

Marc, I've been reading about AOP, but I do not yet see the link with 
JBoss yet. It would be great if you could explain in a few sentences 
what advantage AOP has in an app server setting.

 S.



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power  Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Re: JBoss/CMP Improvements

2002-11-26 Thread Stefan Arentz

On Tuesday, Nov 26, 2002, at 03:40 Europe/Amsterdam, Dain Sundstrom 
wrote:


On Monday, November 25, 2002, at 08:08 PM, Stefan Arentz wrote:


I'd kill to have more test cases and especially performance test 
cases.  I would love to have tests the spit out a XML file with 
timings.  Then we could quickly determine the results of a change.

And then create reports similar to the JUnit html output? Say a 
'JBench' framework ... ?

Never heard of it... have you used it


It doesn't exist, except in my mind. I can start working on it. I've 
been looking for something ilke that to profile my own J2EE apps ...

 S.



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power  Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Re: JBoss/CMP Improvements

2002-11-25 Thread Stefan Arentz

On Saturday, Nov 23, 2002, at 19:55 Europe/Amsterdam, Dain wrote:


On Saturday, November 23, 2002, at 12:20 PM, Stefan Arentz wrote:


Dain, what you need is more real use-cases. This is really basic 
stuff which is used in most applications today. I'll be happy to 
provide you with more examples of such code that is now performing 
less optimal in JBoss. I might sound a bit negative but in reality I 
am *very* positive about JBoss, I just start knowing the code better 
and start seeing its limitations and strengths.

I'd kill to have more test cases and especially performance test 
cases.  I would love to have tests the spit out a XML file with 
timings.  Then we could quickly determine the results of a change.

And then create reports similar to the JUnit html output? Say a 
'JBench' framework ... ?

So, here is my first take at the collection problem.

What is needed is something that Hibernate calls Lazy Loading or Lazy 
Initialization. This means that a call like getUsers() returns a 
smart collection that knows about the (SQL) query that backs it. I 
think almost *all* database access can be delayed, maybe even the 
initial select. Except when it is a SELECT FOR UPDATE  statement 
i guess, I'm not sure about that.
Should be fairly easy. The collection is already a smart object.


Looking into this ...


What kind of access do we have to a Collection?

iterator() - should only call the original SELECT query and then 
fetch a result when Iterator.next() is called or DELETE when remove() 
is used.

add() - should only do a optional SELECT On the PK to prevent 
duplicates and then INSERT

remove() - should only do a SELECT on the PK to find out if the 
object was part of the collection and then DELETE

No... add and remove should (are?) delayed until the context completes 
(invocation or transaction).  They should be preformed as a batch, but 
that is another story.

Is that what the spec says or just good design?

All this CMR stuff is really complicated :-) I'm now looking at the 
code of plugins/cmp/jdbc/bridge/RelationSet.java, which seems like a 
good starting point for these kinds of optimizations.

  S.



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power  Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Re: JBoss/CMP Improvements

2002-11-23 Thread Stefan Arentz
Dain,

I'm throwing this on the mailing list because I think it is a an 
interesting subject to discuss there. And there are also more people on 
the list with similar issues. Hope you don't mind :-)

On Tuesday, November 19, 2002, at 05:37 AM, Dain wrote:

On Monday, November 18, 2002, at 04:21 PM, Stefan Arentz wrote:



On Monday, Nov 18, 2002, at 18:23 Europe/Amsterdam, Dain wrote:


This has already been solved in 3.2 and 4.0.  I think that the patch 
has been applied to 3.0.4, but I'm not sure, as someone else did the 
back port.  If you are seeing this behavior in 3.0.4 try Branch_3_0. 
 If you are still seeing it in Branch_3_0, send me another email.

Dain, thanks for the reply. I just checked out 3.2 and looked at the 
queries that it does. I think the problem is still there, but maybe 
we are talking about different issues.

Here are some more details. My setup is this:

 Users   - UserGroups - Groups

This is a Many to Many relation, JBoss generates the UserGroups table 
which has a UserId and GroupId.

I am doing this to add a user to a group:

 void Group.addUser(User user)
 {
   Collection users = this.getUsers();
   if (users.contains(user) == false) {
 users.add(user);
   }
 }

It  generates the following query:

 select UserId from USERGROUPS where GroupId = ?

My idea was to delay the actual loading of this data until 
users.iterator() or users.size() is being called ... for simple 
add/delete operations it is not needed at all i think.

Now I understand.  I don't think the optimization I added would help 
here.   The (bad) idea was a user would never call getUsers unless 
they really wanted to access the data, but now I see that this is 
plain wrong.  I think this will require a big architectural change, so 
I personally would leave it for 4.0.  If you want to take a look at 
it, be careful with the transaction code. There are a bunch of rules 
in the spec regarding the usable life of a CMR collection and 
transactions.  Whatever you decide, please post a feature request, so 
we can track the issue.

Dain, what you need is more real use-cases. This is really basic stuff 
which is used in most applications today. I'll be happy to provide you 
with more examples of such code that is now performing less optimal in 
JBoss. I might sound a bit negative but in reality I am *very* positive 
about JBoss, I just start knowing the code better and start seeing its 
limitations and strengths.

What I will do is write feature requests about specific CMP issues like 
this one. Good examples with detailed descriptions and code examples. 
That should help for your 4.0 design and maybe some of those 
improvements can be implemented for 3.x. I think 3.0 and 3.2 are really 
important because to be honest I don't see 4.0 available for probably 
at least another year. This is not bad, it is just the way it works. 
JBoss went through the same release cycle with 2.4 - 3.0.

So, here is my first take at the collection problem.

What is needed is something that Hibernate calls Lazy Loading or Lazy 
Initialization. This means that a call like getUsers() returns a smart 
collection that knows about the (SQL) query that backs it. I think 
almost *all* database access can be delayed, maybe even the initial 
select. Except when it is a SELECT FOR UPDATE  statement i guess, 
I'm not sure about that.

What kind of access do we have to a Collection?

iterator() - should only call the original SELECT query and then fetch 
a result when Iterator.next() is called or DELETE when remove() is used.

add() - should only do a optional SELECT On the PK to prevent 
duplicates and then INSERT

remove() - should only do a SELECT on the PK to find out if the object 
was part of the collection and then DELETE

I don't know the EJB spec really that well, so I'm not sure what kind 
of problems this would introduce in combination with caching and 
transactions.

There are a couple of problems with this approach though.

First of all, the Collection classes don't throw exceptions. So for 
example, when Collection.iterator() is called, it is impossible to 
throw a database exception. I'm not sure how to solve this. Maybe the 
iterator can return a stub null bean that throws an EJBException when 
accessed, dunno. Sounds flakey though :-)

'Smart Collections' are easy from a Local Bean when everything is in 
the same VM. What happens when the bean is remote? Fallback to standard 
Collections or use a proxy object to access the smart collection? How 
is that done now?

I'll be happy to discuss this in more detail or even start hacking on 
an implementation for 3.x.

 S.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Release Plan/Status for 3.2?

2002-11-19 Thread Stefan Arentz
Hi,

Is there a release plan for 3.2 final? I don't see much traffic about 
that on this list, how is  release coordinated between the most active 
committers?

 S.



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Shutdown hooks broken on OS X

2002-11-19 Thread Stefan Arentz

On Tuesday, Nov 19, 2002, at 18:20 Europe/Amsterdam, Dain wrote:


On Tuesday, November 19, 2002, at 04:53 AM, Hunter Hillegas wrote:


In the case of OS X, it was an acknowledged bug that is now fixed.


Do I have to use 1.4 or do they have it fixed in a 1.3 version?


I'm using the DP5 1.4.1 release for doing JBoss (client) work and so 
far it work just fine. The performance seems to be less than the 1.3.1 
JDK though .. probably because it is still a beta with some 
debugging/testing code in it.

The DP5 release comes with a /usr/local/bin/jsettestjdk tool to switch 
between the original 1.3.1 and this new version. So you can always go 
back if you are worried about that.

 S.



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Release Plan/Status for 3.2?

2002-11-19 Thread Stefan Arentz

On Tuesday, Nov 19, 2002, at 23:40 Europe/Amsterdam, marc fleury wrote:


most of the development has been taken to the *private* jboss-group
list.  However we are bringing this development back on the forums 
soon,

Marc, that sounds really good! Even if we are not 'allowed' to join the 
group, it would be great if we can just read about the stuff that you 
guys are discussing.

Keep up the good work.

 S.



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development