lucy hu

Ranch Hand
+ Follow
since Aug 21, 2000
Merit badge: grant badges
For More
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 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..
see
this link, and
http://e-docs.bea.com/wls/docs60/programming/index.html
22 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.
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Session3.html#63661
22 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
http://e-docs.bea.com/wls/docs60/adminguide/startstop.html#1033903
[ January 25, 2002: Message edited by: lucy hu ]
22 years ago
I had the same problem before, make sure your license file is in the right place.
Lucy
22 years ago
IMHO:
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.
HTH
lucy
22 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
\META-INF\application.xml
Bundle all above into a .ear
==============================================
Ready to go! Be careful with the class references issue.
Refer to
Packaging and Deploying WebLogic Server Applications
Lucy
[ January 18, 2002: Message edited by: lucy hu ]
22 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.
Goto:
Packaging and Deploying WebLogic Server Applications
HTH
Lucy
[ January 18, 2002: Message edited by: lucy hu ]
22 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...
thanks.
lucy
I got the same problem, when I run "ant create-web-db" in the j2ee tutorial, got the error:
<code>
D:\j2eetutorial>cd examples
D:\j2eetutorial\examples>ant create-web-db
Buildfile: build.xml
init:
create-web-db:
[java] java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds
</code>
Althought I have
<code>
%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar
</code>
in my classpath and the command
<code>
cloudscape -isql
</code>
works.
can anybody help me?
Lucy
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?
Lucy
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?
Lucy

Originally posted by Christophe Testi:
Lucy,
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 ?
-Chris


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.
Lucy
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?
Lucy
Confidentiality
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. http://www.javaworld.com/javaworld/jw-04-2000/jw-0428-security_p.html
http://www.advisor.com/Articles.nsf/aid/ALLEP01
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.