Win a copy of Emmy in the Key of Code this week in the General Computing forum!

Tiger Scott

Ranch Hand
+ Follow
since Mar 01, 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 Tiger Scott

Applet can not talk to any other server than where it was downloaded from.
14 years ago
Yes that is me.
Also I do something identical. I am doing IIOP so the semantics are different.
Thanks
Sanjay
16 years ago
George,
could you run RMI on Tomcat? I have not been able to do it either on Tomcat or JBoss. I have been able to get past the codebase and policy kind of issues can deploy and start it but it gives errors of various types. The final one when I try to execute a method:
java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 1398079692 No.
Thanks
Sanjay
16 years ago
Found the problem. The _Stub is created in the interface package and I was looking for it in the Impl package. I have to still find out why the _Stub is not found.
Thanks
16 years ago
George,
I am also not using EJBs. Just don't want to take the trouble.
I am having trouble creating the iiop _Stub. The rmic -iiop is not doing that for me- creates the -tie fine. Anything special I need to do for that to happen,
Thanks
Sanjay
16 years ago
Hi,
Still struggling with this
Anybody has any ideas on this.
Thanks
Sanjay
16 years ago
George,
You can potentially use a Servlet to launch your RMI Server. Just initiate it in the init() of the servlet.
HTH
Sanjay
16 years ago
Hi,
I am compiling in 1.4 using rmic -iiop - it is not creating the _Stub class (it only creates the _Tie class). Anything I need to do for that to happen.
As a consequence when error when I run my RMI Server
Error starting service: RemoteException- java.rmi.StubNotFoundException: Stub class not found:
Thanks a lot,
Sanjay
16 years ago
Hi,
I am running my applet on IE 5.5 not using any plugin, on a NT heavy
duty machine. The applet takes up 100% CPU. The applet does not have
any GUI component but launches JSP pages. The applet connects to
backend resources using socket, uses threads etc. The bulk of the code
is in Java classes- the classes themselves run fine outside of the
applet.
Any ideas or suggestions welcome. How can we measure cPU usage in
Java?
Thanks a lot,
Sanjay
17 years ago
I think the easiest way to learn UML is to use a UML tool- like TogetherJ etc
Sanjay
I am trying to use the Timer and TimerTask. I want to be able to reschedule my tasks. That is canecl(in some way) the current task and then reschedule it for later.
When I try- cancel the timer or timerTask - I get and schedule it back I get an exception--
Exception:java.lang.IllegalStateException: Timer already cancelled.
How do I resolve this.
Thanks
Sanjay
17 years ago
I need to read the client IP address. I do not find a System property for it.
TIA
Sanjay
17 years ago
Are all DataSource's pooled or we have to specifically create a PooledDataSource? Is it an ApplicationServer configuration?
In case if a source is not pooled- if we get and close a connection does the connection completely go away?
TIA
Sanjay
Peter,
Thanks.
You mean just open a Socket with:
Socket(String host, int port, InetAddress localAddr, int localPort)
Sanjay
Hi,
I have to open a socket connection to a server using the providers documentation. Can somebody help translate it in Java for me. This is what the documentaion has:
fd=socket(AF_INET,SOCK_STREAM,TCP_PROTO)
myaddr=(socket structure){AF_INET,wsport,myIPAddr)
bind(fd,myaddr)
apiaddr=(socketaddr structure){AF_INET,SERVER_PORT,serverIPaddr)
connect(fd,apiaddr)
AF_INET=2, SOCK_STREAM=2,TCP_PROTO=6
wsport= a unique client port
myIPAddr= client IPAddr
SERVER_PORT,serverIPaddr- known
fd- definition of socket connection
Thanks a lot,
Sanjay