Elia Bolg

+ Follow
since Jul 08, 2008
Merit badge: grant badges
For More
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 Elia Bolg

I was under the impression that when you extend the abstract class, you provide the type T (Config as in my example) so in turn the entityClass would be : private Config entityClass; I'm not getting the Class<T> in this case.
11 years ago
the following code was auto generated by Netbeans 7.3:

the abstract class:

extending the absrtact class:

why the following is not equivalent?:

my modified abstract class:
11 years ago
we had the following requirement for an SAP WebDynpro for java application:

system administrator must be able to design screen/forms at runtime based on the users requirements and assign the screen/form to the said user.
so i wrote a limited but very capable screen builder in webdynpro for java WYSIWYG style. you had the supported UI controles in one panel (Label, InputField, Groupbox, Transparent Container) , a tree-view of the layout of the screen being built in another panel, another panel shows the different properties for a selected UI components which the user can tweak (like font size for a label for example or information source tag for Inputfield) and finally you had a panel which shows you what your screen looks like after each UI teak or after addition of new UI component.

while the administrator build the screen, an XML representation of the screen's layout and UI components and their various properties is generated at the back and kept in sync. the XML then will be saved in the database. when the screen is called by the system user(s), we load the XML extract the information source tags and fill the values of those tags and then regenerate the screen for the user the way it was built.

all is good,

but because of the lack of dragAndDrop in WebDynpro, the administrator has to work with the tree-view of the layout that represent the screen. he has to find the node that represent a certain UI component and place the next UI component below or above. this process is tiresome and slow when you are building complex screen
with nested elements.

we are doing phase two of this project and I though maybe we can use an Java Applet for the screen builder. I'm looking for a tool I can customize for this purpose. it has to support drag and drop and can easily generate XML afterwards. is should be something like Netbeans Matisse but simpler (like UML diagramming tools).

so, could anyone please recommend a library or a tool I can use to achieve this? or do you have another thought? ..... I'm open for new Ideas.

12 years ago
right now i'm testing with WSDL2Java tool. i regenerated the web service starting from the WSDL . probably i'll finish it today and i'll update this thread.
14 years ago
Thank you for your reply, i'll try out some of what you pointed out.

i'm using the same version of Axis2 which is 1.2 on both servers.

one thing though, i'm not packing Axis2 in my war file, i simply deployed Axis2.war as a web application on glassfish. my web service is nothing more than a simple java class that contains my business logic in public methods (no WS API what so ever, just pure business logic and DB code). i package my classes in a jar then rename it as .aar and deploy it using the Axis2.war deployed on glassfish, it automatically generate the WSDL,XS etc. that is why i was surprised the responses looked a bit different from axis2 on webshpere.

i'm welling to drop Axis2 as long as i can find a way to keep the same wsdl/ response structure of my legacy web service since i can't touch the client code for any adjustments( i'm quite novice when it comes to WS )
14 years ago
i'm not using any ws api for this web service. it is just a POJO deployed to axis2.war which generates the WSDL and takes care of the rest. i want to know where is this difference in the response coming from as those responses are serialized by axis2.war on both websphere and glassfish? is there any way i can keep the web service the same and make axis2 produce the same response it produces when it was deployed on websphere.

as for the client, it was generated by MSVS2003 by adding a "Web Reference" to the C# project. changing the client code is out of the question as it has been deployed in many locations including remote areas.

here is the wsdl (it is the same autogenerated wsdl of the serivce on both app servers).
14 years ago
i have a web service deployed to axis2 on websphere and the same web service deployed to axis2 on glassfish v2.

the client is a desktop application generated and written in C# using VS2003.

the client works well with the service on websphere which it was originally designed for. but not with the service on glassfish.
the WSDL generated for both services is exactly the same. the only difference i could find is in the response messages.

this is the response message from the service on websphere:

notice that xmlns value appears in all the properties (bookingRef, jobID, printerName, qty).

and here is the same response from glassfish

notice that only the bookingRef has the xmlns

my service is a POJO without any annotations. it is wrapped as .aar

my questions...

A. why is this happening although i'm deploying to a common denominator on both app. servers which is the axis2.war ?
B. how do i make the response from glassfish matches the one from webshpere? where do i have to change and what?
14 years ago
i just wanted to add that i can recreate the problem simply by changing the status of a job manualy form "SQL Developer" for example from "Done" to "pending" and the job will keep beibg sent and will never be set to "Done" again....
[ July 09, 2008: Message edited by: Ali Bohlaiqh ]
Hello everyone,

i'm runing a printing queue web service on glassfish v2, the clients ask for thier printing jobs and the server send it to them. After each successful print the client invoke a web service method to flag that certain job as being "done" so that the client will not have it sent to him again the next round when it askes for available printg jobs...

it hapens many times that the new status "done" will not persist to the data base which leads to the pritnig job being sent over and over again.

i tried container managed transactions and bean managed transaction with the same result. i even tried em.flush(), but no luck.....

i'm using oracle toplink..

here is how the code looks like .....

also the clients are asking for jobs every 30 seconds
another question, is there any other aproach to these queues and jobs?

please help