James Foster

Greenhorn
+ Follow
since Nov 04, 2003
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 James Foster

Many people are taking about Eclipse IDE. So I downloaded it today. Eclipse seems to be a basic stuff, may be only for creating simlpe java classes. It doesnt have anything to create/test EJBs.
correct me if I'm wrong
My appln has these components:
1. UserForm - which is my ActionForm
2. UserAction
3. my EJB stuff
4. My DTO to tranfer data from web to ejb tier
Here is what happens:
The UserAction pulls the data out of UserForm, constructs a new DTO and sends it to the EJB stuff.
My question is, can I not send the UserForm directly to the EJB tier. I guess I should make it serializable. Are there any issues in this.
In SQL, to get all records within a range, we write
SELECT * FROM MYTABLE WHERE salary BETWEEN NVL(low_value, salary) AND NVL(hi_value, salary);
If low_value and hi_value are null, then we get the full range.
How do we do it in EJB QL.
If I have the container manage the ralationships between my entity beans, where is the relationship status stored? What happens if I move my application to another server. How is the relationship's current status maintained?
For interactive applications, people use MVC or Struts. Are there any other architectural frameworks for other type of applications
Can we use both stateful / stateless bean as session facade?
If I do read only operations, will stateless bean meet my needs
I am using j2sdk 1.4 and tried the simple Lookup example in the jndi tutorial. I get following. I even put jndi.jar in jre\lib\ext. But no use. Any hints.
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
What are the top 5 commercial appln servers and top 5 IDEs used in industry today. Do free servers play a role in commercial sector.
While entity beans are in pool, they have not object identity. They get an identity only after they move to ready state. Is this correct.
If correct, how are we able to execute findByPrimaryKey method on the pool of beans with no identity.
Lets say I have a stateful session bean performing some business logic. Lateron, I find that I could have as well made it as stateless session bean. Do I just have to change the <session-type> to stateless? Or is there anything else I need to do?