Fiona Healy

Greenhorn
+ Follow
since Jan 27, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Fiona Healy

Hi,

I need to display a user manual type help document on a my GUI is there some way i can do this?
Using what JComponent?

Thanks
20 years ago
I forgot to add teh stack trace


i am using POJOs to pass beans over and back to the client so this is the client/session/bean code in order of the flow of data
I think code should be ok but maybe its my configuration files that are the problem. I have attached the following from the ejb-jar file



...
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 file and the ejb-jar file in order for two beans to have a many-many uni-directional relationship. I think i have done this succesfully as no errors are being thrown.

All my tables are building accordingly and i have my abstract accessors specified in both beans concerned but when i go to create a new report bean the link table is not populated.

Does it matter that FieldEJB is already populated and has read-only access?

Is there any examples out there with the actual manipulation of the data in the database as opposed to how to configure the META-INF files.

Also can i use remote beans in these relationships or does it have to be local???

please help
So what you are saying is to have one session bean interacting with the DB that holds the data that i want to transfer and the entity bean (Fields) to which i want to transfer the data to???

Once this is done, 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 file and the ejb-jar file in order for two beans to have a many-many uni-directional relationship. I think i have done this succesfully as no errors are being thrown.

All my tables are building accordingly and i have my abstract accessors specified in both beans concerned but when i go to create a new report bean the link table is not populated.

Does it matter that FieldEJB is already populated and has read-only access?

Is there any examples out there with the actual manipulation of the data in the database as opposed to how to configure the META-INF files.

Also can i use remote beans in these relationships or does it have to be local???

please help
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 relationship
a report has many fields and fields can be associated with many reports
so i have a link in the application DB to represent this (B)

I am accessing database A using JDBC in a Session bean called dataAccess

How can i populate the fields EJB using the data in database A?

Does the dataAccess session bean have to talk to the fields session bean?
Can two session beans talk to each other and pass data to each other?

please help!
hi,

I am developing an application that requires the querying of an external database i.e. user requests a number of fields which are stored in the applications database and these are then used to query a second database for the actual values. If anyone can understand what i am talking about, can you direct me as to whats the best approach to doing this. I am using MySQL DB and have been advised to use JDBC in a session bean?

Any ideas?
so i just write a class that is queried by the EJB? I have seen examples wherby they have made email sending beans. Is this necessary?
Has anyone any good links/tutorials on how to send emails from an enterprise java bean?
Hi,

Is there anyone that can help me out with some issues i am having regarding setting up listeners for a table and a list box. They need to be able to react to changes to data in the database create/edit/delete but i cant figure it out
20 years ago
i have the home interface returning a Collection type already? I tried it anyway and i am still getting the class cast exception?
I am trying to use the findAll()method associated with an entity bean which returns a collection. I am then trying to store items in the collection in a vector but getting a classcastexception can anyone help please?


Code:

public Vector findAllReports()
{
Vector vect = new Vector();
//ReportDefinitionRemote remote = home.create();
try{
Collection reports = home.findAll();
System.out.println(reports + "in findAllReports()");
for (Iterator i = reports.iterator(); i.hasNext(); ) {
ReportDefinitionPOJO pojo = (ReportDefinitionPOJO)i.next();
vect.add(pojo);

}
}
catch(Exception e){throw new EJBException(e);}
return vect;

}

Error:

00:22:21,678 ERROR [LogInterceptor] EJBException in method: public abstract java
.util.Vector com.rgs.ejb.reportdefinitionmanager.ReportDefinitionManagerRemote.f
indAllReports() throws java.rmi.RemoteException, causedBy:
java.lang.ClassCastException
at com.rgs.ejb.reportdefinitionmanager.ReportDefinitionManagerBean.findA
llReports(ReportDefinitionManagerBean.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
Thats great, i have the article downloading as i type
Thanks.

p.s. get some sleep
so by assigning the time of day e.g. 08:00 to the interval which is in miliseconds and passed to the createTimer method, you can specify the time of day that the report is generated?

Am i right?
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 command line to build my database, I found not only the foreign keys which i specified but other similarly named fields which were automatically included....im thinking from the relationship tags in the ejb-jar file.

Can someone tell me if its necessary to explictly include these foreign keys or does EJBs do it automatically once you have specified the relationship in the deployment descriptor?

Cheers
Fiona