Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Sai Swami

Ranch Hand
+ Follow
since Sep 24, 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 Sai Swami

Hi Fellow Ranchers !

Can anyone suggest where I can find info on how to build social networking sites using Java/JEE ?


Thanks for your time,
Sai
11 years ago
JSP
Hi Fellow Ranchers !

Can anyone tell me where I can find the 'Java EE architect study guide' in Kolkata, India ?



Thanks a lot!
~Sai
Hi Group !!

Can anyone tell me what KIND of questions they ask on virtualization ?


Thanks a lot,
Sai

Thanks Cameron. That helped.
Hi Ruguia,

The folder structure is showing under "webapps"



Thanks,
Sai
12 years ago
Hi Everyone,

I exported my .war file under webapps directory of Tomcat installation from Eclipse 3.2. I go to http://localhost:8080/manager and I can see my application has been deployed. However, when I click on the link, I am getting a 404 error.


Below is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> -->
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>

<servlet>
<servlet-name>TimesheetServlet</servlet-name>
<display-name>
TimesheetServlet</display-name>

<servlet-class>
TimesheetServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TimesheetServlet</servlet-name>
<url-pattern>/Timesheet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/jsps/timesheet.jsp</welcome-file>
</welcome-file-list>
</web-app>

I am going to: http://localhost:8080/TaskTrackingTool

I also have included a index.jsp under WEB-INF. It is not showing. I have included this file only for testing purposes. As seen in web.xml, I have my jsp under jsps folder under WEB-INF.

Even if I go to http://localhost:8080/TaskTracking/jsps/timesheet.jsp, it is not showing anything. Giving 404 error.




Thanks for your time,
Sai
12 years ago
Hi All,

I am creating a new dynamic web application in Eclipse. It is creating a folder called "WebContent" under the application root directory and under it is the WEB-INF directory. However, when I see the sample applications under tomcat installation, I see they have WEB-INF directly under the root folder.

I am unable to see my deployed application in Tomcat. I am getting a 404 error

Can anyone throw some light please?



Thanks for your time,
Sai
Hi Fellow Ranchers,

Can anyone tell me if the variants of J2EE design patterns need to be memorized for the SCEA 310-052 exam?


There are too many variants of the same design pattern in the Core J2EE Patterns book by Alur, Crupi, et al. Huh !




~ Sai
Hi Everyone

Can anyone please say which is a good site for finding work from home on Java projects?

I work as Team Leader in a very good company in Pune.

I have 8+ years of experience.


Thanks All,
Sai
12 years ago
Hi Jolly Ranchers,

I have an app that reads from one db and stores in another db. there are 500000 records. i want multiple threads to do the reading and insertion.

how can i control the number of threads spawned? can anyone please throw some light on the design ?



thanks
~Sai
Hi Ajay,

Reading from db x and writing to db y is a "set". They should happen together.

Hope this helps,
Sai
Hi Jolly Ranchers,


I have a simple stand-alone Java app that reads from one database (only SELECT) and adds data to another database. The table structure in both the databases is not the same. There are around 4000 records.
I need to make this process a multi-threaded one where each set of operations is executed concurrently.

Can anyone please throw some light on the design? Also, what points should I keep in mind?




Thanks a LOT for your time
~Sai
Hi Fellow Ranchers,

I have a question on infinite block problem or halting problem.

Following is the excerpt from the book Mastering EJB ( 3rd ed), pg 316, Chapter 12:

" TRANSACTIONS AND JMS MESSAGE-DRIVEN BEANS
---------------------------------------------------------------------
....
.....
Let's say you have an EJB component (any type of component) that sends and then receive a message all within one big container-managed transactions. In this case, the send operation will never get its message on the queue, because the transaction doesn't commit until after the receive operation ends. Thus you'll be waiting for the receive operation to complete forever. This is called the infinite block problem or halting problem.
"

What I cannot understand is why will I wait forever for receive operation to complete ?

Can any one explain please?


Thanks for you valuable feedback
-sai
I am asking on the basis of Part -II submission.