Hi all,
I've come across some interesting CMP/CMR behaviour in JBoss 3.2.6.
To explain, let me define a scenario. Suppose we have two entities, 'Person'
and 'PhoneNumber'. We define a CMR relationship between them such that a
'Person' can have relationships with multiple 'PhoneNumber'
Hi,
I had the same problem, and fixed it with this:
http://wiki.jboss.org/wiki/Wiki.jsp?page=PlugableQlCompiler
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3931376#3931376
Reply to the post :
I've done some reading, and I think it's working properly...
http://docs.jboss.org/ejb3/app-server/HibernateEntityManager/reference/en/html_single/index.html
Section 4.2.3. Exception handling
anonymous wrote : If the EntityManager throws an exception (including any
SQLException), you should
Hi,
I tried your suggestion, but I get exactly the same problem. Here's my new
code:
| public boolean addUser(String username) {
| try {
| User newUser = new User(username);
| em.persist(newUser);
| em.flush();
|
| return true;
| } catch (Exception e) {
|
Hi,
You shouldn't need the Remote interface if your classes operate in the same JVM.
Not sure if this will help, but I had the same problem as you
(java.lang.ClassCastException: $ProxyXXX) when I was trying to use a Stateless
Session Bean from within a second Stateless Session Bean.
Thanks for your reply.
My entity does have the relevent field annotated as unique
| @Column(nullable=false, unique=true)
| public String getUsername() {
| return username;
| }
|
| public void setUsername(String username) {
| this.username = username;
| }
|
and I have
Did anybody have any luck with this?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3917652#3917652
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917652
---
This SF.net
Hi,
The problem isn't that the constraint isn't being applied - it is, and it's
working fine. The problem is that we can't catch the exception gracefully.
For example:
1) Create a user named 'bob'
2) Create another user also called 'bob'
This generates an exception - which is fine. The
Hi,
I found the exact same thing - no JBossWS in the EJB 3.0 distribution of 4.0.3
SP1. However, it is in the 4.0.3 SP1 default profile, so I found a nice easy
work around:
1) Use the 'JBoss Installer' to download and install the 'ejb3' profile into
the desired location
2) Use the 'JBoss
Hi All,
I'm seeing this problem very infrequently in my logs, but it does cause a
problem each time it occurs, so I'd be grateful for any advice.
I've got a stateless session bean that is configured to use BMT - which it
normall does perfectly. Every now and again, I get this error:
That's worth a shot - thanks!
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891238#3891238
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891238
---
SF.Net email is
Hi all,
I've got an interesting problem that I'm hoping will take someone 2 minsutes to
answer!
Probably best explained with an example. A system has two CMP entities called
X and Y. There are 10 instances of the X entity. A new instance of the Y
entity has just been created, and needs
Hi,
Are you consuming the messages using a Message Driven Bean?
I've experienced similar symptoms with version 3.2.6 using a MDB to consume
messages from a queue. My work around was to write my own consumer - I created
a Managed bean that creates x instances of my consumer. I can therefore
Hi,
I'm getting exactly the same thing, but with 3 nodes...
I'm using the standard config, but with the relevant parts of the 'all' config
copied in. Sometimes (about 1 in 5) it works like a dream. Most of the time
however, the new ear successfully deploys on the 'origin' node (ie. the one
Hi,
I've had this error myself, but it was tricky to track down.
In my case, I had a class that I had modified and put into a new JAR file,
whilst still having the original version in an older JAR file. JBOSS was
seeing the older version, which had differend method signatures.
So, I would
[EMAIL PROTECTED] wrote : I would need to see a sample ear that illustrates what you
are trying to do.
[EMAIL PROTECTED] wrote : The .ear file that I am trying to attach is around 5MB
Are you trying to annoy him on purpose?
View the original post :
Doh - If you are reading this and have a similar question, all I can say is...
C M R
:O)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3851242#3851242
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3851242
Hi all,
To illustrate the question, lets work with a 'News' Entity bean which contains info
related to a single News Article (ie. Headline, Author, etc). This can be modelled
very simply with CMP as the data is all in one table.
However, if each News Article can have a number of related News
18 matches
Mail list logo