Manoj Gundawar

Ranch Hand
+ Follow
since Nov 17, 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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Manoj Gundawar

Hi,
Our weblogic server (8.1 sp3) classpath refers to spring 1.2
But my app uses spring 1.1. So I am trying to set the class-Path in my EAR so that it loads the spring from my EAR and not from server lib. But it is not working.
My class path setting in Manifest.mf are:
----------------------------------
Manifest-Version: 1.0
Class-Path: APP-INF/lib/spring.jar
-------------------------------------
spring.jar is inside APP-INF/lib (and APP-INF at the root of EAR)

Is this not supported by weblogic 8.1?

Any help?

Thanks,
Manoj
12 years ago
Hi,
Is there any good book that is dedicated to the discussion about java and database access issues? I am specifically looking for articles/books which discuss about transactions, concurrent DB access issues, how EJB handles it, (CMT/BMT) what are different approaches etc. (I am planning to have a complete view on this topic)

Thanks,
Manoj
12 years ago
We need 5 candidates with intermediate to expert level in J2EE.
We need the resume today only.
Its 6 months contract work (with high possibility of extension) in Bay area.
Respond asap to mgundawar@hotmail.com
Thanks,
Manoj
12 years ago
Hi,
There used to be a product called FFMTIFF, produced by FFMSoft (http://www.ffmsoft.com)which could intigrate with Java to view and print tiff images efficiently. But this site is not working. Also any links to download this API(jar) from elsewhere is also not working.
Does anyone knows what happened to this site? OR
Does anyone have the old downloaded Jars?

Please let me know.
Thanks,
manoj
Hi Paul,
Thanks for your reply.
But we have a requirement which might need printing to be done from (we think) the server side. Here is the scenario:

We have Java client which allows users to print a document (TIFF format) When we tried this using AWT print, single page TIFF document itself caused several issues:
1.It generated a java print spool of 10MB. (in print spool)
2. Took long time to print 1 page doc. (normally we will have 4-1000 pager tiff docs)
3. For big docs (like 10 pager or so) it caused system to respond slow (hang effect)

Our java client is on JDK1.3. We can not upgrade this to 1.4 (to use javax.print API) just like that,as it affects 100+ business users.
(Also not sure if Javax.print API makes printing faster and efficient)

So we thought about printing this from server (UNIX) as an alterative solution. But J2EE also dosen't support javax.print API.

==================
If anyone has faced this kind of problem and has come up with workable solution, please respond. Also if you can think of some theoritical way to achive this please let me know. (I will try it)
==================

I am open to use JNI, but not sure which language have good support for printing image docs (C++/C/VB?)

Thanks,
Manoj
Is javax.print (Java Print Service API ) available in J2EE1.3? (as far as I know, it is not)
But is there any work around to use this in 1.3?

Thanks,
Manoj
Hi,
I guess you can do it by invoking the same Servlet from JSP but passing different parameters. You can have a parameter called "action" and based on its value same servlet would perform different processing.
13 years ago
Hi William,
I liked the idea of doing this in helper class. I was planning to do in the init method, cause, the requirement was to have no manual intervention to start this process. But helper class solutions sounds promising.
Thanks for the suggestion.
Manoj
13 years ago
Thanks Mike,
Actually its little complext scenario. Connection is really done thru third party software (Documanage). Servlets just calls Documangae API to fire the query. It can not directly make JDBC call. The same connection opened by Documanage is also used by some process which runs on UNIX server every day twice. This is some automated process that does some daily updates. This process fails if the connection to DB2 is lost.

Basically I want to know the implications of the solution discussed above. (in my first post)
If anyone has any idea or thoughts, please let me know.
13 years ago
Hi,

In our test environment DB2 connection gets lost, if no queries are made in the span of 2 hrs (if connection remains idle for 2 hrs). This causes some other serious issues.
To keep the connection always alive, I have written a servlet that fires query to this DB, after every 1 hr. But to achive this I had to write infinite loop in the Init method of the servlet as follows:



And in servlet tag of web.xml, I added LOAD-ON-STARTUP=1 tag, so that no one has to manually invoke this servlet.

Is this ok, if Init never returns to the servlet container?
[ October 08, 2004: Message edited by: Manoj Gundawar ]
13 years ago
As a quick and dirty solution this can be achieved thru JavaScript too. (Although not recommended)
In JavaScript you can check what button was pressed and based on that, you can change the action servlet name (or JSP ) before submit.
Ex: If the form name is FaxForm, the code required to change the action target would like:


To show the previous page from the caches (when user submits back button) you can use following JS

[ October 08, 2004: Message edited by: Manoj Gundawar ]
13 years ago
JSP
Chinnu,
Sorry, but your problem is not clear to me. What's your real question? Can you rephrase it?
And from the part which I understood, I can tell you for sure that, no one will suggest to use JSP for that kind of functionality. Use servlets or EJB (if business logic is involved in this process)
[ October 08, 2004: Message edited by: Manoj Gundawar ]
13 years ago
JSP
Hi Tamer,
Things to be looked very carefully:

In Web.xml:
Servlet tag is correct. (class name etc)
Servlet mapping tag is given correctly.

Also make sure that servlet class is present in the correct directory under web-inf. Check the URL you are using to access the servlet.
Restart the server, after you do any corrections.
It should work. There is no magic in that, unless there is some silly error.
[ October 08, 2004: Message edited by: Manoj Gundawar ]
13 years ago
Hi Anila,
One possibility is that your session is already expired by the time you are
trying to invalidate, (or may be it was never set to true)
Check on that part.
13 years ago
JSP
I am not sure why you are doing that. May be you have your own reason. But
try using absolute path for images and CSS in your JSPs.
Ex. /APP_NAME/folder_name_of_CSS/Actual_Name_Of_CSS_File
[ October 07, 2004: Message edited by: Jmannu gundawar ]
13 years ago