kesava chaitanya

Ranch Hand
+ Follow
since Aug 15, 2001
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 kesava chaitanya

Originally posted by Pradip Bhat:
ServletContext is not replicated. It is the HTTPSession which is replicated when I talk of Containers that support clustering.



depend on the vendors whether ServletContext will be replicated or not.

in case of orionserver if u define <repicate-servlet-context="true"> in orion-web.xml then ServletContext will replicated.that class which is using ServletContext should be implemented serializable class.

in case of oracleappserver


orion-web.xml if u define <cluster-config> then ServletContext and session will be replicated .
14 years ago
if i set like this servlet

getServletContext.setAttribute("example",example);

session.setAttribute("example",example);(in case of sessions as u said no problem)

but how this example object set in servletContext will be replicated while doing clustering?
14 years ago
when u deploy ur application in clustering
14 years ago
ServletContext will be replicated in case Session Replication or not
14 years ago
how to make oc4j instances as a cluster in the oracle application server installed in my machine.

Is there any document to do this ?
14 years ago
server not able to find classes12.zip. u put classes12.zip or classes12.jar in the classpath
14 years ago
i am using oracle app server10.1.2

in home instance i am deploying ear.its running on default port 80.default Oracle HTTp server is running in app server. this OHS will run on default port.


i am deploying another ear in that home instance.i want to run that application in 9999.

so one application should run on http://host:80/yourapp/index.jsp
and other application should run on http://host:9999/yourapp/index.jsp

previoulsy i used oc4j standalone appserver .there i created different instances.each instance will run on different ports.

Is it possible when u use app server.
14 years ago

Originally posted by Jeanne Boyarsky:
Kesava,
This article describes the types of session persistance. In is written for WebLogic, but the advantages/disadvantages/types are the same. Conceptually, this is all very similar.



may i know why oracle has not given document abt this session persistent types?

i searched in oracles.i didnt find anything abt this.

r u sure session persistent types are also same for oracle
14 years ago

Originally posted by Jeanne Boyarsky:
Kesava,
I think "ejb container session replication" refers to the session in a stateful session bean.



yes ur correct.Is there anything difference between them
14 years ago
does anybody know what are the types of replication of HTTP session persistence in clustering(In-memory replication,Database persistence etc..)

what is the advantages and disadvantages of each type?

tell me specific to oracle appserver 10.1.2
14 years ago
how ejb container session replication different from HTTP session replication in oracle application server10.1.2
14 years ago
what are the changes should i make at code level when i implemented clustering?
14 years ago
Is this correct to find out the size of the object in session ??am i doing wrong?

i am using HttpSessionAttributeListener interface to get size of the object in session.


private int getAttributeSize(HttpSessionBindingEvent sbe) {
try {
ByteArrayOutputStream bao= new ByteArrayOutputStream();
BufferedOutputStream bos= new BufferedOutputStream(bao);
ObjectOutputStream oos= new ObjectOutputStream(bos);


String attributeName= sbe.getName();
oos.writeObject(sbe.getSession().getAttribute(attributeName));
oos.flush();

int size = bao.size();
return size;
}catch(Exception exp){
return 0;
}
}
14 years ago
while implementing clustering why shouldn't i use Servlet application scope and static variables at code level
14 years ago
what is Load Balancing , failover , session replication and HTTPSession failover?

Is session replication and HTTP Session failover are same
14 years ago