Good to know. Is it possible to specify these datasources programatically rather than in an XML file. For example in the booking example, there is the jboss-seam-booking.jar!/booking-ds.xml file which contains the details on a single datasource. Should I add multiple data source declarations in this file?
The reason I ask is that our server application is installed at the client site. Currently we maintain a list of BasicDataSource instances that the server uses internally without requiring the user to touch config files. Ideally, I'd like to set these BasicDataSource objects to the embedded Tomcat context which is running the Seam/EJB3 app.
Any help would be greatly appreciated.
Guy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008024#4008024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008024
I'm using 2.4.1 and I have been able to get the edit button to work although the _c doesn't work for me either. I get the actual temperature to display in C by adding &u=c to the end of the "zipcode". The degrees are then displayed in Celcius however an F still appears beside each of the numbers. I had to then edit the XSL file..\portal-samples.war\WEB-INF\xsl\weather\rss.xsl to get rid of the hard coded F's in the file.
If anyone has a better way, I'd be interested too!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008023#4008023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008023
Sorry, I have found the Hibernate bug describing this: http://opensource.atlassian.com/projects/hibernate/browse/ANN-140?page=all
(It is amazing that you always find the bug report only after you tried to describe the problem yourself.)
Since I don't know anything about the hibernate sources I will not even try to supply the 3k lines mentioned in the bug report but I have a dirty little workaround:
| @Entity
| @Inheritance(strategy=JOINED)
| //@DiscriminatorColumn(name="YOUR_DTYPE")
| public abstract class parent {
|
| @Id
| Integer id;
|
| @Column(name="YOUR_DTYPE",length=31)
| public String getDiscriminatorValue() {
|
| DiscriminatorValue discriminatorValueAnnotation = this.getClass().getAnnotation(DiscriminatorValue.class);
|
| if (discriminatorValueAnnotation != null) {
| return discriminatorValueAnnotation.value();
| }
|
| return this.getClass().getSimpleName();
| }
|
| public void setDiscriminatorValue(String dummy) {
| }
|
| }
|
It is double plus unbeautiful but it works. Should this ever be fixed you can simply remove the workaround and everything should work as expected.
Regards
Felix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008016#4008016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008016