gagaghost

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

Please give me a definition.
thanx!

Originally posted by Benson Fung:
Why A is correct???

Benson


Reason is simple.
You can store standard datatypes in BMP when you write a EJB in your real applications.
Question 7:
I think c is correct.
b is not correct because Remote object referrence is only returned to clients when a find method is invoked on EJBHome,so the state of beans aren't changed.

Originally posted by Benson Fung:
What considerations make sense when writing an entity bean?

A. Use BMP when storing standard datatypes and performance is essential
B. Use BMP when storing standard datatypes and performance is not essential
C. Use BMP when storing complex datatypes and performance is essential
D. Use BMP when storing complex datatypes and performance is not essential
What is the correct answer?


I think a,c and d are correct.
Congratulations!
[ August 18, 2003: Message edited by: gagaghost ]
hi,
try following settings.
//////////////////////////////////////
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
p.setProperty(Context.PROVIDER_URL,"corbaloc:iiop:127.0.0.1:2809");
///////////////////////////////////
19 years ago
How to integrate WSA5 into JBuilder8?
thanks!
19 years ago
Hiding program setting,such as Provider url,host,...,etc.
hi.
I have write two entity bean managed by container.
and those two bean has an one-to-many relationship.When I built the relationship and saved the project,I found the relationship line has disappeared in the design diagram(my tools is jbuilder7.0).
how do I correct it?
thanx a lot.
hi.
I have written a Session EJB by jbuilder7.0 and deloyed it into the weblogic6.1.but when I test the EJB at client,the test program throwed a error,how can I do it?
the source:
import java.util.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;

public class testejb
{
public static void main(String args[])
{
try
{
Properties p=System.getProperties();

p.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.setProperty(Context.PROVIDER_URL,"t3://127.0.0.1:7001");

Context ctx=new InitialContext(p);
Object ref=ctx.lookup("TestBean");
TestHome data=(TestHome) PortableRemoteObject.narrow(ref, TestHome.class);

if(data instanceof TestHome)
{
System.out.println("yes.");
}else{
System.out.println("no.");
}


}catch(Exception ex){
ex.printStackTrace();
}

}
}
error:
E:\java>java testejb
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unkno
wn Source)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at testejb.main(testejb.java:20)