This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!

Milind V. Kulkarni

Greenhorn
+ Follow
since Apr 12, 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 Milind V. Kulkarni

Check whether EJB is properly deployed or not. This kind of error is encountered only when EJB is not deployed correctly.

Regards,
Milind
Per EJB Specifications Stateless EJBs can have only one create method. And it can not have any arguments. However, Statful EJBs can have multiple create methods and those including that accept arguments.
Hi All,
The advantage of DataSource over DriverManager interface is that DataSource is JNDI compatible. We can do a lookup on JNDI to obtain a handle of DataSource the same is not possible using Driver Manager interface.
Transactional DataSources are generally used in scenarios wheteher you turn off the auto commit option to control the transaction. This feature is also used in cases involving 2 phase commit.
Reagrds,
Milind
16 years ago
The isolation level measures concurrent transactions' capacity to view data that have been updated, but not yet committed, by another transaction.
ReadUncommitted: Data that have been updated but not yet committed by a transaction may be read by other transactions.
ReadCommitted: Only data that have been committed by a transaction can be read by other transactions.
RepeatableRead: Only data that have been committed by a transaction can be read by other transactions, and multiple reads will yield the same result as long as the data have not been committed.
Serializable: This, the highest possible isolation level, ensures a transaction's exclusive read-write access to data. It includes the conditions of ReadCommitted and RepeatableRead and stipulates that all transactions run serially to achieve maximum data integrity. This yields the slowest performance and least concurrency. The term serializable in this context is absolutely unrelated to Java's object-serialization mechanism and the java.io.Serializable interface.

Regards,
Milind
You can use the following code to solve your problem:
public static DataSource objDataSource= ctx = new InitialContext();
DataSource objDataSource = (DataSource) ctx.lookup ("DataSourceName");
Regards,
Milind
Hi,

This problem is usually caused if you have an older version of class file lying somewhere in your directory structure. It seems that your CLASSPATH is such that Class Loader is giving preference to the older version of the class file where the method you are trying to invoke does not exist and hence java.lang.NoSuchMethodError is raised.
Search for the older version of the class file in your directory structure and delete it to solve this problem.
HTH,
Milind
[ July 28, 2002: Message edited by: Milind V. Kulkarni ]
17 years ago
Hi All,
Our application requirement is that we have to display the error messages either in English or in German language depending upon the language selected by the user. In our application error is displayed using an Alert mechanism. We are performing some basic validations at the front end and rest of the validations are performed in the middle layer. All the errors that are trapped in the middle layer are propogated back to the Servlet and finally to JSP so that error can be displayed to the user. To handle various attributes of an error we have defined an error object.
To avoid duplicate error messages we are using error codes to display the error messages. Our strategy to display error messages in English or German language is as follows:
1. We have defined the error codes are java script variables in two java script files Error_en_us.js and Error_de_ch.js.
2. Based on the language selection we are loading one of this file for a given session.
3. Depending upon the error code we are retrieving the error message from one of these files.

I am not very sure whether this is the best strategy to handle multi lingual error messages. Any comments on my strategy would be highly appreciated.

Regards,
Milind
17 years ago
JSP
Hi David,
If you have installed WebLogic on the Unix environment - Check that you have $WL_HOME/lib/solaris and $WL_HOME/lib/solaris/oci816_8: in your LD_LIBRARY_PATH.

Regards,
Milind
17 years ago
Hi,
As far as I know WebLogic plugins for Apache are not available for the Windows platform.
I am not too sure whether any workaround is also available. If anyone knows about any work around please do let me know.
Regards,
Milind
17 years ago
Hi,
I am not very sure whether it is really required to keep the connection open for a 'paging' functionality. In our project we have a similar functionality. We are limiting the size of our result set using "rownum" psedocolumn. Since you are also using a Stateful Bean it would be deinitely possible for you to keep a reference of the last row retrieved and when the next request made you can retrieve another set of results. Now during each SQL query we are flushing the data out of resultset into a corresponding structure and then closing the ResultSet as well as the Connection object.
Important thing here is to remember that when you close the connection the connection is not actually closed but it is return to the pool. Hence you can open or close as many connections without incurring major performance over head.
I think it is very difficult to track whether all the Connections are closed when session is terminated. To achive this you might have to carry all the open Connection objects in your Session object and close them when the session is invalidated.
Regards,
Milind
Hi,
In my opinion the all the formatting logic should reside in the presentation layer of the application.
This is very much required in the multi-lingual application where currency, number format, etc. may be different for the differnt languages.
Regards,
Milind
Hi,
There could be 2 options in here:
1. StateFull SessionBean methods return partial result, for example for every N records.
2. Using JMS Queue
Session bean method execute query, getting data from ResultSet and periodically sending result object to queue.
Regards,
Milind
17 years ago
Hi,
This issue is reported as a 'Known BUG' in WebLogic server. This problem is fixed in the subsequent SP releases.
check the bea site for more details.
Regards,
Milind
17 years ago
Hi All,
We are all aware that Home Interface is generally used by the container for creating and destroying EJB objects. Container does this management by itself and programmer does not have to perform any coding explicitly.
I have seen that in most of the tutorials, examples show that Home interface implement just the create method but the other methods are not implemented at all.
My query is that if the if EJBHome interface also implement a method to destroy the EJB object why don't we implement it.
Thanks in Advance,
Milind
Hi,
The problem seems to be in setting up the CLASSPATH. Check your CLASSPATH. Also check whether your class is accessibale using javap option.

Regards,
Milind
17 years ago