Pete Palmer

Ranch Hand
+ Follow
since Oct 21, 2008
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 Pete Palmer


Not entirely sure if this is the correct forum for my question .. appologises in advance if it is not.

Below is a snippet of my Spring configuration used in my application to use a datasource configured on Weblogic Application server ( Application is deployed in Weblogic App Server)

The application does not use Hibernate's C3PO for database connection pooling but well I am pretty sure my application is using Weblogic's database connection pooling.

Looking at the configuration, I don't see anything to indicate that the Weblogic's provided database connection pooling is used.

Any suggestions to confirm ( or otherwise ) that my application is using Weblogic's provided database connection pooling.

Thank you




6 years ago

I got no response from the forum to my query
Was it because the query was difficult ?
Was it because my query was not clear ? - most likely
or ...

Anyway I too was not able to achieve what I had in mind either !

The main objective was to avoid re creating JAXBContext every time I need to marshall or unmarshall a Tiger or Elephant etc,
So my alternative approach has been to cache every new JAXBContext created for a specific class and to use the same instance

to that end this is what I done

HTH someone.



I am using Ant version 1.9.4.

I have a build-standard-targets.xml which gets imported into the build.xml for a number of projects - cars, bicycles and buses.

The build-standard-targets.xml has a target "generate-from-wsdl" which gets ran if the
condition of presence of a wsdl directory in "C:/resource" is met.

Below is a snippet of what I have.

This conditional behaviour needs to be changed such that the target "generate-from-wsdl"
is ran if the wsdl is present AND if build.xml is that of the Cars project ONLY.
So we don't need to ran this for the other projects ie bicycles and buses.

Any suggestion as to how I can modify the behaviour to met the new condition behaviour would be veyr much appreciated.

Thank you for your help.



build.xml for Cars project

build.xml for Bicycles project

build.xml for Buses project
7 years ago


using the wsdl2java provided by the cxf framework ( version 2.7.5), I am able to generate the JaxB classes
for the elements defined in the xsd.

The generated class for this xsd is as follows :-

The elementFormDefault is set to QUALIFIED, however, in the xsd it is set to unqualified.

I beleive this discrepency is causing the unmarshalling functionality to fail for me because the element
does not have a namespace prefix.

Any suggestions as to why the has elementFormDefault set to QUALIFIED when in
the xsd it is set to "unqualified".

Thank you your help.


Appologises for a late response.

Firstly, I very appreciate all your responses - thank you.

It is clear that moving to Mongo from Oracle is not advisable.
The good news ( for now !! ) is that this approach has been shelved because the concerns of ease of transitioning to Mongo. The view was it would not be too difficult and that we would be able to keep the exisiting hibernate layer in place and introduce "some" kind of adaption layer to use Mongo DB.

The main driver for considering Mongo was cost. Oracle license is expensive and Mongo is open source.

