Omar IRAQI

Ranch Hand
+ Follow
since Jul 06, 2001
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 Omar IRAQI

Hi Karl,
JDBC 3.0 provides for connection pooling. It introduces the concept of <logical connection> which is a selected connection from the pool of <physical connections>.
It comes with the new package javax.sql that defines, among other classes, javax.sql.PooledConnection, and javax.sql.ConnectionPoolDataSource.
I have already used these independently of any EJBs container or any J2EE Application Server.
Good Luck
Hi all,
My database client is retrieving rows from some tables of a given database periodically. The database client should retrieve at each time only new inserted rows or rows modified since last retrieval.
A priori, tables don't contain any timestamp column, and I can't modify the tables since the database is developed, managed and administered by a different company.
Does anybody know about some JDBC call that allows getting some metadata about rows or any other solution that would help.
Thanks
To Junaid, Michael, and William
I am really sorry.
17 years ago
Here is what Junaid has said:
On host X we have some process that does this :
Naming.bind("somename", someImplementation);
On host Y, we have some other process that instantiates the object someImplementation !!!
How can you find this comment on point ???
Now about the JNDI, thank u for correcting me. This is how we can improve our level, and advance.
But If we were so picky about words (services vs API to those services ...), The list of confusions from your own comments would have been "long long"
cheers
[ October 17, 2002: Message edited by: Omar IRAQI ]
17 years ago
Salam all,
To William: J2EE uses a naming service that is completly different from the basic RMI naming service (RMIRegistry). This naming service is JNDI. So J2EE is a bad example.
To Junaid: Can you tell me how you can do this magical binding of a remote implementation from a different host?
You seem to have deep troubles in undrestanding the basics of Java, processes, address spaces, and RMI.
Regards
[ October 17, 2002: Message edited by: Omar IRAQI ]
17 years ago
NO SIR.
I have double checked for it. Now I am sure that Sun Implementation of the RmiRegistry actually does have this limitation.
If you try to bind an implementation with a remote RMIRegistry, a java.rmi.AccessException is thrown.
Please next time, when you are not sure of something, just don't reply.
Regards
[ October 16, 2002: Message edited by: Omar IRAQI ]
17 years ago
Hi every body,
Is it mandatory that the RMI registry run on the same machine on which the RMI implementation is running ?
If it is actually the case, this is very bad for distributed computing.
Regards
17 years ago
Salam Ahmed,
Are you trying to establish a SSL connection between the HTML client and the Web Server, or between the servlet and some backend server (broker) ?
Hi Matt, Hi All
I've not been around a couple of days.
I am happy that you did solve the problem using JDK 1.3.1
About InetAddress.getLocalHost() that returns the loopback address : this problem is easily solved by modifying the /etc/hosts file the way discribed above in this topic. (and if you haven't modified the /etc/hosts file you would still encounter the following problem : cannot connect to 127.0.0.1 even with JDK 1.3.1)
Now I am quite sure that with JDK 1.4 InetAddress.getLocalHost() returns 0.0.0.0 independently of the content of /etc/hosts file!!! (a bug maybe)
Once again, congratulations.
Regards
[ July 03, 2002: Message edited by: Omar IRAQI ]
18 years ago
Hi All,
In a multithreaded environment where all threads use the same JDBC connection, are sql statements results multiplexed over that connection or are they transmitted in a serial fashion ?
Regards
[ June 29, 2002: Message edited by: Omar IRAQI ]
Hi Matt,
As we have already mentioned, the stub contains the IP address of the endpoint where the implementation is running.
When the method Naming.rebind() is executed on your linux machine, the RMIRegistry builds the corresponding stub and issues a system call to get the IP address of the localhost (the alias localhost is VERY IMPORTANT here) to associate it with that stub.
Under linux system, the IP address of the localhost is mapped from /etc/hosts file. This is why, you should overwrite 127.0.0.1 with [YOUR_SERVER_IP_ADDRESS].
try a new <ping localhost> to make sure the modification has taken place, and reexecute your app.
Waiting for your feedbabk.
18 years ago
Kajol,
The only one difference between plain text and html is the way it is interpreted, unless you tell me that the html tags disappear en route (which is impossible).
Regards
18 years ago
Hi sivvaa ,
There are plenty of solutions :
1-Open a JDBC connection to the database from the applet directly. The applet should be SIGNED.
2-Run a servlet at server side and have this servlet open a JDBC connection to the database. The applet would pass the parameter to the servlet through HTTP. Upon receiving the parameter, the servlet would insert it to the database through JDBC.
3-multi-tier solution with RMI or CORBA broker between the servlet and the database.
Regards
18 years ago
Also, when you issue :
ping localhost
on your linux machine
1-do u get the reply from 127.0.0.1 ?
2-do u get the reply from [linux_machine_IP]?
3-no reply at all
Regards
18 years ago
Matt,
The config of eth0 seems to be fine
Let us see the content of /etc/hosts
Regards
18 years ago