[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Is there any way to define derived entity class to repre

2006-05-29 Thread bitl
Excuse me for I entered to long subject. I mean: Is there any way to define derived entity class to represent database view. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947354#3947354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Is there any way to define derived entity class to represent

2006-05-29 Thread bitl
Hello all! I wonder if with Hibername + EJB3 I can use two entity classes: B derived from A, when A represents a table T and B represents a view of the table T. Here's my case: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=83890 I'm using jboss4.0.4.rc1 + EJB3rc5. Thank you! View t

[JBoss-user] [EJB 3.0] - Is there any way to define derived entity class for database

2006-05-27 Thread bitl
Hello, all! Sounds easy but not appear so in practice... Let's say I have entity class User with @id Long id; and @Column String name;. And I have other table with user profile data. The columns: user_id, name, value. One of profile names is 'NICKNAME'. So to store nickname Brutt of user with i

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.

2006-05-27 Thread bitl
"mskonda" wrote : use the Singleton configuration: | | | | | Singleton Message Driven Bean | | XARecovery2ResMDB | | queue/@QUEUE_NAME@ | | | | I got my MDBs to be always one per queue reducing their pool sizes: @ActivationConfigProperty(

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.

2006-05-25 Thread bitl
"ManneF" wrote : You may want to consider using a database lock instead. | | Using statics is inherently risky in a J2EE environment, because your class may be loaded many times by different class loaders. I got my MDBs to be always one per queue reducing their pool sizes: | @ActivationC

[JBoss-user] [EJB/JBoss] - Re: ejb-jar.xml must either obey the right xml schema or def

2006-05-25 Thread bitl
Start your file with: | http://java.sun.com/xml/ns/j2ee";> I have concluded the solution reading this: http://www.theserverside.com/discussions/thread.tss?thread_id=38282 At least it helped me to resolve your (and my) issue under jboss-4.0.4.GA. View the original post : http://www.jboss.com

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.

2006-05-23 Thread bitl
"ManneF" wrote : Did you figure out why you got this message, because I'm getting the exact same problem with an MDB on 4.0.4RC1. | | Looks like a bug in the SaxJBossXBParser, because this is obviously no session EJB. Is this a known issue? Not yet. Just have no time to dig it. Currently I'

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.

2006-05-17 Thread bitl
"mskonda" wrote : use the Singleton configuration: | | | | | Singleton Message Driven Bean | | XARecovery2ResMDB | | queue/@QUEUE_NAME@ | | | | Thanks to all. I explicitly added name to annotation: @MessageDriven(name = "MyMDBean", Creat

[JBoss-user] [Messaging, JMS & JBossMQ] - Can't use EJB3 MDB to retrieve messages one by one.

2006-05-16 Thread bitl
Hello! I'll be as short as possible. Thank you. Jboss version: 4.0.4RC1 EJB3 version: rc5-PFD JRE: 1.5.0_06 My persistent queue config: | jboss.mq:service=DestinationManager | -1 | | My MDB class annotated: @MessageDriven(activationConfig = { | @ActivationConfigProperty(propert