premchand chand

Greenhorn
+ Follow
since May 07, 2008
Merit badge: grant badges
For More
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 premchand chand

Dear Ranchers,

I had 2 applications with same cookie name 'JSESSIONID' running on 2 different nodes of a Websphere Application Sever 6.1,my applications are not compatible for a change cookie name.Is there a way I can resolve.
Both app1 and app2 has same cookie name and running on same domain,so the browser is not able to differentiate between the cookies I reckon,session time out happens only sometimes the behaviour is not consistent.
Both my applications needs a separate login and are accessed from different browser windows using https.The way access the applications
eg : https://domainName.com/app1
https://domainName.com/app2

After googling I found the below possible approaches,
1)Change the cookie name(Which I can't)
2)Changing the path name at cookie level for both my applications

3)http://www-01.ibm.com/support/docview.wss?uid=swg21210881&wv=1
I don't know whether I can apply the same to my scenario.In case if I can apply this do I need create a custom property HttpSessionIdReuse at both the server nodes.
In this case does the session object contains the data set by both the applications.Can anyone through some light how this works or is there any better solution to this problem.



thanks in advance
12 years ago
I have a requirement where a multi key stroke select combo is required, in which, users key board input should narrow down to the closest possible option. This is by default supported in IE7 onwards, however, if user types certain letters on key board and waits for a few seconds before typing again, his previous key board entries are discarded and new key board entries are used to zero in to the correct option in drop down.

We need a feature in which user can type the keys and wait for any amount of time before resuming typing. This should not discard the previous key strokes. For example, assume that a combo box has options like "Garden", "God", "Goldman" and "Lehman". If user types "G", "Garden" should get selected, when he types O (making his input GO), then "God" should be selected. If user pauses here for a few secs and resumes by typing L, it should not take you to "Lehman", rather it should take you to "Goldman".

Has anyone done this kind of thing before? Any online resources where this feature is available? Please share your knowlege about this.
We have a requirement to read the pom.properties present inside the JAR complied by maven.
Could anybody provide any pointer how to go about it?
14 years ago
We have a requirement to read data from MS Access db file in UNIX, using JAVA.

Could someone provide any pointer how to go about it?



I was trying to use the below but was failing on UNIX:



Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";

database += this.fileName.trim() + ";DriverID=22;READONLY=true}";

this.con = DriverManager.getConnection(database ,"","");

this.stmt = this.con.createStatement();


I am working on a one way Notification web service, using WSAD 5.1 with JDK 1.3 version. I have to generate the JAXB mapping classes for the XSDs of the service which are remotely located (with http urls)
I am using ant script XJC target to generate the classes, but the jaxb:binding tag does not recognize the schema location with the urls.

A similar approach was followed to generate the mapping classes using JAXB2 without any errors, but I am not able to generate the classes for JAXB and jdk1.3.

If anyone has worked on this before and can send me the snippet of the ant scripts used would be of great help.

Next, in order to generate the mappings, I created local copies of the XSDs and generated the implementation classes.
After creating the classes I encountered an error while invoking the service which was:
“org.springframework.remoting.RemoteAccessException: Cannot access remote service [{http://docs.oasis-open.org/wsn/bw-2}testSOAP]; nested exception is Error invoking operation:
javax.xml.rpc.JAXRPCException: Number of parameters passed in (1) doesn't match the number of IN/INOUT parameters (2) from the addParameter() calls “
After debugging the code, I found that the error is occurring when the service is using the reflection to dynamically identify the input parameter from the WSDL binding.
Although I am passing a single argument(NotifyImpl), the class is ignoring the base parent element which is Notify and using its child elements “Notification Message” and “Any” as parameters.
The schema for the service is :
<xsd:element name="Notify">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="wsnt:NotificationMessage" minOccurs="1" maxOccurs="unbounded"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

And the WSDL port type mapping is :
<wsdl:portType name="NotificationConsumer">
<wsdl:operation name="Notify">
<wsdl:input message="wsntw:Notify" />
</wsdl:operation>
</wsdl:portType>

<wsdl:message name="Notify">
<wsdl:part name="Notify" element="wsnt:Notify"/>
</wsdl:message>

Again, this code is working fine for jaxb2 but is giving an error in JaxB.

Any pointers would be very helpful.
14 years ago
I mean to ask once they prepare a set Questions for the scjp exam in the database.How often they change the Questions in the database.Because each individual should be tested on the same level of Questions.

[ May 07, 2008: Message edited by: premchand chand ]

[ May 08, 2008: Message edited by: premchand chand ]

[ May 09, 2008: Message edited by: premchand chand ]
[ May 09, 2008: Message edited by: premchand chand ]