[JBoss-user] [EJB 3.0] - Re: Migration 4.0.4.CR2 -> 4.0.4.GA problem

2006-06-26 Thread vphagura
Thanks John and to everyone who have posted their solutions here. It worked, so it is important to implement Comparable (NOT comparator) on your Entities, if you are planning to use SortedSet as I have done. Thx Vijay View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[JBoss-user] [EJB 3.0] - Re: Migration 4.0.4.CR2 -> 4.0.4.GA problem

2006-06-23 Thread vphagura
I have used the SortedSet instead of List and the OneToMany relation works when I write or update but when I retrieve my composite object it gives a ClassCastException on the TreeSet Compare. I do not know why as I have my object as a comparator and it implements a compare method?? publ

[JBoss-user] [EJB 3.0] - Re: Cannot insert into composite Object in the database with

2006-06-21 Thread vphagura
By the way; I have auto-increment turned on, in the database for the primary keys(ie the id) for both the measurement and the count tables. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952535#3952535 Reply to the post : http://www.jboss.com/index.html?modu

[JBoss-user] [EJB 3.0] - Cannot insert into composite Object in the database with @On

2006-06-21 Thread vphagura
I have two classes Measurement and Counts they have a One to Many relation. I have the following annotations in place: Measurement: ... @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy="measurement") public List< Counts > getCounts() { return counts; } Co

[JBoss-user] [Security & JAAS/JBoss] - Re: New LoginContext for each request...

2004-05-07 Thread vphagura
Thanks to Jani for the code. Of course, Tomcat valve would be also helpful. Looking forward to an answer to nivek's query !! Vijay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834122#3834122 Reply to the post : http://www.jboss.org/index.html?module=bb&op

[JBoss-user] [Security & JAAS/JBoss] - Re: New LoginContext for each request...

2004-05-06 Thread vphagura
I agree with Jani. And, also appreciate the response from scott. But could you please explain little bit more when you say, "Use a servlet filter or tomcat valve then", or point me to some more details on this. Thanks Vijay View the original post : http://www.jboss.org/index.html?module=bb&op