cata lin

Ranch Hand
+ Follow
since May 11, 2000
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 cata lin

Thank you all for taking your time to reply
Cheers.
18 years ago
Hi everybody,
I would like to set up my own Internet server, at home.
I have my own machine and I would like to play from home with all the net
stuff.
Obviously, I need a IP and a domain name.
Could anyone, please, tell what else do I need ? A link to some how-to or tutorial would be greatly appreciated.
Thankx.
18 years ago
Hi Ahmed,
I read your post, and here are some ideas.
Since you are using CORBA, the server part
might be written in any language, including
C++ ;-), this will for sure improuve performance.
Since the client in an applet, it needs the .jar
which contains the CORBA stuff. Netscape comes
with VisiBroker classes(Netscape: Help\About Navigator) , but then there are problems with versions, other browsers ... so it's better for the jars to come on the net .
Hope it helps.
Cheers.
19 years ago
Hasta la vista ...
20 years ago
Hi,
CORBA is language independent.
Let's assume, just for the converstion, that there is a server and a client in a CORBA-based architecture of a distributed system. The server, written in C++, will work with a client written in Java. On the wire is IIOP, a protocol for communication between "computing entities" (servants).
Try www.mico.org, runs on a linux box, and comes with a bunch of very good/detailed examples.
Best of luck.

Cata.
20 years ago
Hi Robin,
First, you need to know some Java. More than the basics.
Then you need to know some networking stuff, TCP/IP especially.
Then you need to know some TCP/IP programming (the basics, to understand what is under the ORB).
Then you need to understand CORBA. It's not very difficult. Just a buch of new API ( sort of ;-) ).
To program:
Install java JDK1.2 or 1.3
Install a CORBA dev kit. Try www.borland.com/visibroker for a good trial.
I assume you have a win or linux system.
By the way, in my case, it took me 3 months to understand what's all about CORBA and I am still learning (I am not the brightest around).

Best of luck.
Catalin.
20 years ago
Hi,
ORB_CTRL_MODEL. This is the alternative.
But the subject (ORBs and multithreading) is very large and ORB-dependant. I am generally working with VisiBroker, but there is also IONA and MICO on the market.
Points to check:
-multithreading of the ORB's libraries.
-threding policies:thread-per-request, thread-per-connection, thread pool.
-POA threading polycy: SINGLE-THREAD or ORB_CTRL_MODEL - for the servant.
You mentioned that you are a Java beginer. A good book would help. Make clear the threads in Java, then how they are on the OS side, and then how servants might maximize the performance.
Recommened reading : Henning&Vinoski "Advanced CORBA".
It's for C++, but the topics are pertinent to Java.
Hope it helps.
Cheers.
20 years ago
Hi,
First idea in my mind is to register the object's servant with a SINGLE_THREAD_MODEL POA.
Or you can write your own thread safe wrapper for the code you are using ...
Cheers.
20 years ago


I wrote a socket application to transfer files ,
and I use JavaOrb to implement the java server script,
how can I achieve the multithread ?


Hi,
Could you please give more details about what you did ?
I do find it clear.
Since it is a socket application, how do you use JavaOrb ?
As I know, the orb comes atop of the tcp/ip stack, and you
talk to the orb when you make network traffic.
About server multithreding, you may have a look at
"Thinking in Java" at
http://www.mindview.net/Books/DownloadSites
where the java book has a very good example in the network chapter.
Cheers.
Cata Lin.
20 years ago
Hi,
Try www.mico.org .It's free and it's very good. If you want something from companies, try www.borland.com, and look for vbroker. It's a free evaluation demo.
Cheers,
Catalin.
20 years ago
Hi,
Did you have something like an IDE installed before and uninstalled it ? Something like JBuilder ?
Try to uninstall jdk, then reinstall it.
Hope it helps.
Cheers,
Lin.
20 years ago
Hi,
You can get information about real-time systems from www.qnx.com.
For good info on UML check www.cetus-links.org, the UML link.
Cheers,
Catalin.
Hi Tom,
Have a look at this.

File f = new File(args[0]);
FileInputStream fis = new FileInputStream(f);
BufferedReader data = new BufferedReader(new InputStreamReader(fis));

File fo = new File(args[0]+"bak");
FileOutputStream fos = new FileOutputStream(fo);
BufferedWriter datao = new BufferedWriter(new OutputStreamWriter(fos));


DecimalFormat frm = new DecimalFormat("000");

boolean flag=false;
int i=1;
String line;
while(!flag)
{
line = data.readLine();
if (line==null) flag=true;
else
{
String temp=""+frm.format(i++)+": "+line;
datao.write(temp,0,temp.length());
datao.newLine();
}
}
datao.close();
data.close();

Of course, everything goes in main(String[] args). Try it and then we talk more.
Anyway, thank you for taking the time to answer.
Cata Lin.
[This message has been edited by cata lin (edited December 21, 2000).]
[This message has been edited by cata lin (edited December 21, 2000).]
21 years ago
Hi all,
I used DecimalFormat to count the lines in a file, but the output is something like 001, 002, ..., 011, 012 and so on. What should I do in order to have the output like __1, __2 ... and so on, with spaces , of course.
Cheers and thanks to all of you.
Cata.
21 years ago
Hi,
Thank you very much to all of you who helped me with this problem
I really appreciate.
Cheers,
Cata Lin.
21 years ago