[JBoss-user] RE: JBoss 3.2.4

2004-01-19 Thread Darren Hartford
Just curious, would the JBoss 3.2.4 include the updated Jboss.NET stack?  
Specifically, I remember seeing in CVS-HEAD support for the value-object pattern with 
the @jboss-net.xml-schema tag, would be nice if this was included in 3.2.4 release.
-D

To: [EMAIL PROTECTED]
From: Rafal Kedziorski [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.2.4

At 12:28 19.01.2004, Rupp, Heiko wrote:

  is there an release date for JBoss 3.2.4?

Afaik, within a week from now.

thx. this is great.

/rk 



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] AW: JbossQL SUM (was: [jboss4 and EJB2.1 ejb-ql?])

2004-01-15 Thread Darren Hartford
Perfect Alexey, thank you!  I will use the dynamic query method for aggregate QL 
methods until EJB2.1 is finalized in JBoss. The testsuite gave a perfect example.

Subject: RE: [JBoss-user] JbossQL SUM (was: [jboss4 and EJB2.1 ejb-ql?])
Date: Thu, 15 Jan 2004 09:30:02 -0600
From: Alexey  Loubyansky [EMAIL PROTECTED]

You must use ejbSelect. Define it in ejb-jar.xml and overwrite it in
jbosscmp-jdbc.xml the same way as a finder query. You could also check
the testsuite for cmp2/ejbselect. Though, it usese dynamic queries.



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] RE: jboss4 and EJB2.1 ejb-ql?

2004-01-12 Thread Darren Hartford
Been trying to get this to work, but no luck. How do you use JbossQL with Xdoclet for 
an EJB.SELECT? The following does not work, and some of the mailing lists mention that 
jboss.query is NOT for SELECT (SELECT is method level while jboss.query is class 
level), so what would one use?

/**
 * @ejb.select
 *signature=java.util.Float ejbSelectStoreSum(java.lang.String store, 
java.util.Date theday)
 *query = SELECT o.amountpaid FROM Store AS o WHERE ((o.store = ?1) AND 
(o.transday=?2))
 * @jboss.query
 *signature=java.util.Float ejbSelectStoreSum(java.lang.String store , 
java.util.Date theday)
 *strategy=none
 *query = SELECT SUM(o.amountpaid) FROM Store AS o WHERE ((o.store = ?1) AND 
(o.transday=?2))
**/

p.s. seems silly to declare an ejb.select for a JbossQL SUM that you know will not 
work as expected outside of Jboss.

TIA!!
-D

Subject: RE: [JBoss-user] jboss4 and EJB2.1 ejb-ql?
Date: Thu, 8 Jan 2004 09:03:55 -0600
From: Alexey  Loubyansky [EMAIL PROTECTED]

Check these change notes. EJB2.1 is not yet supported but you can do it
in JBossQL in 3.2 and HEAD.

[ 794199 ] Functions in SELECT clause
http://sourceforge.net/tracker/?func=3Ddetailaid=3D794199group_id=3D228=
66at
id=3D381174
[ 815115 ] JBossQL: SUM, AVG, MAX, MIN
http://sourceforge.net/tracker/?func=3Ddetailaid=3D815115group_id=3D228=
66at
id=3D381174=20

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of=20
 Darren Hartford
 Sent: Thursday, January 08, 2004 4:45 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] jboss4 and EJB2.1 ejb-ql?
=20
 Hey all,
 Grabbed a snapshot of 4.0DR3 as it is the most recent to see=20
 if the aggregate functions defined in EJB2.1 are ready to go.=20
 Unfortunately, this query did not work or my code is wrong.
=20
 EJB-QL
 SELECT SUM(o.amountpaid) FROM MyTable AS o
 Jboss-QL
 SELECT SUM(o.amountpaid) FROM MyTable AS o


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jboss4 and EJB2.1 ejb-ql?

2004-01-08 Thread Darren Hartford
Hey all,
Grabbed a snapshot of 4.0DR3 as it is the most recent to see if the aggregate 
functions defined in EJB2.1 are ready to go. Unfortunately, this query did not work or 
my code is wrong.

EJB-QL
SELECT SUM(o.amountpaid) FROM MyTable AS o
Jboss-QL
SELECT SUM(o.amountpaid) FROM MyTable AS o

It gives the the error:
09:34:36,460 ERROR [STDERR] org.jboss.ejb.plugins.cmp.ejbql.ParseException: FROM
 not found
09:34:36,460 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.p
arse(EJBQLParser.java:38)
09:34:36,460 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompi
ler.compileEJBQL(JDBCEJBQLCompiler.java:146)
09:34:36,460 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery
.init(JDBCEJBQLQuery.java:42)


Any ideas please?
-D


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] java.util.Date with Jboss3.2.3

2003-12-24 Thread Darren Hartford
Hey all,
Using CMP and JBoss3.2.3, using a field with java.util.Date breaks.

This sucks - you can not effectively use the Jboss-Net WebServices on any objects 
created from the CMP (like value-objects) directly and quickly and instead have to 
specifically cast those particular fields from java.sql.Date to java.util.Date.  That 
is, of course, inefficient and stupid.

Luckily, some people did find this issue and fixed a portion of the problem in the CVS 
version of 3.2-BRANCH.
https://sourceforge.net/tracker/?func=detailatid=376685aid=837092group_id=22866

I am still having problems using finder methods on fields that use java.util.Date.  
The symptom is it appears to look for the date +1900 years when it goes to retrieve 
the record.  Has anyone successfully used java.util.Date in their environments with 
Jboss 3.2.X?  If not, does anyone else think this would be a good thing to fix?

-D


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [AW] java.util.Date with Jboss3.2.3

2003-12-24 Thread Darren Hartford
Phew, found the issue; not Jboss at all.  Actually related to my jdbc/sql mappings for 
using java.util.Date in the CMP Accessor fields:
*   jdbc-type=TIMESTAMP
*   sql-type=DATETIME
is correct, instead of types of DATE which did not save all the necessary 
information to use java.util.Date.  The correct ones are default in cmp-jdbc config 
file, my own fault for overriding the defaults!

Thanks everyone, sorry for the post - just was getting frustrated.  Hopefully someone 
will learn from my experience  =P

-D

-Original Message-
From: Darren Hartford 
Sent: Wednesday, December 24, 2003 12:52 PM
Subject: java.util.Date with Jboss3.2.3

