Milind Kulkarni

Ranch Hand
+ Follow
since Jun 01, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Milind Kulkarni

Hi All,
I am in the process of designing a system for an insurance company. This insurance comapany has number of products for their different types of customers.
We need to design our application in such a way that the system should be flexible enough so that the new products could be added without having to make lot of changes in the existing system.
We plan to have a css (cascading style sheets) for the front end for each of these products and some generic methods which would the processing at the back.
Is there a better way of doing this using XML technology? Please let me know.
Regards,
Milind

Hi Ravi,
What is the size of file you are trying to insert into the db?
Another alternative could be to convert image file into a byte array and store it as LONGVARBINARY (JDBC Type) which is a LONG RAW type in Oracle dbms.
Regards,
Milind


[This message has been edited by Milind Kulkarni (edited September 05, 2000).]
Hi Evan,
BTW - Observer is an interface rather than a class.
A class can implement an Observer interface when it wishes to tell other objects that some event of common interest is going to happen. Suppose, I am trying to write an online chat application and one of the condition is that every client that is connected to the chat server should be updated everytime any one says something.
So we might have Chat session to be an Observable and each client to be implementing Observer interface. So it lets you brodcast event notification to any number of interested clients.
Check out the further details here:
http://www.javaworld.com/javaworld/jw-10-1996/jw-10-howto.html

Regards,
Milind
24 years ago
Hi Yogesh,
Yes, long to float is a widening conversion even hence explicit casting is not required. Refer to JLS here:
http://java.sun.com/docs/books/jls/second_edition/html/conversions.doc.html#25214
Regards,
Milind
24 years ago
Here is how I would proceed:
1> Create an instance of File object
2> Read the file contents using BufferedReader and FileReader objects.
3> Read the file contents line by line.
4> Use the StringTokenizer object to break the line into various String tokens.
5> Store the tokens ( which may include user ids, passwords, etc.) into different vectors.
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited August 30, 2000).]
24 years ago
In Java the scope is determined by the placement of the curly brackets ({})
Consider the following examples:
FOR PRIMITIVES
{
int i = 10;
/* Only i is available */
{
int j = 100;
/* both i and j are available */
}
/* Only i is avaialble and j is out of scope */
}
/* Both i and j are out of scope */
Thus variable defined within the scope is available only till the end of that scope.
FOR OBJECTS
In the case of Java objects, it hangs out past the end of the scope. Thus if you have:
{
String str = new String ("Javaranch");
} /* end of the scope */
Reference str is invalid at the end of the scope. However, String object whose reference was str is still occupying the memory. Thus when a reference to an object goes past its scope, the object is said to be unreachable.
Regards,
Milind


[This message has been edited by Milind Kulkarni (edited August 30, 2000).]
24 years ago
Hi All,
How about using windows Access Control List to add / check permissions based on the user group? The only dis-advantage of this method is that it is tied to WIN NT.
Regards,
Milind
Could we know what do you want to do? IMHO if you want to know about access modifiers then should refer to any basic Java Language book.
Regards,
Milind
I would suggest you not to take tips from others and try to solve the assignment on your own. Initially, it might take some time but then programming profession is all about hard work and perseverence.

[This message has been edited by Milind Kulkarni (edited August 28, 2000).]
24 years ago
Check out DynaServer here:
http://www.dreambean.com/dynaserver.html
Regards,
Milind
24 years ago
Hi Smita,
There is absolutely no difference in the way you call remote method (on the different host) and the local method ( on the same host). As pointed out by Venu make sure that your client can access Z class implementation either copying class Z in your client directory or dynamically loading class using CODEBASE.
Regards,
Milind
24 years ago
Hi Kevin,
I tried to replicate your problem on my machine but I did not experience the same problem. Here is what I did:
My working directory structure is c:\Examples\pack (I saved two inetrface files in c:\Examples\pack). CLASSPATH points to c:\Examples.

Task.java
package pack;
import java.io.Serializable;
public interface Task extends Serializable {
Object execute();
}
Compute.java
package pack;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote {
Object executeTask(Task t) throws RemoteException;
}
You may be experiencing this problem because of some conflict with the existing files on your system. Check out if you have any old files with the same names.
Hope this helps !!
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited August 23, 2000).]
24 years ago
Hi Sarge,
I got the similar results. And when I probed further I have got this information about setTime() method.
"setTime
public final void setTime(Date date)
Sets this Calendar's current time with the given Date.
Note: Calling setTime() with Date(Long.MAX_VALUE) or Date(Long.MIN_VALUE) may yield incorrect field values from get().
Regards,
Milind
24 years ago