kyyung6

Greenhorn
+ Follow
since Jan 17, 2002
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 kyyung6

Hi
I am now testing the ejb failover ability of the WAS5. Here is the scenerio:
Server01 and Server02 were installed with WAS5 and they are the members of
Cluster1.
Application1 has both web and ejb module.
There is a stateless session bean B1 (the home interface is B1Home with jndi
name ejb/B1Home) in the ejb module.
There is a JSP to lookup B1Home using the jndi name
(corbname::Server01:2809,:Server02:2809#cell/clusters/Cluster1/ejb/B1Home)
I stop the ejb container of Server02 (but the web container is still
running)
Run the JSP in Server02 (Since the JSP will output the server name, so i
can confirm that the JSP is runing on Server01)
Result
I can lookup the the home interface successfully from Server01 but if I call
home.create(). Corba exception occurred (object_not_found, with minor code:
servant_not_found).
Would anyone know how to solve this problem?
Thank you
Leo
20 years ago
Hi
I am using WAS5. There is a setting called shared library which be associated to the applications. However, each time I re-deploy the application, the association is removed. Do anyone know how can I set this association in the DD using AAT or WSAD?
Thank you
Leo
20 years ago
Thank you very much! All the answers are very helpful for me.
Leo
Hi
I have a question about the association of classes in class diagram. For example, I have classes called Customer and Order. Order does not have a reference of its Customer, it only stores the CustomerID of its Customer. I think it is not correct to show the association between these two classes in the implementation class diagram. Am I right?
Thank you
Leo
Hi
I want to make sure I undestand the jndi caching of WAS. I try the below example:
I have a standalone application accessing the objects in remote WAS 3.5 using jndi, I write the following code:
================================================
env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://remotehost");
Context ctx = new InitialContext(env);
ctx.lookup("myObject");
=================================================
In this case, a cached copy of myOject will be stored in the local machine. If I lookup myObject again, then this cached copy will be returned instead of actually lookup. Right? If I want to get a remote copy, can I use the following code to do so?
================================================
env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://remotehost");
env.put("com.ibm.websphere.naming.jndicache.cacheobject","cleared");
Context ctx = new InitialContext(env);
ctx.lookup("myObject");
=================================================
Please correct me if I am wrong.

Thank you
Leo
22 years ago