Kiran Yadav

Ranch Hand
+ Follow
since Nov 02, 2011
Kiran likes ...
Eclipse IDE Firefox Browser Windows XP
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kiran Yadav

I have developed web service in web logic using eclipse IDE tool. The web service is working fine. However I would like to make it secured one. So that it can be accessed as below =

https://www.example.com/services/testservice

Here I would like to use "https" instead of "http". If username and password is required then I am ok to use with weblogic username and password.

Kindly let me know the steps for creating such kind of web service.

Thanks in advance!
9 years ago
I have source code, in which I have created one main thread. The main thread contains 10 (ten) child Threads. Each child thread call database and process data from data base. Now in such case, the almost 50% data get processed, and later on "java.sql.SQLRecoverableException: IO Error: Got minus one from a read call" error get thrown from code. For getting connection, I tried to use connection pool as well as single connection. However, using both connection ways, I am getting same error.

Below is the error details :
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)


Kindly provide your opinion, what get wrong in this case?
Thank you so much everyone for your inputs. This will surely help me to create custom hashmap for real application.
12 years ago
For the application, we are planning for creating custom hashmap class.

So will you please help us to consider the factors for creating custom hashmap.
12 years ago
You have provided provider url=corbaloc:iiop:localhost:2809,

Is it the correct port? Please verify it, as error log gives out : java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
You have accessing the EJB with JNDI name= "app/advice".

You have to map name "app/advice" to JNDI tree through Admin console. i.e. after deployment.

Please see attachment.
For first parameter i.e. boolean transacted , my understanding is ,

The first parameter of the method specifies whether the session is transactional.
This means that the requests for messages to be sent won’t be
realized until either the session’s commit method is called or the session is closed.
(If the session isn’t transactional, messages will be sent as soon as the send method
is invoked.)


Is my understanding ok.

Will you please help me in understanding second parameter i.e. int acknowledgeMode
After deployment, go to deployed module.
Open its properties and set the JNDI name for the EJB.
Thank you Jesper.

As latest documentation is availabe online (as provided url by you) no hardcopy is required.
12 years ago
In to create session object from ConnectionFactory for JMS implementation we have method called createSession() with two parameters.

In documentation the following details is given :

public Session createSession(boolean transacted,
int acknowledgeMode)
throws JMSExceptionCreates a Session object.

Parameters:
transacted - indicates whether the session is transacted
acknowledgeMode - indicates whether the consumer or the client will acknowledge any messages it receives; ignored if the session is transacted. Legal values are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.


So kindly help me in understanding regarding these two method parameters - boolean transacted and int acknowledgeMode.
Hi Surabhi,

It is always good idea to use common functionality to in that modules common package, so as to use this package as jar not as common project.

This will help during compiling the code and avoid extra load on dependent project during the building in development environment.
12 years ago
Thank you Rob for your correction. Next onwards I will take for it.
Thank you arulk for your suggestion.
12 years ago