This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

lucy hu

Ranch Hand
+ Follow
since Aug 21, 2000
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by lucy hu

Main steps:
1.Create Web and EJB components for your application.
2. Create deployment descriptors.
3. Create component archive.
4. Create application deployment descriptor.
5. Assemble application.
6. Upload the applcation through console or just copy..
this link, and
18 years ago
1. Two entity EJBs are identical if the "equals()" method of their primary key class returns true.
2. Except during method invocation, all instances of a stateless bean are equivalent, allowing the EJB container to assign an instance to any client.
3. Two stateful session beans are identical if their session contexts are equal, not their data attributes. Multiple clients can not get the same EJB by "creating" new stateful session beans and setting their data attributes to the same values.
18 years ago
you can only add a managed server from console,
but can start a managed server either from console or from command line, you need to specify the name of the server to identify itself to the Administration server
[ January 25, 2002: Message edited by: lucy hu ]
18 years ago
I had the same problem before, make sure your license file is in the right place.
18 years ago
1. get "Developing Enterprise Applications with BEA WebLogic Server", play with all the examples in this book including the web auction in the end of the book. Pay attention to weblogic-specific-xml and directory structure explained in this book.
2. Along with that, refer to Weblogic Documentation often, you can learn a lot from their website, especially those summary tables and figures.
3. Develop at least one application of your own. there are a lot of things that we can only learn from putting hands on and making mistakes.
18 years ago
I think it's always good to follow the standard directory structure. Summarized as following:
1. Packageing Web Application:
Directory Structure:
\html, jsp, images
\WEB-INF\web.xml, weblogic.xml, tld
\WEB-INF\classes\servlet, helper_classes, Java_Bean_classes, EJB_Home_Interface, EJB_Remote_Interface
Bundle all above into a .war file.
2. Packaging EJB:
Directory Structure
\EJB classes
\META-INF\ejb-jar.xml, weblogic-ejb-jar.xml, weblogic-rdbms-cmp-jar-bean_name.xml
Bundle all above into a .jar file
3. Packaging Enterprise Applications:
Directory Structure:
\.war, .jar
Bundle all above into a .ear
Ready to go! Be careful with the class references issue.
Refer to
Packaging and Deploying WebLogic Server Applications
[ January 18, 2002: Message edited by: lucy hu ]
18 years ago
An application that is ready to deploy on WebLogic Server contains additional, WebLogic-specific deployment descriptors and, possibly, container classes generated with the WebLogic EJB, RMI, or JSP compilers.
If you receive a J2EE-compliant JAR file from a developer, it already contains J2EE-defined deployment descriptors. To deploy the JAR file on WebLogic Server, you must extract the contents of the JAR file into a directory, add the required WebLogic-specific deployment descriptors and any generated container classes, and then create a new JAR file containing the old and new files.
Packaging and Deploying WebLogic Server Applications
[ January 18, 2002: Message edited by: lucy hu ]
18 years ago
I will take the test next monday, but want to try scwcd@whiz, does anybody know how fast they respond to the buyer? since it's weekend...
I got the same problem, when I run "ant create-web-db" in the j2ee tutorial, got the error:
D:\j2eetutorial>cd examples
D:\j2eetutorial\examples>ant create-web-db
Buildfile: build.xml
[java] java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij
[java] Java Result: 1
Total time: 2 seconds
Althought I have
in my classpath and the command
cloudscape -isql
can anybody help me?
this one is from Mr. Jaworski's mock exam:
One of the restrictions of the applet sandbox is that an aappplet is not allowed to make a network connection to a host other than the one from which it was loaded. which of the following may be used to allow an applet to connect to other network hosts?
A. A servlet that runs on the applet host and proxies connections to other network hosts
B. A single applet that may be trusted to establish network connections to other hosts.
C. The applet run as an enterprise bean
D. HTTP1.1-compatible Web server.
They seems all right to me, can anyone clear my confusion?
In Amit Jnagal's mock exam, he says
Listening to sockets is not permitted in EJB.
But in Sun's sample exam, there is a correct answer which is: with an stateful session bean that uses Java sockets to interact with the inventory system.
I'm confused, can anyone explain this?

Originally posted by Christophe Testi:
Sometimes to minimize the interactions between the web client and the web container, like for instance sending an http request to validate the data that you just entered in a form (let's say your address), it is better to use for instance javascript do to a first validation pass of your input data.
Does it make sense ?

good explanation! Thank you. Chris.
sridhar, the answer is C and E, we can use Java Applet in the client tier, but it is not a function, it doesn't fit to the question.
which two functions may be provided by the client tier of a Java Application architecture?
A Java Applet
B applet viewer
C User interface
D Database access
E input validation
why input validation is provided by the client tier?
Confidentiality is the process of protecting data from unauthorized use or users. Simply put, it means that only the intended recipient of a message can make sense of it.
Component-Based Architectures for Internet Systems
Article by Paul Allen
Also see Enterprise JavaBeans, Second Edition
by Richard Monson-Haefel
1.1.2 Server-Side Components
In Jaworski's mock exam, he says:
What is the difference between a component and an object?
A component is an object that has been created, initialized, and serialized. A component may be used by deserializing it.