[jboss-user] [JBoss Seam] - Seam 1.3 Alpha and Basic Authentication

2007-06-20 Thread aidan_b5
Hello, I'm relatively new to Seam and am trying to want to integrate an application using seam into an existing ear. The other apps in the ear use basic authentication therefore I have been trying to use the AuthenticationFilter in Seam 1.3 Alpha. My components.xml: http://jboss.com/products/

[jboss-user] [EJB 3.0] - Problems updating hibernate

2007-04-02 Thread aidan_b5
Wasn't sure where to post this, so excuse me if its in the wrong place. I'm trying to update the hibernate jars from version 3.2.1 to the latest and get the following exception: 2007-04-02 16:19:00,417 INFO [org.hibernate.cfg.annotations.CollectionBinder] Mapping collection: main.java.com.sms

[jboss-user] [EJB 3.0] - PersistentManager/Query level FetchType Override?

2007-02-13 Thread aidan_b5
Hi, Can someone tell me if its possible for an individual query to override the fetchtype annotation? I have two related entities, both eagerly fetched, however I have a query that requires just one entity be loaded...is this possible? Thanks View the original post : http://www.jboss.com

[jboss-user] [EJB 3.0] - Re: Blob reading causing memory leak?

2006-12-08 Thread aidan_b5
Ok found two problems: Lazy OneToOne mapping has to have 'optional=false' in order to work but more seriously; | | manager.find(Audit.class, id); | | Causes an infinite loop...replacing it with a select statement solves the problem but that isn't great. Does anyone know an

[jboss-user] [EJB 3.0] - Blob reading causing memory leak?

2006-12-07 Thread aidan_b5
I have three entity beans; one Audit contains many AuditImage, one AuditImage contains one AuditLargeImage . Audit to AuditImage is eagerly loaded, AuditImage to AuditLargeImage is lazily loaded. I can sucessfully upload images to the database (MySQL) but when I load (manager.find) the Audit,

[jboss-user] [EJB 3.0] - RC9 Migration NameNotFoundException

2006-11-01 Thread aidan_b5
I am trying to upgrade from jboss 4.0.3 SP1 ejb RC6 to 4.05 RC9. When I try to access my ejb's that have other ejbs injected into them, I get a NameNotBoundException. Looking in the jmx console, I can see that those ejbs are registered but not started. Having searched the net for a solution, on

[jboss-user] [EJB 3.0] - EntityManager not mounted under JNDI despite config

2006-08-24 Thread aidan_b5
Despite having the following persistence.xml: |java:/ShipdbDS | | | | | | when i do a jndi lookup for the manager thus: InitialContext ic = new InitialContext(); |

[jboss-user] [EJB 3.0] - NoSuchMethodError when using JBoss.xml

2006-08-23 Thread aidan_b5
I'm trying to create a deployment descriptor so that I can overwrite the annotations in an ejb but am running into a NoSuchMethodError regardless of what I do. My jboss.xml: | http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd";> | | | | ObjectFacade |

[jboss-user] [EJB 3.0] - Re: How do I share entity beans across scoped EARs?

2006-08-21 Thread aidan_b5
try putting them in the deploy directory...not inside an ear, that should make them accessible by all other apps View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966458#3966458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[jboss-user] [EJB 3.0] - Re: NameNotFound after upgrade to latest

2006-08-18 Thread aidan_b5
Having checked the JMX-Console, two of my ejbs are registered but not started which i'm guessing is causing the... javax.servlet.ServletException: ShipFacadeBean not bound | when the application tries to find them. What is the cause of this? Neither of the EJBs have a jboss.xml or ejb-jar.x

[jboss-user] [EJB 3.0] - NameNotFound after upgrade to latest

2006-08-18 Thread aidan_b5
I've just upgraded from 4.03 EJB 3 RC6 to 4.04 RC8. I have a servlet that is run on startup, gets info from a database through an EJB and configures the app using it. For some reason the servlet cannot find the EJB under the name specified. Has the jndi address changed since the last upgrade? P

[jboss-user] [EJB 3.0] - Re: What is the best way to re-attach a detached entity?

2006-08-18 Thread aidan_b5
I may be wrong but is this not to do with transactions? try | entityManager.flush() after you've done the merge but before you query the db View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965990#3965990 Reply to the post : http://www.jboss.com/index.html

[jboss-user] [EJB 3.0] - Re: Multiple instances of EJBs

2006-08-17 Thread aidan_b5
Sorry, bad wording. Three databases structured in exactly the same way but holding different information. What I would like to do is use one set of components (Facade/EJB/Entity) to access each of the three depending on dynamic configuration. So I'm thinking that I either need to deploy 3 insta

[jboss-user] [EJB 3.0] - Multiple instances of EJBs

2006-08-17 Thread aidan_b5
Hi, A requirement i have for an application is that it uses 3 identical databases. It makes sense to have one set of entity bean classes, dao classes and facade on top to manage if possible each of the three. How do I configure the facade, entity manager and/or persistence.xml so that the appli

[jboss-user] [EJB 3.0] - Querying a join table

2006-08-04 Thread aidan_b5
Hi, I need to query the join table of a many to many relationship and am having trouble. PersistentValue class: @ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.LAZY) | @JoinTable(name = "user_filter", | [EMAIL PROTECTED](name="persistentvalue_id")},