[JBoss-user] [EJB/JBoss] - Many-Many CMR relationships

2005-02-24 Thread fifihead
ReportEJB and FieldsEJB I want to store a set of fields as an attribute in the reportEJB but i am having problems setting values and consequently i am getting a nullpointerexception Stack trade: | 13:58:02,804 ERROR [LogInterceptor] EJBException in method: public abstract void | com.rgs

[JBoss-user] [Beginners Corner] - CMR Many-Many relationship -> link table not populating

2005-02-23 Thread fifihead
i have a scenario where there is a many to many unidirectional relationship. i.e. ReportEJB has many FieldEJB and FieldEJB can be associated with many ReportEJB. Reports need to know about fields but not the other way around I have followed numerous examples on how to configure both the jbosscmp

[JBoss-user] [Beginners Corner] - Many-Many CMR relationships

2005-02-22 Thread fifihead
I have followed numerous examples on how to configure both the jbosscmp file and the ejb-jar file in order for two beans to have a many-many uni-directional relationship. All my tables are building accordingly and i have my abstract accessors specified in both beans concerned but when i go to c

[JBoss-user] [Beginners Corner] - Can session beans interact with each other??

2005-02-21 Thread fifihead
Hi i am using two databases A and B, one to pull data from (call it A) and the other to store this data (call it B). my application is supposed to generate reports so i have a fields EJB and a report EJB and 2 corresponding session beans These beans have a many to many unidirectional relation

[JBoss-user] [Beginners Corner] - JDBC connection in a stateless session bean??

2005-02-14 Thread fifihead
Hi, My application involves the use of two databases. I have a MySQL db configured and working however i need to know how to configure the second (also MySQL) which i need to perform simple queries to retrieve data? if i use jdbc in a stateless session bean? do i need to change settings in

[JBoss-user] [EJB/JBoss] - automatic generation of DB fields via relationship tags?

2005-02-01 Thread fifihead
Hi, I am very new to the EJB world but trying to develop an application that interacts with a MySQL DB. I have a number of tables which i am relating to one another via foreign keys which i have specified in the jbosscmp-jdbc file and the ejb-jar deployment descriptor. After executing ant on the

[JBoss-user] [EJB/JBoss] - pk autogeneration

2005-02-01 Thread fifihead
Hey, I was hard-coding ids for an entity bean called report. I was retrieving all previously defined report names from the db in order to populate a list on the GUI, i used the following for-loop as follows: for(int i = 1; ; i++) { Integer pk = new Integer(i); ReportDefinitionRemote report;

[JBoss-user] [EJB/JBoss] - package javax.ejb does not exist

2005-01-04 Thread fifihead
I am trying to compile and run EJBs but I am consistently getting this error: 'package javax.ejb does not exist'. I have added jboss\client to my classpath in the hope that jboss-j2ee.jar will be recognised but no such luck! Can someone help please View the original post : http://www.jboss.org