Amol Desai

Ranch Hand
+ Follow
since Jan 29, 2003
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 Amol Desai

Hi,
I am using oracle thin driver to insert a image (blob type) into database.
Which method of PreparedStatement interface should I use to insert data,
setBytes() or SetBinaryStream().
My understanding is BinaryStream also sends data in form of bytes.
Then what is the difference between these two method ?
Please let me know.
Thanks,
-Amol
[ September 01, 2003: Message edited by: Amol Desai ]
Hi,
The value of ANT_HOME in your case should be :
ANT_HOME=c:\ant
-Amol
14 years ago
Hi,
PreparedStatement setString method takes two arguments.

parameterindex - The first parameter is 1, second 2 and so on
value - String value
Hence the following should work :
String strLoginId = "Emp1";//
strSQL = "SELECT count(*) FROM TABLE1 WHERE personnumber = ?";
psmt1 = conn.prepareStatement(strSQL);
psmt1.setString(1,strLoginId);
resultSet = psmt1.executeQuery();
-Amol
Hi ,
The documentation available at http://ant.apache.org/manual/index.html
should answer your question.
-Amol
14 years ago
Hi,
You need to have javaservlets.jdbc.ConnectionPool class in your classpath. If the jar file contains that class, place the jar file in your classpath
-Amol
14 years ago
JSP
Hi,
I am using DII(jaxrpc1.0) to invoke a web service running at http://otn.oracle.com/ws/oracle.otn.ws.scott.OTNDeptEmp
wsdl file is available there.
Following are the exceptions I get.
encoding style: "http://xml.apache.org/xml-soap/literalxml" not supported
at com.sun.xml.rpc.client.dii.BasicCall.getRequestSerializer(BasicCall.java:379)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:279)
at otndeptclient.main(otndeptclient.java:87)
Code to invoke web service is as below:

import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.ParameterMode;
public class otndeptclient {
private static String qnameService = "OTNDeptEmp";
private static String qnamePort = "OTNDeptEmpPort";
private static String BODY_NAMESPACE_VALUE =
"http://otn.oracle.com/wstns/oracle/otn/ws/scott/OTNDeptEmp";
private static String ENCODING_STYLE_PROPERTY =
"javax.xml.rpc.encodingstyle.namespace.uri";
private static String NS_XSD =
"http://www.w3.org/2001/XMLSchema";
private static String URI_ENCODING =
"http://xml.apache.org/xml-soap/literalxml";
public static void main(String[] args) {
try {
String endpoint= "http://otn.oracle.com/ws/oracle.otn.ws.scott.OTNDeptEmp";
ServiceFactory factory = ServiceFactory.newInstance();
Service service =factory.createService(new QName(qnameService));
QName port = new QName(qnamePort);
Call call = service.createCall(port);
call.setTargetEndpointAddress(endpoint);
call.setProperty(Call.SOAPACTION_USE_PROPERTY,
new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
call.setReturnType(QNAME_TYPE_STRING);
call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
"getDeptXML"));
String[] params = { };
String result = (String)call.invoke(params);
System.out.println(result);
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
How do I overcome this problem, please let me know.
Thanks,
-Amol
14 years ago
Hi ,
Check the server instance port number.
Default port number for instance server1 is 80.
-Amol
Hi,
S1AS 6.5 is available at http://wwws.sun.com/software/download/app_servers.html
-Amol
JSF
Hi,
From faq on JSF from sun site :
Ease-of-Use: Several aspects of the JavaServer Faces architecture contribute to its ease-of-use. For one, JavaServer Faces technology offers a clean separation between logic and presentation, enabling a wide range of users -- from web-page designers to component developers-- to take advantage of JavaServer technology, resulting in a division of labor and a shorter development cycle. Also, a user-interface created with JavaServer Faces technology handles all the complexities of user-interface management, including input validation, component-state management, page navigation, and event handling.
Standardization: JavaServer Faces technology is being developed through the Java Community Process, under JSR-127. Several prominent, respected tools vendors are contributing members of the JSR-127 expert group and are committed to supporting JavaServer Faces technology in their tools.
Device Independence: JavaServer Faces technology is designed to be flexible. By defining only component functionality in extensible UI component classes, the JavaServer Faces architecture allows component developers to extend the component classes to generate their own component tag libraries targetted for specific clients.

-Amol
14 years ago
JSP
Hi,
I am using wsdl4j api's to parse the wsdl file.
I could access all the elements of the wsdl file using the api's.
But I don't know how to get the location attribute's value of <soap:address> element.
Please let me know the method to be used to get the location attribute value.
Thanks,
-Amol
14 years ago
Hi,
I am using wsdl4j api's to parse the wsdl file.
I could access all the elements of the wsdl file using the api's.
But I don't know how to get the location attribute's value of <soap:address> element.
Please let me know the method to be used to get the location attribute value.
Thanks,
-Amol
14 years ago
Hi,
This exception is thrown when a component of the name cannot be resolved because it is not bound.
Make sure you have given the current name of your ejb.
-Amol
JSP
Hi,
1) It is jspInit()
2) Stateless Session bean cannot maintain session.
Session beans states are managed by the container.The container does not maintain session for stateless session bean.
-Amol
14 years ago
JSP
Hi,
I guess you need to have your CounterBean class in a package.
The class attribute in your <jsp:usebean> should be of the form:
<jsp:useBean id="beanInstanceName" class="package.class" .../>
-Amol
14 years ago
JSP