woo sung

Greenhorn
+ Follow
since Dec 09, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by woo sung

hi, i jest start to learn web services.
I am doing create applicaion for assignment.
however, i need to access real web services especially banking web services.
How can i search real web services?
could any body give me any idea?


cheers
15 years ago
hi guys. i am new for J2ee.
i am reading j2ee tutorial and i want to learn about EJBs.
however, i could not follow tutorials examples.

i have a problem and i could not fix it up. help me please.

--------------------------------------------------------------------
C:\Sun\AppServer\j2eetutorial14\examples\ejb\converter>asant

Buildfile: build.xml

j2ee-home-test:

BUILD FAILED
file:C:/Sun/AppServer/j2eetutorial14/examples/common/targets.xml:10:
The j2ee.home property is not properly set in <INSTALL>/j2eetutorial14/examples/common/build.properties.

Set the j2ee.home property to the location of your Application Server installation.

On Windows, you must escape any backslashes in the j2ee.home property with another backslash or use forward slashes as a
path separator. So, if your Application Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:

j2ee.home = C:\\Sun\\AppServer

or

j2ee.home=C:/Sun/AppServer

j2ee.home is currently set to:


Total time: 1 second

---------------------------------------------------------------
I want to make sure about discussion "B&S - serching" below.
I am doing B&S 2.1.1.

I have
"public int[] find(String[] criteria)."

And I have a sentese in The User Interface specification:
"It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user."

In the DB schema, name is first field and location is second field.

Therefore, can i call find method like :
String[] criteria = new String[];
criteria[0]="fred";
criteria[1]="adel";

int[] returnResult = DBImp.find(criteria);

and result will have int array of record numbers matching the value in name field( i.e both of "fred" and "freddy") and/or match the value in location (i.e both of "adel" and "adelaide")

Am i right?

another question is about "AND/OR" in "where the name AND/OR location fields exactly match values specified by the user."

I have no idea how i can make code "name and location" and "name or location".
if i pass the criteria array value below

String[] criteria = new String[];
criteria[0]="fred";
criteria[1]="adel";
criteria[2]="and"; or criteria[2]="or";

do you think it will be fine?
In my Non-Networked Mode specificaion, "MUST NOT invole the SERIALIZATION of any objects when communicating between the GUI and database elements"

I am reading andrew's book, and I have a question about DVD class.
DVD class is degined by value object pattern and it seems to be a row in database.

It implements "serializable". The reason I guess is that DBClient interface has a method which return value DVD as a selected row ( public DVD getDVD(...) ).

If my interface DB(same as DBClient) does not have method which return class degined as value object(DVD),
Can i omit the serializable in the class?, if I have only "String[] read(int recNO)" to retrun as a row.

Do i need to implement "serializable" in my class ?
and
Do i need any class which implemets "serializable" ? (I will use RMI)

What i need to be careful about serializable to fulfill my Non-Networked specification?
[ January 25, 2006: Message edited by: woo sung ]
I wnat to make sure about discussion above.
I am doing B&S 2.1.1.

I have
"public int[] find(String[] criteria)."

And I have a sentese in The User Interface specification:
"It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user."

In the DB schema, name is first field and location is second field.

Therefore, can i call find method like :
String[] criteria = new String[];
criteria[0]="fred";
criteria[1]="adel";

int[] returnResult = DBImp.find(criteria);

and result will have int array of record numbers matching the value in name field( i.e both of "fred" and "freddy") and/or match the value in location (i.e both of "adel" and "adelaide")

Am i right?

another question is about "AND/OR" in "where the name AND/OR location fields exactly match values specified by the user."

I have no idea how i can make code "name and location" and "name or location".
if i pass the criteria array value below

String[] criteria = new String[];
criteria[0]="fred";
criteria[1]="adel";
criteria[2]="and"; or criteria[2]="or";

do you think it will be fine?
Hi. andrew.
First of all, i am not English speaker. I might make many miskates in wirting. sorry.
secondly, I am reading your great book and analysing code in db package.
It is bit hard to understand cleary beause of my lack of ability of english and java skill.

my question is that
In your book, DvdFileAccess is degined as singlton. when it created, getDvdlist(true) is called to store all Dvd data in List<DVD>.

and persisteDvd method is called when addDvd and modifyDvd is called.

In persistedDvd method, Is .db file changed? or is List<DVD> changed? or both.

If my program stored all Dvd data in List<DVD> and I changed data in that, when should i change the .db file? (i.e when server is down or as soon as possible when data is changed)