Hey all,
Using CMP and JBoss3.2.3, using a field with java.util.Date breaks.

This sucks - you can not effectively use the Jboss-Net WebServices on any objects 
created from the CMP (like value-objects) directly and quickly and instead have to 
specifically cast those particular fields from java.sql.Date to java.util.Date.  That 
is, of course, inefficient and stupid.

Luckily, some people did find this issue and fixed a portion of the problem in the CVS 
version of 3.2-BRANCH.
https://sourceforge.net/tracker/?func=detailatid=376685aid=837092group_id=22866

I am still having problems using finder methods on fields that use java.util.Date.  
The symptom is it appears to look for the date +1900 years when it goes to retrieve 
the record.  Has anyone successfully used java.util.Date in their environments with 
Jboss 3.2.X?  If not, does anyone else think this would be a good thing to fix?

-D


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJB 2.0/EJBQL spec (was: Jboss 3.2.2/EJB-QL with = or =?)

2003-12-19 Thread Darren Hartford
Hey all,
Just for kicks I downloaded EJB 2.0 Final Release 2 specifications. On page 229 under 
section 11.2.7.6 the operators '=' and '=' are specified. In fact, in the next 
section they use these operators in an example to replace the 'BETWEEN' SQL command. 

However, Dain did catch this (see forum link below) but tells how you can not use 
those operators with DATES.  Unfortunately, that was my scenario (which I agree is 
kinda silly) but the '=' and '=' do work for integer types.  
http://jboss.org/index.html?module=bbop=viewtopict=18352

-D

On Dec 17, 2003, at 6:02 PM, Darren Hartford wrote:

 Hey all,
 Is there any reason why Jboss 3.2.2 throws an exception when an EJB-QL 
 statement contains '=' or '='?

Yes, because EJB-QL is retarded. Use jboss-ql instead. Isn't that 
EJB/CMP2 spec great? :-/

  S.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJB 2.0/EJBQL spec (was: Jboss 3.2.2/EJB-QL with

2003-12-19 Thread Darren Hartford
Actually, Hibernate is looking more and more like a good idea.  Unfortunately, I'm a 
little ignorant on how Hibernate falls under a J2EE umbrella for those that want to 
stay true to J2EE.  Is there any good information/articles available on the subject 
and/or how to migrate from EJB/CMP to Hibernate?

-D

Date: Fri, 19 Dec 2003 08:40:52 -0500
From: Bill Burke [EMAIL PROTECTED]

Better yet, use Hibernate.

Darren Hartford wrote:

 Hey all,
 Just for kicks I downloaded EJB 2.0 Final Release 2 specifications. On page 229 
 under section 11.2.7.6 the operators '=' and '=' are specified. In fact, in the 
 next section they use these operators in an example to replace the 'BETWEEN' SQL 
 command. 
 
 However, Dain did catch this (see forum link below) but tells how you can not use 
 those operators with DATES.  Unfortunately, that was my scenario (which I agree is 
 kinda silly) but the '=' and '=' do work for integer types.  
 http://jboss.org/index.html?module=bbop=viewtopict=18352
 
 -D
 
 On Dec 17, 2003, at 6:02 PM, Darren Hartford wrote:
 
 
Hey all,
Is there any reason why Jboss 3.2.2 throws an exception when an EJB-QL 
statement contains '=' or '='?
 
 
 Yes, because EJB-QL is retarded. Use jboss-ql instead. Isn't that 
 EJB/CMP2 spec great? :-/
 
   S.
 


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jboss 3.2.2/EJB-QL with = or =?

2003-12-17 Thread Darren Hartford
Hey all,
Is there any reason why Jboss 3.2.2 throws an exception when an EJB-QL statement 
contains '=' or '='?

-D


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] AW: [OT] reporting engines/tools

2003-11-25 Thread Darren Hartford
Hi Dudley,
I've gone through the reporting jungle myself, and my recommendation is to look into 
the iReport/JasperReport combo.  Using iReport's JRCustomDataSource you can write EJB 
connectors to help designing reports for EJB reporting instead of just SQL reporting 
(but it does SQL reporting just as good ;-).

my two coppers,
-D

--__--__--

