|
|||||||
| Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
HH Assassin Guild Member
|
Seam Framework and MySQL Database
I'm trying to make a Seam application that uses a MySQL database as datasource. I tried modifying one of the examples built into Seam, but I keep getting errors. Can anyone give me an example of a working persistence.xml (and any other file which I have to modify in order to use my own database instead of the built in one) file for an application that connects to MySQL?
__________________
If anyone has Portal 2 and hasn't played the co-op and wants to do me a favour, let me know (PM me or whatever).
|
|
|
|
|
|
#2 |
|
HH Administrator
|
Re: Seam Framework and MySQL Database
What kind of errors are you getting? MySQL errors? I'm not familiar with Seam I'm afraid.
|
|
|
|
|
|
|
|
HH Assassin Guild Member
|
Re: Seam Framework and MySQL Database
I must say I no longer remember. I was helping a friend to get any kind Seam web app up and running from 6:30 PM till 5 AM (mostly to the sounds of heavy metal, we were in the basement of our faculty building which, at night, works as a club), finally went to bed at 6:30 AM and, after 5 h of sleep, bits of last night are a blur.
The good news is that once we figured other things out, we were able to properly set up a new Seam application in Eclipse and it generated the XML files for us (we previously abandoned it because we found it confusing with all the folders in the project structure and stuff, plus we kept beating it up with bad code to the point where it could no longer stop and restart jboss, so we reverted to using Notepad and command line for awhile ).One of the frustrating things was that we were unable to find almost any help. In case of the problem of connecting to MySQL, I knew I had to modify persistence.xml and set the right SQL dialect, database url, schema name, username and password, but all I found on the matter were people asking "I made this, why doesn't it work?" and others answering "Try this/try that", none of which helped and not a single working example (the examples that come with Seam use some hidden database built into jboss and lack most of these settings), so at one point I thought I might ask here. Thanks for showing interest, Craig.
__________________
If anyone has Portal 2 and hasn't played the co-op and wants to do me a favour, let me know (PM me or whatever).
|
|
|
|
|
|
#4 |
|
HH Administrator
|
Re: Seam Framework and MySQL Database
No worries, I know how frustrating it can be trying to troubleshoot code, when things here work, and then others don't and there's just no logical explanation. lol
|
|
|
|
![]() |
| Thread Tools | |
|
|