Hmm, yes, I think that's good enough. I think I can get it working by
accessing the DATABASE_URL environment variable directly, but attempts to
inject using, eg, the @PersistenceUnit annotation are still failing.

thanks,

bjorn

On Tue, Jan 24, 2012 at 3:30 PM, James Ward <[email protected]> wrote:

> Hi Bjorn,
>
> We are looking into what happened to that tag.  But if you want a more
> simple example that just sets up the JDBC connection in Spring, check out:
> http://devcenter.heroku.com/**articles/connecting-to-**
> relational-databases-on-**heroku-with-java<http://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java>
>
> JPA could easily be added on top of that.
>
> Does that help?
>
> -James
>
>
>
> On 01/23/2012 12:41 PM, Bjorn wrote:
>
>> Hey all,
>>
>> I was looking at this page: http://devcenter.heroku.com/**
>> articles/spring-mvc-hibernate<http://devcenter.heroku.com/articles/spring-mvc-hibernate>
>>
>> which gives two options: 1. use the sample app, or 2. use roo. I tried
>> the sample app, but when I run
>>
>> git revert starting-point
>>
>> it gives an error about a non-existant tag or something like that. I
>> also looked at roo, but the code is not what I would call a simple and
>> minimal starting point -- I can't tell where the magic is! When I
>> tried creating my own app from scratch, I can get persistence to work,
>> but not from environment variables. (I get
>> "java.lang.**UnsupportedOperationException: The user must supply a JDBC
>> connection" when I do my best to follow the tutorial)
>>
>> Does someone have a minimal HelloWorld style example that uses
>> persistence (JPA) that I can look at that works on heroku?
>>
>> Thanks,
>>
>> bjorn
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to heroku+unsubscribe@**
> googlegroups.com <heroku%[email protected]>.
> For more options, visit this group at http://groups.google.com/**
> group/heroku?hl=en <http://groups.google.com/group/heroku?hl=en>.
>
>


-- 
---------------------
Bjorn Roche
Audio Collaboration
www.xonami.com
blog.bjornroche.com
Catch us at NAMM: booth # 1000

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to