[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Why does Remove causes all CMR entities to be loaded

2006-05-10 Thread jgc195
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'

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: EJB query language problem with NOT MEMBER OF

2006-03-20 Thread jgc195
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 :

[JBoss-user] [EJB 3.0] - Re: uniqueconstraint in ejb3.0

2006-01-19 Thread jgc195
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

[JBoss-user] [EJB 3.0] - Re: uniqueconstraint in ejb3.0

2006-01-18 Thread jgc195
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) { |

[JBoss-user] [EJB 3.0] - Re: How to access Stateless Session bean from within MBean S

2006-01-18 Thread jgc195
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.

[JBoss-user] [EJB 3.0] - Re: uniqueconstraint in ejb3.0

2006-01-18 Thread jgc195
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

[JBoss-user] [EJB 3.0] - Re: uniqueconstraint in ejb3.0

2006-01-16 Thread jgc195
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

[JBoss-user] [EJB 3.0] - Re: uniqueconstraint in ejb3.0

2006-01-16 Thread jgc195
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

[JBoss-user] [JBossWS] - Re: ws4ee missing?!

2005-11-22 Thread jgc195
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

[JBoss-user] [EJB/JBoss] - Stateless session's remove() method being called during a tr

2005-08-23 Thread jgc195
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:

[JBoss-user] [EJB/JBoss] - Re: Stateless session's remove() method being called during

2005-08-23 Thread jgc195
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

[JBoss-user] [Persistence CMP/JBoss] - Committing rows during a transaction - is this possible?

2005-06-23 Thread jgc195
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

[JBoss-user] [Messaging, JMS JBossMQ] - Re: OutOfMemory on the JMS Client Side

2005-02-24 Thread jgc195
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

[JBoss-user] [Clustering/JBoss] - Re: cluster farm undeploy deploy sometimes successfull somet

2005-02-07 Thread jgc195
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

[JBoss-user] [EJB/JBoss] - Re: Please help my topic ( Error from JBOSS )

2005-02-07 Thread jgc195
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

[JBoss-user] [Security JAAS/JBoss] - Re: Will $100 Manual help us to resolve this security issue

2004-11-01 Thread jgc195
[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 :

[JBoss-user] [Persistence CMP/JBoss] - Re: How best to model Entity Bean associations with EJBs of

2004-10-13 Thread jgc195
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

[JBoss-user] [Persistence CMP/JBoss] - How best to model Entity Bean associations with EJBs of the

2004-10-07 Thread jgc195
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