venkatesh goud

Greenhorn
+ Follow
since Nov 23, 2010
Merit badge: grant badges
For More
Hyderabad
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by venkatesh goud

Hi Henry,

I have checked but it shows jdk1.7 only.

C:\Users\vgvenkat>where java
C:\Windows\System32\java.exe
C:\Program Files\Java\jdk1.7.0_17\bin\java.exe



Thanks,
10 years ago
Hi

This is my confusion about java path. I have been using JDK 1.7 since so many days. I set the path & JAVA_HOME environment variables to run/compile my application in command prompt using java/javac tools. It was working fine. But recently Java 8 update came & I installed JDK 1.8 too without uninstall JDK1.7. It means I have two jdks & jre in my system. I didn't set path for java8. If i execute the "java -version" command in cmd. It shows java1.8 instead of java1.7. How windows using java8 instead of java7 since path variable set to jdk1.7/bin.

My Path values:
C:\Users\vgvenkat>echo %path%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_17\bin;.


Java Version:
C:\Users\vgvenkat>java -version
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode, sharing)


Thanks in advance.
10 years ago
Think of the include directive as a header file of languages like C/C++. When using the include directive, the combined contents of the original JSP page and all its included resources are translated into the same implementation servlet i.e. the contents of the included resource is copy pasted before translation to a servlet. The important thing here is that all this happens during translation time and only static content is supported.

The include action <jsp:include> is almost similar to the include directive except for a few subtle differences. The include action is executed at request time as opposed to translation time. Thus instead of the content of the include file being included in the calling JSP, the output of the JSP is included or passed to the JSPWriter of the calling page. This allows us to include both static and dynamic content into the JSP page. Using the jsp action also allows you to explicitly pass parameters to the included page.
JSP Syntax (Toggle Plain Text)

1.
<jsp:include page="/index.jsp">
2.
<jsp:param name="name" value="sos" />
3.
</jsp:include>
13 years ago
JSP
Have a look at JXTA - https://jxta.dev.java.net/ They also have demo application MyJXTA which meets your requirements you can download it http://download.java.net/jxta/

Its source is available http://download.java.net/jxta/jxta-jxse/2.5/myjxta/
13 years ago
JSP

Hi,

this may help you..

equals() (javadoc) must define an equality relation (it must be reflexive, symmetric, and transitive). In addition, it must be consistent (if the objects are not modified, then it must keep returning the same value). Furthermore, o.equals(null) must always return false.

hashCode() (javadoc) must also be consistent (if the object is not modified in terms of equals(), it must keep returning the same value).

The relation between the two methods is:

Whenever a.equals(b), then a.hashCode() must be same as b.hashCode().

for more

http://www.vipan.com/htdocs/hashcode_help.html

http://www.technofundo.com/tech/java/equalhash.html


13 years ago

Hi guys,

I have a problem regarding to the software deployment. We're using JBoss 4.2.3.

Please let me explain a typical manual deployment process I'm doing now:

1. Copy EARs, WARs and JARs to server.
2. Stop server.
3. Copy EARs, WARs and JARs to deploy folder.
4. Run database update script.
5. Start server.

I was looking for a way to avoid the server restart. Because it caused a lot of problem and a lot of inconvenience. For example, I had to send emails to a big list in order to schedule a server down time.

The other problem is, we have 2 servers which communicate with each other remotely via SOAP, if one server goes down, it will likely cause some data synchronization problems.

The hot deployment didn't really work for me. Sometimes I got class loaders exceptions, and sometimes cache issues.

I was considering clustering but not quite sure if it would work or not.

Does anyone have any similar experience? Any solutions or suggestions?

Many thanks in advance.


13 years ago
We're getting a very curious error in our application.

java.lang.InternalError: Memory Pool not found

for ( final MemoryPoolMXBean bean : ManagementFactory.getMemoryPoolMXBeans() ) {
final MemoryUsage usage = bean.getUsage(); // Error thrown on this line
System.out.println(usage);
}

What does this error mean, and how do I resolve it? I've googled around quite a bit, and it looks like few people have experienced it and no one has provided any good solutions.


I am running JRockit jrrt-3.0.0-1.6.0_sun_jdk1.6_16 on Linux.

Thanks in advance.
13 years ago
Hi ,

I knew to java.In our project i need to integrate google map in to our project.can we integrate google map using java.
please send any sample code.I have searched but i didn't get sufficient stuff.

Thanks,
Venkatesh
13 years ago
Hi i new to java i stuck here please help me...
my problem is "I wrote a class to write the .properties file it is working fine when i run through normal application.But the problem is when i am using this in jsp means i have create object to this class and used it in my jsp but Iam unble to modify/write the .properties file and Iam not getting any errors".

what is the problem please explain and give if any solution to implement/write .properties file from jsp.

Regards, Venkatesh Gurram.
13 years ago
JSP