Roy Ben Ami

Ranch Hand
+ Follow
since Jan 13, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Roy Ben Ami

From Google:


Suspend process execution pending occurrence of an event; the term �block� is also used.



Basically, it means that the current thread does nothing for that time period (simply waits/blocks).
Found this by Googling...

openSSL with Java

Never tried it though...
18 years ago
There is a short tutorial on this site which also has this.

Notice that there isn't too much to learn.

Basically that site covers all of it, which includes the lock "classes": Semaphore, Barrier, Exhanger, and Latch...

Also it has a chapter on the Executer and Callable interfaces.

The only thing i didn't see it cover is the atomic package, but you can look at the API and it is self explantory.

Hope it helps,

Roy.
Hi,

Don't call the run method directly.

Call start() instead and it will work.

When you call run() directly it acts just like any other function. What you really need is to create a new thread and run it, and you use the start() method for that.
Hi there.

I think in your example they used just a Form with an Image in it...

Anyway, for better looks you must use the Low-API with the Canvas as you mentioned.

There is a great "program" called J2ME Polish which helps you design the graphics using CSS with lots of great tools.

I don't use it myself (prefer to code it using java) but for easy way to do graphics check it out here
18 years ago
Hi there,

I am no expert by if you are using JDK 1.5 there is an easy way of doing that.

Take a look at the ReentranteadWriteLock class and the ReadWriteLock interface.

Using the methods there you can easily implement your criteria.
18 years ago
Hi there,

I am no expert by if you are using JDK 1.5 there is an easy way of doing that.

Take a look at the ReentranteadWriteLock class and the ReadWriteLock interface.

Using the methods there you can easily implement your criteria.
How much fun they are

You get to see all kind of interesting questions.
For example last week it was:

"What is POJO" for 50 times when they did a hibernate forum special.

This week I was suprised to see 20 new posts in the JBoss forum (usually there are 3) until i realized they were promoting a book.
Ofcourse now the most popular question there is:

"What is better JBoss or WebSphere"

Good thing there are book promotion so people can ask the really tough questions on their minds...
18 years ago
I think he said he needs to do it using JMS ?

Isn't it always asynchronously?

And i have no idea how to do that - I don;t think there is support in J2ME for that (there wasn't even webservices until the latest JSR).

Maybe you can use custom made classes to create the connections required etc..
18 years ago
The beans in JSP are regular java beans.

Regular java beans are just java classes that you write that must have certain things by convention.
For example, they must have a set and get method for each public variable they expose. They also must have an empty constructor.

EJB (Enterprise java beans) are more complex and are used in Application servers such as JBoss. They have many features like remote usage, transactions management and much more.

For better explanation see here from just 2 days ago.
Sounds enough.

You could probably do with less than that, so you are covered!
[ February 05, 2006: Message edited by: Roy Ben Ami ]
18 years ago
Hi.

They are not that compatible.

I think you need to decide if it is a mobile game or a desktop game and go with that. J2ME uses different packages for most of the things you want to do, than the J2SE.

I think you can always convert one to the other but it will take much work, and good design patterns to begin with (Seperate all the different packages usages so you can change them later, keep the same logic classes etc...)

Again, my opinion is to choose one and stick with it.
18 years ago
Look at the previous thread here that asks if RoR is just a hype.

I think RoR is a nice looking framework, but Java is still my preffered web development programming language.

I see no reason why to embrace this framework (especially when it requires learning the Ruby language - which is terrible).

Now let the wars begin
18 years ago
You meant Unix in the end there...
18 years ago
Hi,

First of all J2ME formally allows only .PNG image files (the .GIF etc are not supported).

So to create an animated "gif" you need to create several png images and then move between them in another thread.

Look at this example:

press here
18 years ago