Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

no more user

Ranch Hand
+ Follow
since Aug 07, 2002
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 no more user

Hi,

Taking a look at JPA specification (3.2.1)

...persist operation, applied to an entity X are as follows:
...
If X is a removed entity, it becomes managed.
...

but when I try to run a simple hibernate example:
...
em.setFlushMode(FlushModeType.COMMIT);
Message m = em.find(Message.class, 32768L);
em.remove(m);
em.persist(m);
...

EntityNotFoundException: deleted entity passed to persist.

How can a removed entity becomes managed as a result of persist operation?? Am I missing something??

Please, any help?

Thanks.
[ December 10, 2006: Message edited by: Alexandre Lima ]
hi all,

where can I get DTD for struts configuration file?

with comments, like the deployment descriptor in servlet specif.

thanks
[ December 10, 2006: Message edited by: Alexandre Lima ]
17 years ago
hi Ted,

thanks for response!!

but only clear this point please, for better understanding..

Originally posted by Ted Husted:
ActionForm beans are usually best kept in request scope since this limits potential side effects.



what are potencial side effects
[ December 10, 2006: Message edited by: Alexandre Lima ]
17 years ago
from javadoc:

Call the execute method of this action class, passing on a reference to the mapping that was used (thereby providing access to the underlying ActionServlet and ServletContext, as well as any specialized properties of the mapping itself), and the request and response...



----------------------------------------

also from javadoc:

The action classes will manipulate the state of the application's interaction with the user, typically by creating or modifying JavaBeans that are stored as request or session attributes (depending on how long they need to be available). Such JavaBeans represent the "model" component of an MVC architecture.



is not a good approach set javabean as application attribute once, instead set to each new session?

thanks in advance..
[ December 10, 2006: Message edited by: Alexandre Lima ]
17 years ago
hi,
who wrote "Designing web applications and servlet patterns" and what book this text is part!?
i read the pdf file for this chapter but no mention to the book name or author
someone know ?
17 years ago
hi Nazmul,

go to objectsbydesign forum here.
[ December 10, 2006: Message edited by: Alexandre Lima ]
if client close the browser and run other browser process, i always get a new session!!
there are something wrong here!! how can i share session object between several browser windows?
clear it, please..

----------------
Carlos Alexandre
17 years ago
hi,

BTW, you also need to modify the deploytool .bat file in the same way as you've modified the others.


yes, i hope it solve the problem, but can you tellme where find the correct deploytool script for winME?
thanks in advance..
------------------
Carlos Alexandre
there are someone using J2EE 1.3.1 in winME?
i need the correct script to run deploytool.
the j2ee server run after change de setenv and j2ee scripts, but when try 'deploytool.bat', print file not found..
can i use packager tool instead deploytool and execute de tutorial examples?
thanks.
------------------
Carlos Alexandre
hi kyle,
sorry for take your time with these questions, i hope your book help, i make order today..
now the problem is the database file (db.db), WSAD unknow the file, i try put the file in all possible places but exception is throw when open in file object..

there is any trick?? you can helpme??
thanks for your quick reply.
---------------------
Carlos Alexandre
OOAD-UML
SCJP2, SCJD2, SCWCD
17 years ago
hi,
im new in WSAD..
i try to run my rmi client/server application but in compilation the stubs are not generated, how to mark a unicastremoteobject class as rmi object??
thanks!!
---------------------
Carlos Alexandre
OOAD-UML
SCJP2, SCJD2, SCWCD
17 years ago
ok, the command line interface..
but and the question 25, any comments??

--------------
Alexandre Veloso
SCJP2, SCJD2, SCWCD


20)Which of the following are TRUE about software architectures?
a) Two tier software architectures do not scale to as many clients as three (or more) tier architectures.
b) Two tier architectures lead to more reuse than three or more tier architectures.
c) Thin clients are restricted to GUI parts.
d) Dividing the application architecture into Model, View and Controller layers leads to flexibility.
Multiple Select - Please select all of the correct answers (this question has 2 correct choices).


why c is false
-------------
Alexandre Veloso
SCJP2, SCJD2, SCWCD
hi reader,
about this question..


25)A resulting benefit of using polymorphism is reduction of:
a) methods in the associated classes.
b) subclasses needed to accomplish the same functionality.
c) case statements and conditionals.
d) coupling between classes in the system.
Single Select - Please select the best answer (one and only one choice must be selected).


please, can you helpme with this, im sure the answer is 'd' but i see our friend DonLiu say that the right choice is c.
i understand c can be, but d is not more right !?
thanks in advance..
----------------
Alexandre Veloso
SCJP2, SCJD2, SCWCD
hi Tim,

thanks for response, just one solve the problem

im a new linux user, but i take more care in the next time..

regards,

AL
[ December 10, 2006: Message edited by: Alexandre Lima ]
17 years ago