As mentioned before, I have no Mongo experince. However, when I read articles on the subject, they seem to suggest :-

  • Mongo has all the features of a relational database
  • Mongo's performance is very good
  • Mongo is ease to use
  • Mongo is scalable
  • Mongo is free
  • Existing application using relational database can migrate to use Mongo

  • just to mention a few points.

    Are the above points true ?


    7 years ago

    Our existing application uses Hibernate and Oracle to provide persitance of our data.

    The tables are not complex but there some many-one and one-many relationships and
    constraints on column values ie can't be null, integer type, Date type and Varchar type etc.

    Now we need to replace Oracle with MongoDB. I am also new to MongoDB.

    Is it possible to keep the hibernate layer ( 4.1.0 ) in place ie keep the existing DAOs, Domain classes,
    Hibernate XML mappings and replace Oracle with Mongo.

    I would appreciate any help/suggestion on how I can get started.

    Would very much appreciate any examples that I can follow.

    Thank You

    7 years ago
    Hi Roel,

    I too was not aware of Primefaces until I was given a utilty app to enhance which used Primefaces - and JSF.
    Not used either so has been an interesting, challenging task ... and enjoyable when things start to function correctly .

    As for your suggestion to use the "RowExpansion" facility ... well your quote

    a match made in heaven

    sums it up perfectly.

    This feature was simple to introduce into my data table. Can be extended to present additional information in the future easily.
    Also the overall presentation and use of the table is so much better.

    So a fantastic top tip Roel. Very much appreciated.

    As for trying to get the command button and tool tip approach working, that is not necessary now.

    Thank you.

    Best Regards

    7 years ago
    Hi Tim

    Many thanks for a detailed response.

    Unfortunately adding the "return false" didn't resolve the issue. :(

    Your last paragraph was interesting reading. Your point

    In the case where you want values specific to a given table row, that means that you have to update the dialog's rendering before displaying it. Typically that will mean that you define a pre-show function on the dialog and that function will do an AJAX partial page update for the desired values.

    suggested to me, that there some "behaviour" is missing in my implementation. Is this correct ?
    If so, what that is.

    As an alternative, I have implemented the tooltip mechanism to display the message content column.

    Not an ideal approach, but it displays the correct message content assoiciated with the row - well amost .
    Drawback with this approach :-

  • The message content will be large so tool tip is not ideal.
  • For some reason, a small part of the message content is not shown
  • I have to configure the "hideDelay" attribute to prevent the tooltip "dialog" to dissapear immediately, to ensure the user has time to read/see the message content before it disappears.

  • The button select approach is what is best suited.

    Any further suggestions to get that working would be great.

    Thank you again


    7 years ago

    Unfortunately, I am still struggling with the Button select in my datatable.

    Below are details of my table, managed bean and datatable component.

    When the "View" button is selected on any row, the dialog ALWAYS puts out the "R3C3" message.

    What I would like is if the "View" button is selected on row 1 for the dialog to contain "R1C3" and for row 2 to contain "R2C3" etc,

    Any guidance/suggestion would be very much be appreciated.

    Thank you again.


    Managed bean


    7 years ago
    Hi Tim

    Many thanks for your suggestion.

    I am completely new to JSF and Primefaces and have been given exisitng Primefaces app to further enhance to allow this button option.

    I have googled for ideas and looked at the primefaces showcase too ( dialogs, tables and buttons) with no joy.

    Would it be possible to provide a snippet code example that I could use please.

    Thank you
    7 years ago
    Example of my table

    Below is a snippet from DataTable component to display the contents of the “Head4” column.

    All the entries in the table are of type String.
    However, the String content for the “Head4” column can be very larger and displaying this makes the table very large.

    As an alternative, is there a way to provide a button for the “Head4” for each row and when the user selects the button on that row, the corresponding “Head4” column contents is displayed in a pop up dialog box ?

    I am using Primefaces 5.0.

    Thank you for your help.

    7 years ago

    Hi Jayesh,

    Thanks for the response.

    Completely in agreement with you have said.

    Not saying what I would like to do is ideal .. just looking at possible options.

    So yes ... if there is way to configure a weblogic property via a deployed aplication .. I would be interested to know.

    If nothing else, it would be interesting to understand if such a approach is feasible.

    Thanks again.

    7 years ago


    We are deploying our spring application in Weblogic server of which there are 2 version and we would like to configure an Environmental variable "POST-SETTING" to a value according to the version deployed.

    Version A App deployed => POST-SETTING value = "VERSION-A"
    Version B App deployed => POST-SETTING value = "VERSION-B"

    The variable is used by the Web logic server.

    We could configure the environment variable using the "-D" option on web logic ie by

    AdminConcole -> Environment -> Servers -> Configuration -> Server Start -> Argument

    However, this approach means the setting need to be changed depending on the Application deployed.

    So ideally, we would like the setting to be done from within our application.

    Note - the idea is to configure an environmental variable to be used by Web logic server NOT configure a System Property for the application.

    Any suggestions as to how Spring could cater for this please ( or an alternative approach ).

    Thank you

    7 years ago


    I am using the client application provided in the following url, to test the my web service application ( of course I could use SoapUI but I wanted to use a client app ).

    Now my web application uses soap 1.2 with WS Security (WSS) - signed and encryption. In some respect the sample client app is perfect all except it is using soap 1.1.

    So below is how the client app configures the "outbound" interceptor to sign and encrypt the msg.

    As my web service application is using soap 1.2, the above configuration of the client app will need to change to use soap 1.2
    ie change the above soap 1.1 namespace ( ) to soap 1.2 namespace ( - Note there is no forward slash after the "05/soap-envelope" see ).

    With this in mind. I updated the above configuration to as follows :-

    Now when I ran up the client app with the above soap 1.2 namespace configuration I get the following exception :-

    Clearly, there is a a "part name" of "Body" in the namespace, and yet the client app is complaining.

    I guess there is some set/config I am missing.

    Any ideas/suggestions to get past the above error would be appreciated.

    Thank you in advance for your help.


    7 years ago

    Hi g tsuji

    That is a great comprehensive answer.

    I think that brings to a close very interesting and informative discussion.

    Again thank you for all your help.