Udara Amarasinghe

Ranch Hand
+ Follow
since Aug 17, 2009
Udara likes ...
Netbeans IDE Oracle Java
Merit badge: grant badges
I am currently a BIT(Bachelor of Information Technology) 1st year student of University of Colombo. And I also achieved Oracle Certified Professional Java Programmer and Oracle Certified Business Component Developer certificates.

I like this place very much because I can help other java ranchers and also I can improve my knowledge.
For More
Sri Lanka
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Udara Amarasinghe


I am new to JSF so I have this problem. Is that possible to replace all features with javaEE client application using JSF (I know that JSF can only use through the browser) ?

please give me your advice.
11 years ago
Hi I solved it.
It just have to Implement the security check in a servlet and add URL to that servlet into the form's action field with a parameter that represent URL to the page that you want to be the next page after log on. Then in the security check servlet reads username, password and nextPageURL and do the necessary operation with them.

Thanks Mallikarjun your comment was helped me.
11 years ago

mallikarjun dontamsetti wrote:action="j_security_check" This is your solution

Hi Mallikarjun, did you mean implementing j_security_check function? Can you please describe it?
11 years ago

I am developing web site using JSPs and it use form base security login and its functioning well.

But when the user log on using the login form the next page become the home page of the site,
but I need make the next page become another page other than the home page.

So please do anyone knows how to do that?

This is the form block in my JSP login page.
11 years ago
Hi friends,

We know that there is there are 3 inheritance mapping strategies in java persistence.


And I know that SINGLE TABLE PER CLASS HIERARCHY and JOIN SUB CLASS HIERARCHY are better than TABLE PER CONCRETE ENTITY CLASS because support for polymorphic relationships are very poor with TABLE PER CONCRETE ENTITY CLASS strategy.

So my question is what is the best strategy from both SINGLE TABLE PER CLASS HIERARCHY and JOIN SUB CLASS HIERARCHY with minimum draw backs.
Hi sam,

Try to convert it with Apache Axis2 tools. Using these tools you can convert WSDL to java and java to WSDL.
11 years ago
Try this:This is a sample MessageDrivenBean and you may be have to make appropriate changes as your configurations. Deploy this into your server after wrap in a enterprise archive file(EAR).
They can create either with using your servers configuration tools or using your EJB applications configuration files

refer these tutorials :

And also if you need to read those messages that sent by your client program you have to create MessageDrivenBean that have connected with that message Queue resource.
HI Ashwin,

I think you may have miss to create those ConnectionFactory resource with JNDI name "QueueConnectionFactory" or Queue resource with JNDI name "Queue1" inside the server. Try to create them and try again. this document will help you http://download.oracle.com/docs/cd/E19957-01/816-5904-10/816-5904-10.pdf
Hi Hunter,

What do you mean by "the server send automatically the old login/password to the server" ?.
Is that you mean after enter the wrong username/password, that your application allows user to access the secured components?

James Sutherland wrote:You can use @Id on a OneToOne or ManyToOne relationship to cascade an id.


Thank you very much James . I already solved It.
Hi Sumesh ,

Yeah JavaEE is the best technology for your requirements.

I think if your project is a project just for your studding, you can use GlassFish application server and NetBeans or Eclipse IDEs as your tools.

If you are developing just a web application that serve only web pages then you can use Apache Tom cat or that kind of web server.

And If you are developing a javaEE application that need more processing power and that need both EJB container and web container you have to select glassfish or that kind of application server.

And also welcome to the coderanch and good luck.
Thanks Jayr for your comment.

Jayr Motta wrote:Maybe there are some obscure reason that we're not seeing that justify the use of it, if you discover, let me know please!

I will definitely inform you, if I discover.

Do someone knows, how to use @EJBs annotation?

Deepak Bala wrote:Send the identity you mean ? Your question does not have an answer since the location that identifies a calling entity would be a IP and not a URL. A thick client can for example not be reached from a URL.

If identity is the problem, you can assign a pricinpal and role to the calling entity. That would help you authenticate and authorize the subject

No Deepak, I mean URL for the web page that included a link for the servlet and initiated the request for the servlet or something like that.
11 years ago