Win a copy of Spring in Action (5th edition) this week in the Spring forum!

Bilal Ghayad

Greenhorn
+ Follow
since Sep 29, 2018
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bilal Ghayad

Hello;

Please I need help.

How I can test this code:



I am trying to test it within process code but it is not working (nothing is happening and the signal catch event is not triggered), does this mean that it is only possible to use it by other application (integration purposes) that will call java class that will use this code?

By the way: I tried to trigger the signal catch event using signal throwing event within the workflow process and it worked fine. But using the above code, nothing is happen. So that is why I am asking it the above code can be used only for integration (other software need to trigger the signal)? If yes, then how I can test it without having the other software?


Regards
Bilal
2 weeks ago
Hello;

I am trying to add combo box in vaadin grid using the below code:



And I imported version 1.0.3 for componentrenderer because I am using vaadin version7.6 and I added them by Build Path as shown in the attachment.
But the problem that the grid is appearing empty !
If removed the line

this.getColumn("Approval").setRenderer(new ComponentRenderer());

from the code, I am able to see the grid but I can not see the combo box as shown in the attached images.
Can someone advise me?

Regards
Bilal
Hello;

Is it required to use renderer to be able to add combobox to grid in vaadin? Really I am new to java vaadin and do not know well about the renderer. Anyway: I need a help to add a column that contains the combobox (which contains the values: "Approve" and "Reject") in the grid but until now I am failing and seems my using for renderer is wrong specially I do not know how to configure the ComponentRenderer (is it required to add it as class, how?) and the needed packages to be included.

Looking for your kindly help.
Regards Bilal
4 weeks ago
Hello;

I need to know if Spring behind this:

I noticed that when using Hibernate and Spring, no need to open the session and load the data, in other words: no need for the following to be used:


Is it because Spring? Or I am missing something?
Regards
Bilal
1 month ago
Thank you Claude.

We can only guess that the application (note: not Tomcat itself!) running on Tomcat hosts an authentication service exposed to clients via RMI.



But why it is required to have tomcat service running (the machine is running for sure), but it is required to have tomcat service itself is running. Why?

And the strange thing: regardless the path that tomcat is running (under which directory), the most important that tomcat need to be running and of course with all the services and libraries, but regardless of the path that is running on it.

Regards
Bilal
1 month ago
Hello;
Thank you.

I think you answered your question yourself ! The application you're working on, at a certain point calls via RMI a remote service running on Tomcat, which in turn performs authentication.



But why if tomcat is down, it is not reaching for the RMI remote service?
That is why I asked if it is required tomcat to have RMI remove service.

By the way: how RMI is called from the client? It is TCP/IP, right?

Regards
Bilal
1 month ago
Thank you a lot.
I have application that is using RMI and that is why I asked my question .
I am able to start the application using Jitty and I can reach to the login page (the application is web based also and it is based on vaadin), the strange thing that to be able to login (otherwise it will give me a failed login), I have to start the tomcat server !! I got to know that tomcat is required to check the login authentication. But, they are not using REST, they are using RMI.

So that is why I was need to know if RMI requires tomcat, I need to know why it is required to have the tomcat up and running to be able to login although the application it self is running from eclipse using Jitty and I can navigate to the login page, but I can not login until the tomcat is running !

So for sure that the application that is using the Jitty as webserver is calling RMI service at the tomcat to authenticate the login (as the login authentication is happening by a service running on the tomcat and it is not webservice).
I can confirm you that they are not using web service and they are only using RMI.

Regards
Bilal
1 month ago
Hello;

I have xml file which has this name: erp-aop-config.xml and it seems it is related to spring (anyway, the project contains spring, hibernate, maven, vaadin and activiti) and the database is oracle. Inside this xml file, there are aop-pointcut and aop-advisor as following:



It is mostly related to database (getting and saving) but I do not know why to use it and what it means?
What the execution means (what will do) and why it is placed the * before the package name and after the save or get?

Regards
Bilal
Hello;

What the below code means?




Regards
Bilal
Hello;

If I need to use RMI (Remote Method Invocation) for client server communication, I will need application server (like tomcat)?
And what is the advantages of using RMI than using web service like REST?

Regards
Bilal
1 month ago
Thanks for the help and advise.
And what is the benefit of using JavaFX with Spring?
Also, if I used JavaFX, any need for vaadin (or what kind of work exactly that will let me need vaadin)?

Regards
Bilal
2 months ago
Hello;

I need to create client server application in java and I need to have desktop interface and web based interface. For desktop interface, I need to use RMI (remote method invocation) for desktop. So what is the recommended Java to be used?

In other words:
I am thinking to use spring + swing + vaadin, is it fine? Or it is better to use spring + javafx + vaadin?

Regards
Bilal
2 months ago