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
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
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
"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(
"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
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
"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'
"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
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