-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Deploying into diff app servers - JCA Usage Examples
PostPosted: Wed Jan 14, 2004 2:44 pm 
Beginner
Beginner

Joined: Thu Oct 09, 2003 3:42 pm
Posts: 22
Hi all, I orginally posted this in the System Integration forum but it doesn't look like that forum gets much traffic so I'm reposting here.

I'm working on a project with a requirement that it be deployable to JBoss, Websphere and Weblogic. I've followed the JBoss deployment instructions to deploy into JBoss using a SAR (good instructions). But I beleive that SAR's are a JBoss specific thing.

Are there any guides for deploying into Weblogic and Websphere (I didn't see anything). What experieces have others had with projects that need to run in multiple app servers. Any suggestions or gotchas I should be aware of?

A couple of goals are to avoid having any app server specific code (other then app server specific descriptor files) or different packaging for the various servers. I will need to be able to do JNDI lookup of the session factory. MBeans would be cool.

It was suggested to me that JCA would be the answer to all of my problems but I haven't been able to find any instructions or examples of how to deploy hibernate using JCA. Could someone point me to, or post, an example of deploying hibernate using JCA into JBoss, Websphere and Weblogic.


Thanks,
Marc

Original Post
http://forum.hibernate.org/viewtopic.php?t=927074


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 2:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Never crosspost, it's far worst than posting in the wrong one.
Every forums are checked.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 7:40 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
If every forum is checked, then why is there no response to his original posting?

I am in exactly the same situation. We are working on a data-processing-intensive app that has a servlet frontend talking to stateless session beans which communicate with message-driven beans that do the heavy lifting.

I desperately want an example of how to include Hibernate in my EAR file such that it can be used in both our stateless session bean code and our message-driven bean code.

There is NO such example anywhere on the Hibernate site! The only example seems to be the "deploy Hibernate as a SAR inside JBoss" example. This is no help if you are not using JBoss since SARs are JBoss-only (apparently).

What I want is a simple example of an EAR including session beans that use Hibernate. Doesn't so much matter which app server (though JOnAS would be ideal). However, I can't find any such example *anywhere* -- neither here nor elsewhere.

I hope this is not too strident an email but I am a bit concerned that there is no such existing example. (And also concerned that a reposting to a never-answered message gets only "don't repost, all forums are read" as response!)

Help?
Cheers,
Rob


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 7:32 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
If those post are not answered, it may be because nobody has value experience to share. I personnally don't use it with JCA and I'm fine with that.
I planned to start a simple example with Weblogic (no JCA at first), but it takes time.
Of course you're free to do it yourself and offer to the community.

I'm sure you know most people working and answering on this forum are doing it for free (this includes me). If you're in a hurry with non answered questions, http://www.hibernate.org/Support/CommercialSupportForHibernate.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 2:49 pm 
Beginner
Beginner

Joined: Tue Dec 30, 2003 1:51 pm
Posts: 49
Location: Michigan, USA
i'd check this out for webshpere
http://www-106.ibm.com/developerworks/db2/library/techarticle/0306bhogal/0306bhogal.html#section1
then search in there developerWorks, i found a few good nuggets. you'd most likely have to use the cfg.xml method to access hibernate or jca. i started out using webshpere as well, but went to jboss just to learn it.
for wl it would be the same way. also you should be able to use jca with not much problem.


---jason


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 10:27 am 
Newbie

Joined: Thu May 06, 2004 10:12 am
Posts: 2
Well i have tried to plugin Hibernate JCA into Weblogic 6.1 ... it doesn't work. But may be it will be helpfull for others, here is log of my experiment:

1) Creation of Hibernate2.rar (Resource archive). Start from hibernate home 'ant rar' command.
2) Modification of Hibernate2.rar\META-INF\ra.xml
3) Creation of Hibernate2.rar\META-INF\weblogic-ra.xml. This step is optional, weblogic will create one it for you, which you will need to modify either case.
4) Put hibernate.properties in weblogic classpath
5) Put your dataobject in weblogic classpath
6) Start weblogic and deploy Hibernate2.rar

...


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 5:44 am 
Beginner
Beginner

Joined: Mon Mar 22, 2004 10:01 am
Posts: 22
i created a working JCA project with jboss.

i've added hibernate.rar to my ear file due to classloading problems. if you leave the rar out of the ear and it's loader repository (jboss specific stuff) then the resource adepter can not see the classes from the ear, even tough the service xml that instantiates the Hibernate connector is in my ear. when instantiated, jboss (3.2.3) uses the rar's class loading context instead of the service xml's context.

don't waste your time with weblogic 6.1, i have an impression that it's very immature, especially with younger standars. user a newer weblogic if possible...

and a question: the current Hibernate JCA implementation does not support sql connection disconnect/reconnect (long transaction sessions). is it due to some architectural constraints or simply not implemented?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.