Re: [JBoss-user] Slightly Off-Topic: Java on Solaris

2001-05-11 Thread Davide Mora


> Anyway, I'm wondering how much better Java is on the
> Sparc/Solaris vs.
> Linux/Intel.

one of our customers moved from w2000 servers to
sparc/solaris. for what i know under solaris (and
other unix in general) java work worse than
windows/linux, checkout this benchmark:

http://www.volano.com/report.html

for what i know (i didnt follow personally the tests)
there are also problems on the usage of the CPUs in a
multiprocessor system.

maybe somebody else had a better experience?

Davide

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Polymorphic entity bean, possible?

2001-04-16 Thread Davide Mora


Hi!

i'm trying to reuse a legacy database (from COBOL)
with entity beans (BMP).
The database describe a structure like this: Product,
Share extends Product, Warrant extends Product etc.,
all this described in only one table (with more than
200 fields!!).
In many articles i read is possible inherit entity
beans, i did it, and seems work, at least with JBoss,
what i'm not able to do i query the base class
(Product) and load the right entity depending on a
discriminator field.
For example, if i query the Product, i get only
instances of Product also when is Share or Warrant,
example:

productHome.findByPriceRange(a,b);
...
while( itr.hasNext() )
{
  if ( itr.next() instanceof Product )
  {
// Wrong! Was a Share!
  }
}

I tought also about write a session bean that query
the database, read the primary key and the
discriminator and calls findByPrimaryKey() on the
home.
It's the only way or there is something better?
Any help or link to articles/examples is welcome!

In EJB2.0 will be the same, or there will be an easier
way for handle this problem? (very common case in OOP
i think)

Thank you very much,
David



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problems with verifier in jBoss 2.2

2001-04-12 Thread Davide Mora

Hi!

I have a couple of questions:

why i get this warning if i override the equals() and
the hashCode() method in my PK? Both are public ... 
---
[Verifier]
Bean   : Product
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier]
Bean   : Product
Section: 9.2.9
Warning: The primary key class must override
hashCode().
---

This maybe it's a but, when i define a finder
findBy and i don't declare the ejbFindBy
in the implementation of the bean i get the following
exception:
---
[Container factory] Deploying Product
[Container factory] java.lang.NoSuchMethodException
[Container factory] at
java.lang.Class.getMethod0(Native Method)
[Container factory] at
java.lang.Class.getMethod(Class.java:888)
[Container factory] at
org.jboss.ejb.plugins.BMPPersistenceManager.init(BMPPersistenceManager.java:94)
[Container factory] at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:198)
[Container factory] at
org.jboss.ejb.Application.init(Application.java:183)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:337)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Container factory] at
java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory] at
java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory] at
java.lang.Thread.run(Thread.java:484)
---
not very user friendly...

David.


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] wich database for a standalone workstation?

2001-04-05 Thread Davide Mora


Hi!

I need to take my application around in the notebook
(Win98), i was thinking about use a pure java
database, like InstantDB, Hypersonic (this project was
closed? i read this somewhere...), PointBase or
something "light", like Interbase...
What's your experience about this? What's the one with
less problems?

Thank you,
David

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user