trevershick

Greenhorn
+ Follow
since Apr 23, 2001
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 trevershick

Design Patterns in Java Volume 1 by Mark Grand
Wiley Publishing
I like this book because it provides Java examples to most of the GoF95 patterns and introduces a few new ones.

Originally posted by Jason Stortz:
Hello all. I am starting to get some free time again and I would like to make a learning assault on design patterns in Java. I was wondering if anyone out there would be kind enough to give me recommendations on books/websites/tutorials/etc. that they liked, and why they liked them versus other places I could look.
Thank you in advance,
Jason
SCJP


// out.println("Notes from SG");
rs = stmt.executeQuery(notesQuery);
getServletContext().setAttribute("notesData",notesData);
you should be doing "request.setAttribute("notesData",notesData);
22 years ago
I assume that you just need them for compilation. The servlet classes alone won't run as a web server...
Anyhow...
Download the servlet-2_2b.zip file from www.javasoft.com
extract the file to c:\servlet-2.2b directory
before a compile
SET CLASSPATH=%CLASSPATH%;c:\servlet-2.2b\servlet.jar
-try-
javap javax.servlet.Servlet
-hopefully you'll see some output

javac www.MyClass
22 years ago
What App server are you using?
Weblogic?
What's your deployment descriptor like?

Originally posted by chin josei:
hii..
I have a CMP bean whichz having couple of finder methods.
The finder methods always returns the first row in the table.
Irrespective of whatever input i give, say for example..
findByPrimaryKey(new Key(""XX"))
findByPrimaryKey(new Key("YY"))
boh returns the same first row in the table.
Now this problem happens only if I use a Primary Class of my own.
If I use a String Object as my Primary Key itz working perfectly.
what mistake am i doing?
thanx in advance
chin


Well, scalable sites with Java have been around before EJBs, yes. The question you asked is a pretty large question, but I would use EJBs as a model for creating your own services.
People have created Java sites using CORBA that are just as scalable if not more. Not all websites require declarative security, and transactions across objects.
I'd determine what you need for basic services, then try your hand at CORBA. Using multithreaded code and object pools are a couple of basic practices you can use.
But to answer your question in a nutshell, you don't need EJB if you don't need their advanced services, you can use CORBA.
I would look at Log4J at www.apache.org.
It's very useful and extensible and you don't have to re-invent the wheel.