From: Butt, Dudley [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
Date: Tue, 25 Nov 2003 16:52:45 +0200
Subject: [JBoss-user] [OT] reporting engines/tools
Hi all, 

Has anyone used any good reporting stuff recently? Please let me know. We're currently 
evaluating to get rid of our Crystal reports, just need to know
some other options...THANX 




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


[JBoss-user] RE: Challenge for EJB-QL, JBossQL, or declared SQL?

2003-11-06 Thread Darren Hartford
I imagine ORDER BY is part of it, but the harder piece is getting the last sequence 
per batchnumber and THEN return that collection of objects (see example results below).

Regular SQL would be something like SELECT batchnumber, MAX(sequence as MAX_sequence) 
FROM thetable ORDER BY batchnumber for JUST getting the last sequence number.  You 
still have to do a JOIN or SUBSELECT from this query to attach to the actual search 
critera (item = foo or what-have-you). Then, the end result is still to return a 
collection of EJB local or remotes.

Is there an elegant, object-oriented way of handling this kind of scenario? A 'J2EE' 
way of handling it?

-D




Subject: RE: [JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL?
From: [EMAIL PROTECTED]
Date: Thu, 6 Nov 2003 10:52:24 +0100

ORDER BY works in JBossQL.
It is also in the EJB 2.1 spec. But, I believe JBoss 3.2.x currently 
supports 2.0.

Regards,

Harm de Laat
Informatiefabriek
The Netherlands


Stephane Nicoll [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
11/06/2003 09:53 AM

I am not sure ORDER BY is allowed (what about caching then?)
I know EJB QL does not allow that. Maybe JBoss QL.

Regards,

Stephane

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 9:24 AM

Doesn't 'ORDER BY' help you?


Darren Hartford [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
11/05/2003 04:10 PM

Hey all,
I got an interesting problem that I should think some of you may have 
already come across in some fashion or another.  I want to do a search to 
return a collection of objects, but it needs to be very specific as 
follows:

Example table:
batchnumber | sequence | receive_date | town | item | status
with example values:
1,1,11/5/2003,MONTREAL,widget, INVENTORY
1,2,11/5/2003,MONTREAL,widget, FRONT
1,3,11/5/2003,MONTREAL,widget, INVENTORY
2,1,11/5/2003,MONTREAL,foo, FRONT
3,1,11/5/2003,MONTREAL,bar, FRONT
3,2,11/5/2003,MONTREAL,bar, SOLD
4,1,11/5/2003,TORONTO,bar, FRONT
5,1,11/6/2003,MONTREAL,bar, INVENTORY

What I would like is the **last sequence-per-batchnumber** for results 
based on a search.
example psuedo-query:
SELECT OBJECT(o) WHERE ((o.town = MONTREAL) AND (o.receive_date = 
11/5/2003))
would return:
1,3,11/5/2003,MONTREAL,widget, INVENTORY
2,1,11/5/2003,MONTREAL,foo, FRONT
3,2,11/5/2003,MONTREAL,bar, SOLD

And another psuedo-query:
SELECT OBJECT(o) WHERE (o.item = bar) 
would return:
3,2,11/5/2003,MONTREAL,bar, SOLD
4,1,11/5/2003,TORONTO,bar, FRONT
5,1,11/6/2003,MONTREAL,bar, INVENTORY

Based on JBoss 3.2.2 and Mysql 3.23, could EJB-QL, JBossQL, or some type 
of declared SQL be able to solve this? An example pretty please!

Thanks everyone!
-D


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


[JBoss-user] Challenge for EJB-QL, JBossQL, or declared SQL?

2003-11-05 Thread Darren Hartford
Hey all,
I got an interesting problem that I should think some of you may have already come 
across in some fashion or another.  I want to do a search to return a collection of 
objects, but it needs to be very specific as follows:

Example table:
batchnumber | sequence | receive_date | town | item | status
with example values:
1,1,11/5/2003,MONTREAL,widget, INVENTORY
1,2,11/5/2003,MONTREAL,widget, FRONT
1,3,11/5/2003,MONTREAL,widget, INVENTORY
2,1,11/5/2003,MONTREAL,foo, FRONT
3,1,11/5/2003,MONTREAL,bar, FRONT
3,2,11/5/2003,MONTREAL,bar, SOLD
4,1,11/5/2003,TORONTO,bar, FRONT
5,1,11/6/2003,MONTREAL,bar, INVENTORY

What I would like is the **last sequence-per-batchnumber** for results based on a 
search.
example psuedo-query:
SELECT OBJECT(o) WHERE ((o.town = MONTREAL) AND (o.receive_date = 11/5/2003))
would return:
1,3,11/5/2003,MONTREAL,widget, INVENTORY
2,1,11/5/2003,MONTREAL,foo, FRONT
3,2,11/5/2003,MONTREAL,bar, SOLD

And another psuedo-query:
SELECT OBJECT(o) WHERE (o.item = bar) 
would return:
3,2,11/5/2003,MONTREAL,bar, SOLD
4,1,11/5/2003,TORONTO,bar, FRONT
5,1,11/6/2003,MONTREAL,bar, INVENTORY

Based on JBoss 3.2.2 and Mysql 3.23, could EJB-QL, JBossQL, or some type of declared 
SQL be able to solve this? An example pretty please!

Thanks everyone!
-D


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


[JBoss-user] soft-locking and Value-Objects - correct behavior?

2003-10-06 Thread Darren Hartford
Hi all,
I'm using Jboss 3.2.2RC3 for development, and came across a scenario I would like to 
make sure I understand correctly.

I have an entity bean setup with soft-locking:

 * @ejb:bean
 *type=CMP
 *cmp-version=2.x
 *name=MyStuff
 *view-type=local
 *transaction-type=Container
 *use-soft-locking = true
 * @ejb.value-object
 *   name=MyStuff
 *   match=*

I noticed when soft-locking was enabled, a version field was added to the table.  
That's fine and good.

When I try to utilize a value-object to send data to Struts or another client, it is 
incrementing this version number EVERY TIME, even though it is just for reading and 
not submitting data back.

I would have though soft-locking would change the version number whenever the actual 
data changed, and not every time it was read.

Is this correct behavior?
TIA!
-D


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


[JBoss-user] soft-locking and Value-Objects

2003-10-03 Thread Darren Hartford
Hi all,
I'm using Jboss 3.2.2RC3 for development, and came across a scenario I would like to 
make sure I understand correctly.

I have an entity bean setup with soft-locking:

 * @ejb:bean
 *type=CMP
 *cmp-version=2.x
 *name=MyStuff
 *view-type=local
 *transaction-type=Container
 *use-soft-locking = false
 * @ejb.value-object
 *   name=MyStuff
 *   match=*

I noticed when soft-locking was enabled, a version field was added to the table.  
That's fine. When I try to utilize a value-object to send data to Struts or another 
client, it is incrementing the version number EVERY TIME, even though it is just for 
reading. 

I would have though soft-locking would change the version number whenever the actual 
data changed, and that would be great if trying to send a value-object with changed 
data and someone else changed it beforehand, but NOT when someone else reads the 
VO(and changes the version number) before the updated value-object can commit the 
change.

Is this correct behavior?
TIA!
-D


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


[JBoss-user] [OT] ejb-ref/ejb-external-ref...what? why?

2003-09-26 Thread Darren Hartford
Hey all!
I have an older application that I wrote with EJB's to run on JBoss. This works great 
as-is, and now going back through and re-factoring (not exactly J2EE code, trying to 
get that way).

I have session beans that import entity bean code and everything works fine.  When I 
start playing with ejb-refs however, things start getting freaky.

First, what the heck is ejb-ref/ejb-external ref?

Why should I use them? (I'm not right now)

What is the difference between ejb-ref and JNDI (or how do they work/not work 
together)?

I've searched through the java.sun forums, but that didn't help, hopefully the Jboss 
people can shed some light on the subject =)
-D


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


[JBoss-user] RE: Frustrated with CMR on Jboss

2003-09-12 Thread Darren Hartford
Hi Ingo, all,
I posted more of the challenging code on the forums, didn't want to clutter the 
mailing list:
http://www.jboss.org/thread.jsp?nav=falseforum=46thread=38939
thanks all, I'm hoping it is something silly!
-D

--__--__--

From: Ingo Bruell [EMAIL PROTECTED]
Date: Fri, 12 Sep 2003 10:44:00 +0200
Hi,

some more information would be usefull. How about the transaction 
Attribute of the methods. Getting a Collection of ValueObjects is
an often used feature and works for me well.

best regards

Ingo Bruell



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


[JBoss-user] Frustrated with CMR on Jboss

2003-09-11 Thread Darren Hartford
Hey all, been banging my head on CMR for couple of weeks now, and since my desk broke 
it's about time to ask the mailing list for some help ;-)

If you have a 1-N relationship between, say, an Organization bean that has many 
Gangsters. And, let's say you want to return a collection of value-objects of the 
Gangsters for use in Web/Thick-Client/what-have-you.

I would think you would simply have something like:
/*
*CMR Relational Methods
*/
/**
* @ejb.interface-method
* view-type=local
*
* @ejb.relation
* name=Organization-Gangsters
* role-name=one-organization-has-many-gangsters
* cascade-delete=no
*
* @ejb.value-object
* aggregate = com.mycompany.entity.interfaces.GangsterValue
* aggregate-name = AllGangsters
* match = *
* members = com.mycompany.entity.interfaces.GangsterLocal
* members-name = Gangsters
* relation = external
* type = Collection
* exclude=true
*
* @jboss.relation-mapping style=foreign-key
*
*/
public abstract java.util.Collection getGangsters();


And then call Organization.getGansters(). But no...you get the stupid-ass 'CMR can 
only be used in the transaction in which it was created'.  Ok, so use a method that 
puts them in ValueObjects - with Xdoclet it will also create the aggregate method 
called getAllGangsterss() for the OrganizationValue object that will return a 
collection of GangsterValue objects, but that ALSO comes up with the same error.

I've gone through the mailing lists and the forums, and there was a reference to using 
UserTransaction, but that caused some issues when pushed beyond one concurrency (and 
doesn't seem like the best solution).  I remember someone stating this is how it is 
supposed to act in regards to specs, but that does not make sense - how do you get the 
information out?  Any help please would be great!

-D


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


[JBoss-user] forums versus mailing list

2003-09-10 Thread Darren Hartford
Hey all,
So what is the difference between using the JBoss forums versus the mailing lists?
-D


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


[JBoss-user] wierd - cmr w/vo first time null?

2003-09-09 Thread Darren Hartford
Hey all,
Optimizing my program and testing as I go through, and came across an unusual 
scenario. I have an Organization bean with a 1-N relationship to a Member bean.  There 
is an Organization.getMembers() method that is an aggregate value-object.  When I call 
the Organization value-object with the associated Memeber(s) value-object, the first 
time it gets called is always runtimeexception: null, but after that everything works 
o.k. (this is in a controlled test environment, and it should never be null).  BUT, if 
I exclude getMembers() from the value-object, everything works o.k., even the first 
time.

This works great for my environment, other than having the first time be a 
runtimeexception:null.

Any ideas?? 

-D


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


[JBoss-user] [update] wierd - cmr w/vo first time null?

2003-09-09 Thread Darren Hartford
correction: This issue with the first-time null exception seems related to 
JDBCOptimistic lock - once I went back to QueuedPessimisticEJBLock the first-time 
nulls no longer happen (but performance drops).

--__--__--

Hey all,
Optimizing my program and testing as I go through, and came across an =
unusual scenario. I have an Organization bean with a 1-N relationship to =
a Member bean.  There is an Organization.getMembers() method that is an =
aggregate value-object.  When I call the Organization value-object with =
the associated Memeber(s) value-object, the first time it gets called is =
always runtimeexception: null, but after that everything works o.k. =
(this is in a controlled test environment, and it should never be null). =
 BUT, if I exclude getMembers() from the value-object, everything works =
o.k., even the first time.

This works great for my environment, other than having the first time be =
a runtimeexception:null.

Any ideas?

-D



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


[JBoss-user] Re: CMR with Xdoclet and Jboss

2003-09-03 Thread Darren Hartford
Hey harm,
This got me back on track, thank you! I will still need to figure out integrating the 
old process (caseId_fk,scheduleIncrement-caseId_scheduleIncrement), but I do have one 
more question:
I am still getting the A CMR collection may only be used within the transaction in 
which it was created error when calling getAdvertisements(). I was hoping the 
value-objects you sampled below would remedy this, but unfortunately the error is 
still there.  getAdvertisements() is called from a session bean.  Any help would be 
appreciated, so close!
-D


--__--__--

Message: 11
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMR with Xdoclet and Jboss
From: [EMAIL PROTECTED]
Date: Wed, 3 Sep 2003 12:04:22 +0200
Reply-To: [EMAIL PROTECTED]

Hi Darren,

The best I can do for you is provide you with an example.

This is a bi-directional 1-n relation. (Category - Advertisement).

In CategoryBean.java:

/**
 * @ejb.interface-method 
 * @ejb.relation 
 *  name = Category-Advertisements
 *  role-name = CategoriesHasAdvertisements
 *  cascade-delete = no
 * @ejb.value-object
 *  aggregate = 
nl.xbase.advertisement.value.AdvertisementValue
 *  aggregate-name = AllAdvertisement
 *  members = 
nl.xbase.advertisement.interfaces.AdvertisementLocal
 *  members-name = Advertisements
 *  relation = external
 *  type = Collection
 * @jboss.relation-mapping style=foreign-key
 */
public abstract Collection getAdvertisements();
/**
 * @ejb.interface-method
 * @param advertisements
 */
public abstract void setAdvertisements(Collection advertisements);

In AdvertisementBean.java:

/**
 * @ejb.interface-method 
 * @ejb.relation 
 *  name = Category-Advertisements
 *  role-name = AdvertisementBelongsToCategory
 *  cascade-delete = yes
 * @jboss.relation-mapping style = foreign-key
 * @jboss.relation
 *  fk-column=category_fk
 *  related-pk-field=categoryId
 */
public abstract CategoryLocal getCategory();
/**
 * @ejb.interface-method
 * @param category
 */
public abstract void setCategory(CategoryLocal category);

With this example you should be able to achieve what you desire.


Good luck!

Cheers,

Harm de Laat
Informatiefabriek
The Netherlands


Darren Hartford [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
09/02/2003 09:08 PM
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
[JBoss-user] CMR with Xdoclet and Jboss






Hey all,
3 days latertime to ask the list :P

I have an existing 1:N table relationship between table Case and Schedule. 
Now, the pk for Case is 'caseId' and for Schedule it is 
'caseId_scheduleIncrement' (created from two other fields 'caseId_fk' and 
'scheduleIncrement', old process that must be maintained). You can guess 
that Case.caseId maps to Schedule.caseId_fk for the 1:N relationship. 
These two tables are already populated with data, and I would like to 
setup CMR without interruption/change to the process and THEN, hopefully, 
be able to call Case.getSchedules() and return a collection/set of all 
schedules for that case from a Session Bean.

I have had most every error related to CMR, including the both roles of a 
relationship...must have key fields and something like CMR can not be 
used outside of creation transaction(deploys correctly, but can not use 
method).  For Schedule, I have been using ejbcreate to populate the 
'caseId_fk', 'scheduleIncrement', and 'caseId_scheduleIncrement' field 
programattically - this works without CMR, but now trying to get these to 
EJB's to work with CMR.

Jboss 3.2.2RC2, Xdoclet 1.2b4

---snip---


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


[JBoss-user] CMR with Xdoclet and Jboss

2003-09-02 Thread Darren Hartford
Hey all,
3 days latertime to ask the list :P

I have an existing 1:N table relationship between table Case and Schedule. Now, the pk 
for Case is 'caseId' and for Schedule it is 'caseId_scheduleIncrement' (created from 
two other fields 'caseId_fk' and 'scheduleIncrement', old process that must be 
maintained). You can guess that Case.caseId maps to Schedule.caseId_fk for the 1:N 
relationship. These two tables are already populated with data, and I would like to 
setup CMR without interruption/change to the process and THEN, hopefully, be able to 
call Case.getSchedules() and return a collection/set of all schedules for that case 
from a Session Bean.

I have had most every error related to CMR, including the both roles of a 
relationship...must have key fields and something like CMR can not be used outside of 
creation transaction(deploys correctly, but can not use method).  For Schedule, I have 
been using ejbcreate to populate the 'caseId_fk', 'scheduleIncrement', and 
'caseId_scheduleIncrement' field programattically - this works without CMR, but now 
trying to get these to EJB's to work with CMR.

Jboss 3.2.2RC2, Xdoclet 1.2b4

Attempt so far:
/*
 *CMR Relational Methods (Schedule EJB)
 */
/**
 * @ejb.interface-method
 *   view-type=local
 *
 * @ejb.relation
 *  name=Case-Schedules
 *  role-name=many-schedules-has-one-case
 *
 * @jboss:relation
 *  fk-constraint=false
 *  related-pk-field=caseId_fk
 *  fk-column=caseId
 * @weblogic.column-map
 *   key-column=caseId
 *   foreign-key-column=caseId_fk
 */
public abstract CaseLocal getCase();



/*
 *CMR Relational Methods (Case EJB)
 */
/**
 * @ejb.interface-method
 *   view-type=local
 *
 * @ejb.relation
 *  name=Case-Schedules
 *  role-name=one-case-has-many-schedules
 *
 * @weblogic.column-map
 *   key-column=caseId_fk
 *   foreign-key-column=caseId
 */
public abstract java.util.Set getSchedules();


Any help would be great, I want to do this as 'correct' as possible with least 
workarounds (workarounds=hairpulling=timedoingotherstuff)
TIA!
-D


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


[JBoss-user] RE: [AW] jboss.net - try to deploy

2003-08-14 Thread Darren Hartford
Ah! That was it - double deployment tag in the web-service.xml file 
(xdoclet-module-jboss-net generated, changes made double-tags). That was it, thanks 
CGJ!

--__--__--

Darren,

There seems to be a parsing problem in one of your deployment =
descriptors.
Can you check them (e.g., using Explorer?). The stacktrace could give =
you a
hint which deployer/descriptor was the reason.

CGJ



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jboss.net - trying to deploy

2003-08-14 Thread Darren Hartford
Hi all,
I'm following the example on http://www.nsdev.org/jboss/stories/jboss-net.html, and 
everything seems to get created fine, but when I try to deploy I get the following 
error:

===snip===
org.jboss.deployment.DeploymentException: exception in init of file:/C:/jboss/jb
oss-3.2.2RC2/server/default/deploy/NETTEST.jar; - nested throwab
le: (org.jboss.deployment.DeploymentException: Fatal Error: URI=null Line=43: Th
e processing instruction target matching [xX][mM][lL] is not allowed.; - neste
d throwable: (org.xml.sax.SAXException: Fatal Error: URI=null Line=43: The proce
ssing instruction target matching [xX][mM][lL] is not allowed.))
===snip===

Has anyone seen this or any recommendations what to look for?

TIA!
-D


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: AW: [JBoss-user] JBoss: Not Ready For Prime Time

2003-04-01 Thread Darren Hartford
Thank you Dr. Christoph, this seems to be going towards the actual crux of the 
conversation, and very good stand.  From my standpoint, going use a non-technical 
example, people buying furniture...

*Some people like to buy nice, warranted, expensive furniture for their home, ready to 
go and shipped to their house and transported in and setup. If something fails or 
breaks during transport, moving it in, or setting it up, they can demand a replacement 
or compensation. - FULL SERVICE

*Others go to the local store, get something that works for them, and move it 
themselves and then expect nothing to go wrong until it is time to replace it, or it 
is asked to do more than expected. - EFFICIENCY

*Then there are the people who will get unfinished/unassembled furniture at relatively 
low cost and put it together themselves.  Maybe make their own little changes like 
different color/laquer, or maybe do a little woodwork or upholstry to meet their 
needs. - SELF SERVICE

*Last, and not least, are those people that will start with paper and pen tools to 
design what they want, research and identify the tools and materials they need, then 
spend time building exactly what they want or what other people may want. - I WANT A 
RECLINING, MASSAGING, HEATED COUCH WITH BUILT-IN REMOTE, MINIFRIDGE, AND A CUP-HOLDER 
THAT WILL FIT MY BEVERAGE.

It is these last people with innovations that make our world go forward, challenging 
ideas, making a better life for those of use who may want SELF SERVICE, EFFICIENCY, or 
FULL SERVICE.  Open Source is unique in that it can offer tools for most, if not all 
these people at lower costs then elsewhere.  There are FULL-SERVICE contracts using 
open-source software available, including JBoss if this is what you are looking for.

p.s. As for the Axis comment, I think everyone that has decent technical experience 
realizes that the JBoss.Net/Axis project is new, unique innovation, attempting to 
reduce development time by making single POJO (Java Objects/Classes) that can be used 
both in the Java/EJB world *AND* the Web Service world through Axis, all through the 
same platform.  This innovation takes time, insight, and support.  If Jboss.net/axis 
is something you really want then offer time or insight or support.

my two coppers,
-D


---
From: Jung , Dr. Christoph [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
Now that is the point where I have to stand up. Where was your bug =
report?
Where was your contribution in the form of feature requests, fixes, faq
points such that other users of jboss (like you know refrain to be one =
of
those) who do not like hot-deployment can access the axis console =
directly?
I didn=B4t even know your name until this ugly posting.=20

We are working 11 hours a day and dedicating our weekends to improve =
JBoss
just to get to hear not ready for primetime instead of good job, but =
we
could improve it here and there, heres my code that points into that
direction. Until I see a major part of JBoss users requesting me to =
shift
development focus, I will follow my own needs (the ones of my company,
respectively).

I find your destructive stance of leaning back and expecting everything =
to
run out of the box (without compilation) extremely odd. It will not =
work
except with open source projects sponsored by IBM and throwing a lot of
money and resources into it. Linux would have died with people like =
yours
(and how often have I compiled that kernel, I can tell you).=20

So, my conclusion is that you are not ready for JBoss and you have not =
the
slightest idea of team work and psychology.=20

CGJ



---
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] struts.sar file?

2003-03-04 Thread Darren Hartford
Hi all,
Has someone made a 'struts.sar' file, or equivalent, that will have all the normal 
struts and validator libraries to support webapps? If not, would this be the right 
approach? If get confirmation that this is the right approach and no one has done one 
yet, I'll see if I can hack something.

thanky,
-D


---
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [OS] JBoss/EJB build systems - Xdoclet with Ant, Maven, Centipede?

2003-02-10 Thread Darren Hartford
Hi All,
Been using Ant and Xdoclet, great tools, makes my life a LOT easier than good-ol' 
writing interfaces on my own :-)

I have started migrating to the Maven build system, to support more project management 
features, auto javadoc creation and deployment, changelog, blah blah blah.  I know you 
can do all these things with Ant (I used to do that).  Looking to the Jboss community 
to see where everyone else is going, experiences, etc.  Maven/xDoclet integration 
requires community support and dev, and would like opinions/feedback if anyone else is 
going this route? 

p.s. Is the Jboss-Xdoclet going to be a seperate module controlled by JBoss and 
available through a JBoss controlled location, or still retrieved through xDoclet?

thanks, just looking for some discussion
-D


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



[JBoss-user] Jboss/java on Linux SMP box?

2003-01-14 Thread Darren Hartford
Hey all,
I have been having some performance issues with JBoss, and thought it related to 
ignorance or poor CMP/cache setup.  However, I just happen to test the same 
application from a dual-processor Linux box to a single-processor Linux laptop, and 
the laptop performed better.  Also have a specialized java-based XML-RPC application 
server (not related to JBoss) that has the same issue of performance between 
dual-processor and single-processor hardware servers.

All are running Redhat 7.3, running Sun JDK 1.4.1_01.  Any ideas if java on Linux SMP 
has some performance issues, or if someone has had similar issues?

-D


---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Store large pdfs with JBoss

2003-01-13 Thread Darren Hartford
Just throwing in my two cents -

Outside of JBoss, with Content Management Systems, the most common problem is how to 
handle large amounts of data, which is the case here.  With databases, you have to 
scale your server up to handle it.  With a Filesystem approach, you can take advantage 
of HSM - Hierarchial Storage Management - to manage the large amounts of data.  You 
create/add files to your environment, and at some point they reach a state where the 
file will no longer change (maybe right after creation) and will not be requested 
frequently (ready to be archived).

Usually you can figure out that in your environment a plan - for instance, after a 
file has been added it is less-frequently requested after 90 days.  At this time, you 
can burn those files to CD or DVD and put them in a jukebox, migrating to a less 
expensive and less fast storage environment. After 3 years, store offline on tape. 
Just an example, your environment will be different.

The best approach to this is to have two keys in your database - one that is the 
unique identifier of the file you are looking for, the the second is the actual 
pointer to the file.  This way, if you HSM and move files to CD/DVD, you're system 
still maintains integrity of the unique identifier for lookups, but the pointer can 
change as-needed.  You can also archive your files offline on tape and just have a 
pointer that will bring up a 'quickfind' page of the location, vault #, box #, tape #, 
and file to find the stored offline file.

There are a lot of content management/HSM products already out there, but I personally 
have not found one within Open Source world that would satisfy my requirements, maybe 
you'll have better luck and share with us? :-)

two cents,
-D, CDIA+ 

-

Guy Rouillier [mailto:[EMAIL PROTECTED]] wrote:
 Just store areference to a location in the filesystem, and keep the 
 binary files in the filesystem.  You can back up your filesystem
 as easily as you can back up your Oracle logs.

I tried this for a content management system I worked on once.  We had
terrible problems keeping the database and the filesystem in sync.  For
one thing, the database is transactional; the filesystem isn't.  You can
roll back an operation on the database, but not on the filesystem.
Therefore, if your application crashes, you've lost all guarantees of
referential integrity, which a database by itself can provide.

If you have everything in the database, you can back it up by using the
database's own replication facilities to create a mirror, without
shutting down the application.  But if you keep your PDFs in the
filesystem, the only way to be sure of making a consistent backup is to
shut down your application, because you need to make sure that (a) there
are no files that containing data for uncommitted transactions, and (b)
all the files for committed transactions have been written.

Also, most filesystems are notoriously poor at storing huge numbers of
files in a single directory.  Even if you store files in subdirectories
and sub-sub-directories, you'll be limited by the speed at which your
filesystem can traverse directory hierarchies and match filenames.
Different filesystems may or may not be optimised for that sort of
access.  Databases, on the other hand, are designed to quickly store and
retrieve items in tables containing millions of rows.

 Every time you do a full database backup, you are going to be 
 backing up that same, **unchanged** 20 GB of PDFs!

In most databases, most of the data remains invariant most of the time.
So this point applies to most databases, not just the ones that store
PDFs.  The answer is not to do full database backups; instead, use the
database's own replication facility, which is designed to do this job
efficiently.

Benjamin


---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] maybe just dreaming - Entity Bean change reflect

2003-01-10 Thread Darren Hartford
Hi MS,
I understand with CMP you can have it create a table if it does not already exist. I'm 
looking for the case where there is an existing table, with data in it, and need to 
add new fields to the table.
thanks,
-D

Hello,

Redeploying the entity bean should take care of creating the table... Am i
missing some point here?

rgds
MS

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] maybe just dreaming - Entity Bean change reflect
in Persistant Storage?


Hi All,
I may be just dreaming, but when making a change to a CMP Bean, is there
some functionality to automatically update the Persistant Storage with the
change?  As an example, add some new fields to the bean and have it add the
new fields to the attached database?

Jboss3.0.4/Jetty w/ MySQL DB

Thanks in advance if anyone has a solution!

-D


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


--__--__--

Message: 2
From: Igor Semenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 9 Jan 2003 22:59:02 +0200
Subject: [JBoss-user] per application login
Reply-To: [EMAIL PROTECTED]


We have many applications (stores) deployed
In jboss, each have one or more users to perform
store administration tasks.
I'm thinking about best way to limit users to 
their own stores. Login information is stored
In table:
userId, password, storeId ...

First idea is to overwrite DatabaseLoginModule and
put storeId attribute into Principal object, then
handle access rules within application. 
Ideally login module should reject login with storeId
different from 'current storeId'. 

Any idea?

Thanks,
Igor Semenko.



--__--__--

Message: 3
To: [EMAIL PROTECTED]
From: Weiqi Gao [EMAIL PROTECTED]
Date: Thu, 09 Jan 2003 14:59:23 -0600
Subject: [JBoss-user] Re: Intermittent error on deployment
Reply-To: [EMAIL PROTECTED]

Scott M Stark wrote:
 
 That can't be this case as he said retouching the descriptor resulted in 
 a successful deployment. If the process was out of fds due to leaks its
  not likely that it suddenly got one. How is the build being done?
  Perhaps the descriptor is being removed and there is a race condition
  between seeing the update and replacing the descriptor.

In my case, I'm touching the .ear file in the deploy directory.  The ear 
file is 5.4MB in size.  Could it be that the file scanner saw the file 
coming and immediately tied to read META-INF/application.xml, before the 
file is completely there?

Copying the file typically take this long:

   real0m0.240s
   user0m0.050s
   sys 0m0.180s

--
Weiqi Gao
[EMAIL PROTECTED]




--__--__--

Message: 4
Date: Thu, 09 Jan 2003 15:23:11 -0600
From: Dan Christopherson [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Cmp vs hibernate
Reply-To: [EMAIL PROTECTED]

Their performance was pretty good in what it was optimized for: 
navigational access. Query performance was horrendous.
This is somewhat the mirror image of relational database at the same 
level of maturity: they were great for queries, but navigational access 
sucked.

-danch

Eric Kaplan wrote:
 Maybe things have changed recently, but I think the biggest thing
 against them (besides some of their obscene pricing policies -
 read ObjectStore) was their poor performance querying across very large sets
 of data compared to their stodgy relational counterparts.
 
 They were stillborn because they fell apart under certain conditions.
 
 Eric
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Dan
 Christopherson
 Sent: Thursday, January 09, 2003 2:32 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Cmp vs hibernate
 
 
 Matthew Baird wrote:
 
couple notes:

- try selling an enterprise level application that doesn't support
a standard rdbms on the backend (oracle/sql server/db2)
 
 
 Probably the second biggest thing (after fear of change) that caused
 ODBMS's to be stillborn: Will insert corporate standard reporting
 tool work with it? No!?!?! How do you expect to sell it?
 
 -danch
 
 




--__--__--

Message: 5
From: Scott M Stark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: Intermittent error on deployment
Date: Thu, 9 Jan 2003 15:04:43 -0800
Organization: JBoss Group, LLC
Reply-To: [EMAIL PROTECTED]

Yes and this is a known issue. Deployment updates need to be atomic or there
is a race between completing the update and the scanner trying to deploy the
modified content. We need a lock file notion or something to allow for large
redeploys.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

[JBoss-user] maybe just dreaming - Entity Bean change reflect in Persistant Storage?

2003-01-09 Thread Darren Hartford
Hi All,
I may be just dreaming, but when making a change to a CMP Bean, is there some 
functionality to automatically update the Persistant Storage with the change?  As an 
example, add some new fields to the bean and have it add the new fields to the 
attached database?

Jboss3.0.4/Jetty w/ MySQL DB

Thanks in advance if anyone has a solution!

-D


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



Re[4]: [JBoss-user] Optimistic locking ported to JBoss-3.2

2002-12-26 Thread Darren Hartford
Ah, thanks Alex! Unfortunately, answering some questions lead to more questions for 
even better understanding ;-)

Using the Version Strategy as an example, if you have one app server talking to one 
database (equiv to commit-option B), will this make mostly-read transactions better or 
not make that much of a difference?

Actually, now that I'm thinking about it, would someone help enlighten my dim LED with 
a simple layout about when this cool Optimistic-Locking would offer the best results, 
and when it is not (I assume highly-volatile Tx entities would not, but assuming 
equals ass-u-me)?

Single JBoss, Commit-Option A, D
--Read only entities, mostly-read entities, and highly-volatile entities
Single JBoss, Commit-Option B
--Read only entities, mostly-read entities, and highly-volatile entities
Multi-Jboss Cluster, Commit-Option C
--Read only entities, mostly-read entities, and highly-volatile entities

Gone through Dain's great JbossCMP pay-for docs, well worth it!


DJ I don't understand how this works yet.  I'd really appreciate a detailed
DJ explanation of what happens when 2 threads/transactions simultaneously
DJ access one entity.  I'd like to know what state the jboss entity values
DJ are in and what state the database is in at all points of such an
DJ interaction.

Well, I'll try to explain.
Suppose, we use version column strategy, i.e. counter column that will
be increased by 1 after each update.

Now, suppose, there are two concurrent clients running in each own tx
trying to modify some data in the same entity.

When tx from the first client reaches the entity, i.e. when the first
client reads or modifies some data of the entity, JDBCOptimisticLock
locks the version field. That means it stores version field and
version value. It stores it in a TransactionLocal, similar to
ThreadLocal but keyed by tx.
Ok. Suppose the first client continues with its tx.

Now comes the second client with its own tx. Again, when this tx
reaches the same entity, JDBCOptimisticLock does the same thing as it
did for the first tx, i.e locks version column and value and stores it
in TransactionLocal.
Note, that it deals with not modified by the first client version of the entity.
At least, my tests show it. But I'd would appreciate others to try it.

Then, suppose the second client stores the entity, before the first
client. The changes made by the second client are persisted and
version number is incremented.

Then, the second client commits its changes. But as the version value
locked differs from the value in the db, it fails.

Hope this one is better.

alex


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



Re: [JBoss-user] Entity Bean Performance Tuning Help

2002-10-31 Thread Darren Hartford
Have been having similar issues, and my 'psuedo-hack' tests show similar
results to Georg, so thank you Georg for pointing out that the database
lookups are not the problem, but the object conversion piece.

I don't wish to sell other products, but for a reference, has anyone
seen a difference if they switch to another CMP Persistance engine such
as Gemstone?  I tried their eval on Jboss3.0.3, but I couldn't get it to
work in my environment.  Would be nice to know as a reference if solving
the entity-bean performance is clearly tied to CMP/Persistance, and also
have available proven workarounds for people that have short timelines
(yeah, I'm one of the many :-P). Please do not debate about commercial
versus open-source methodology, just looking for solution to immediate
business problems and methods to identify areas of improvements :-).

Oh, and LIMIT/OFFSET's would be awesome!!!

-D

--__--__--

Message: 1
Date: Wed, 30 Oct 2002 14:14:06 -0600
From: Dain Sundstrom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Entity Bean Performance Tuning Help
Reply-To: [EMAIL PROTECTED]

Georg Schmid wrote:
 It seems that my (and, at least to some degree, Peter's) specific
 problem is misunderstood.

Sorry, that happens all the time on the lists

 In my case: the problem is NOT getting the data from the database fast
 (the finders execute fast enough).
 I think Jboss does not have a problem there, but that's my guess, as I
 do not have personal experience
 with other app servers.
 
 The performance is lost, when I try to convert the a collection of
local
 entity bean references
 into a collection of value objects. None of the previous posts (except
 Peter's) touches upon this subject.
 
 I want to understand and, if possible, solve this 'value object
 conversion speed' problem:

snip/
 The for-loop should be able to convert 1000 local entity bean
references
 per second or better for simple entity beans.

Can you send me this code so I can test with a profiler?  I want to know

where all the time is spend.  What version of JBoss are you using?

 I am not interested in any CMP vs non-CMP debate. TSS may be a better
 place for this.

Agreed.

 It would be convenient, if the size of the result sets, that can be
 handled using CMP, coincides with the number of rows
 you should/could reasonably display in a dialog or page in your
 (web-based) GUI. This would remove the need to switch
 to raw JDBC, when doing the CMP equivalent of plain vanilla (for
 instance) select * from BeanTable where lastUpdate = '10/20/2002'
 queries. That's all I hope for. 

You lost me.  JBoss 4.0 will have support the LIMIT someNumber OFFSET 
someNumber syntax.  Is that what you are talking about.

I would like to be able to support Date literals, but I don't want to 
get too far in front of the spec.  Does anyone know where I can find the

ANSI SQL spec on date literals?  (I'm not interested in how Oracle does 
this... I want to know the standard).

 CMP will keep getting more powerful over time. Using it is 'Making the
 trend work for you'.

Yep... keep the suggestions coming, and we can make this the best 
persistence engine period.

-dain


---
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] False-positive LDAP Authentication when no password entered....also TLS?

2002-08-16 Thread Darren Hartford

Hi all,

Running Jboss 3.0.1RC1_Tomcat with OpenLDAP 2.0.21 LDAP backend.  Other
applications are using this LDAP backend and do not have any security
problems, isolating to just this troublesome Web Application.  ;-)

Running into an issue with supposedly Secured Web Applications during
authentication.  If the user puts in an authorized (not to be confused
with authenticated) username but no password on the browser security
pop-up, they get authenticated into the web application (even though
that user DOES have a password).  Have tried on most recent IE,
Netscape, and Mozilla browsers, so not a browser problem.  Also seems to
do false-positive authentication if the user has a long password but
puts in only the first 8 characters.

TLS seems to also not work correctly, but I think I might be missing a
configuration piece, just not sure where...the LDAP server is setup for
TLS and TLS does work with other applications, but JBOSS applications
continue to use cleartext across the wire.

Now, has anyone else also run into these issues and/or can confirm these
issues? I'm only one guy trying to get things locked down, want to make
sure it isn't my ignorance.  :-)

What JBOSS logs say:
-
DEBUG [org.jboss.security.auth.spi.LdapLoginModule] Bad password for
username=null
-


Here is the testLDAP config snip from login-config.xml:

application-policy name = testLdap
   authentication
  login-module code =
org.jboss.security.auth.spi.LdapLoginModule
 flag = required
 module-option name =
java.naming.factory.initalcom.sun.jndi.ldap.LdapCtxFactory/module-op
tion
 module-option name =
java.naming.provider.urlldap://myldapserver_removed//module-option
 module-option name =
java.naming.security.authenticationsimple/module-option
 module-option name =
java.naming.security.protocoltls/module-option

 module-option name =
principalDNPrefixuid=/module-option
 module-option name = uidAttributeIDuid/module-option
 module-option name =
roleAttributeIDemployeeType/module-option
 module-option name =
principalDNSuffixtree_removed/module-option
 module-option name =
rolesCtxDNtree_removed/module-option

  /login-module
   /authentication
/application-policy



jboss-web.xml for Secured Web Application:
--
jboss-web
security-domainjava:/jaas/testLdap/security-domain

/jboss-web


Snip from web.xml for Secured Web Application:
-
security-constraint

web-resource-collection
web-resource-nameSecure Web Application
thingy/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection


auth-constraint
role-nameMySecureRole/role-name
/auth-constraint

user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
!--auth-methodDIGEST/auth-method
-- realm-nameSecure Web Application/realm-name
/login-config


security-role
descriptionsome description/description
role-nameMySecureRole/role-name
/security-role



END DISTRESS CALL FOR HELP  :-P


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user