Francis Zabala

Ranch Hand
+ Follow
since Aug 11, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Francis Zabala

I am not sure if the allotment time is fair or not. It was a task for no more than 2-4 hours.

I was tasked to create a rest api with tesst that would have /api/items /api/items/{id} endpoints assuming the first to return all the items and the latter one as it would return all the items. I was able to finish it in 6. Data entry and massaging the data to their format was a pain and took me more time than I should.
5 years ago
Is it ok to ask people for a code review for a technical test? After test has been done of course just to know if there was been something I could've done better and to make my chance greater when an opportunity knocks again.
5 years ago
Hi Jeanne,

Thank you for your feedback and am really glad that I can avoid shooting my own foot with my plan. I really like what defines a legacy code now. Hahaha!

Regards,
Francis
6 years ago
Hello to all,

I recently developed a web service. It was done in a hurry so I wasn't able to create unit tests. I now have the time to refactor it and want to create some unit test and integration tests. What I am planning to do is create an integration test. I plan to create something that would simulate how the data passes from the mobile application to the web service and back. I recorded the json (jsons?) and plan to use them as my control while doing some refactoring. The web service is using HTTP to receive json and returns the results as a json.

Anyway, what tools do you guys use? Do you have the same process like what I intend to do? Is what I am planning wrong, waste of time and just hastens the heat death of the universe?
6 years ago
Ok, we were able to connect to an HTTPS server with Hessian Protocol. We had to add 2 new classes to make it work. Let me know if anyone else is interested and I'll post the codes.
9 years ago
I am not sure really. I am still trying to find out the problem is. The PHP code works. I am trying to find out how to get the Java's version of Hessian to work like the above code.

Connect to an https hessian enabled web service.

As you can see in the code, it uses curl to connect to the server using a certificate. I don't even know how to do that in java.
9 years ago
Hello again,

Has anyone tried to connect a client to a server using HTTPS and using Hessian binary protocol to communicate?

I saw something that worked but unfortunately its on php:



The code above does work and is able to communicate with the server.

Can you please help us? Thanks.

Regards,
Francis
9 years ago
To all,

Thank you guys for all your replies. It turns out that I need to change my perpective when developing portlets. The solution I did was to create a new page and add the portlet that I need to use. So, I created a link from the main page that would go to the inner page where the portlet is currently deployed. Of course the link from the main page contains codes that would send data from the main page to the portlet page. I'll post the codes in case someone gets interested.

Regards,
Francis
9 years ago
Hello guys,

May I ask if it is possible to have a link to call a portlet that hasn't been instantiated?

My case is like this, if the user clicks on the linke, the portlet where the user can view and edit his/her own profile shows up.

As of now, I have done this if the View/Edit portlet is added in the same page where another portlet that has the link is located. But if i remove the view/edit portlet (because I don't want the user to see the profiles before clicking the link), I get the error "You do not have the roles required to access this portlet."

Can anybody help me? Let me know if you need me to clear up my question above. Thanks!

Regards,
Francis
10 years ago
You may need to add this option when trying to run the jar file

-javaagent:"C:\Projects\spring_lib\org.springframework.instrument-3.0.5.RELEASE.jar"

the jar file may be located in another folder so put in there where it is located.

In case you are using netbeans ide, that's what's exactly why I put in for VM options on Run on Project Properties. Let me know if this helps. Thanks!
10 years ago
Thanks Mark! It makes me feel easier that learning Spring isn't as hard as it would be.
10 years ago
Thanks Mark. I guess it would be cheaper to learn spring without a job that being in one. Hahaha!
10 years ago
I think my brain snapped on Raja's answer. I guess Spring is really deep. Though Bear's answer is what I am going to keep as it is more newbie friendly. Thanks!
10 years ago
Hello to all,

I am trying to learn Spring currently reading Spring in Action as I've read here that it's your best bet in learning Spring. Problem is, what is it that you need to know before diving in? An example is the bean lifecycle. I have no idea what it does and why it is important. It's also in the book on how to do it. I have been coding Java for two years now using our in house framework and now moving to Spring and just recently passed OCJP 6 (I hope it still matters).

Another example is the dependency injection. Yes it is a good practice to make a loosely coupled codes but what if some programmer, let's say an ANSI C programmer, codes java enterprise apps using Spring but still does monolithic way of coding?

I do understand that you need a solid grasp of object oriented programming to fully understand how to maximize Spring. So, what else?
10 years ago