Re: Active MQ 5.1 support

2008-09-15 Thread rde8026

Thanks so much for the update.  This is super helpful!  I'll give it a try in
the next couple of days and let you know how it goes!

Thanks again for getting me all the necessary info!

David Blevins wrote:
> 
> 
> On Sep 15, 2008, at 3:45 PM, rde8026 wrote:
> 
>>
>> I'm using the standard lib form a zip file...
> 
> Ok.  In terms of general library upgrading, we generate two files  
> (dependencies.xml and dependencies.txt) that we put inside of every  
> openejb-*.jar that says what dependencies the jar has.  The data is  
> nested to show a tree view to make it easier to see what dependencies  
> are pulled in only by third party libraries.
> 
> Here is the top part of  dependencies.txt for openejb-core-3.1- 
> SNAPSHOT.jar:
> 
>activemq-core-4.1.1.jar
> activeio-core-3.0.0-incubator.jar
> backport-util-concurrent-2.1.jar
>activemq-ra-4.1.1.jar
>asm-2.2.3.jar
>asm-commons-2.2.3.jar
> asm-tree-2.2.3.jar
>asm-finder-3.1-SNAPSHOT.jar
>commons-cli-1.1.jar
>commons-collections-3.2.jar
>.
> 
> So you should only need to remove activemq-core-4.1.1.jar, activemq- 
> ra-4.1.1.jar and any libraries they depend on, which are activeio- 
> core-3.0.0-incubator.jar and backport-util-concurrent-2.1.jar.  As far  
> as replacing them, you'll definitely need activemq-core-5.1.0.jar and  
> activemq-ra-5.1.0.jar.
> 
>   
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/activemq/activemq-core/5.1.0/activemq-core-5.1.0.jar
>   
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/activemq/activemq-ra/5.1.0/activemq-ra-5.1.0.jar
> 
> .. plus their non-optional depenencies.  The activemq-core-5.1.0.pom  
> shows these required deps (versions are in activemq-parent-5.1.0.pom).
> 
>   
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/activemq/activeio-core/3.1.0/activeio-core-3.1.0.jar
>   
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/camel/camel-core/1.3.0/camel-core-1.3.0.jar
> 
> The activeio-core pom lists backport-util-concurrent as a dependency,  
> but I couldn't find any use of it in their source.  I'd try getting by  
> without it.
> 
> Definitely let us know how it goes.
> 
> -David
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Active-MQ-5.1-support-tp19400471p19504173.html
Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: Active MQ 5.1 support

2008-09-15 Thread David Blevins


On Sep 15, 2008, at 3:45 PM, rde8026 wrote:



I'm using the standard lib form a zip file...


Ok.  In terms of general library upgrading, we generate two files  
(dependencies.xml and dependencies.txt) that we put inside of every  
openejb-*.jar that says what dependencies the jar has.  The data is  
nested to show a tree view to make it easier to see what dependencies  
are pulled in only by third party libraries.


Here is the top part of  dependencies.txt for openejb-core-3.1- 
SNAPSHOT.jar:


  activemq-core-4.1.1.jar
   activeio-core-3.0.0-incubator.jar
   backport-util-concurrent-2.1.jar
  activemq-ra-4.1.1.jar
  asm-2.2.3.jar
  asm-commons-2.2.3.jar
   asm-tree-2.2.3.jar
  asm-finder-3.1-SNAPSHOT.jar
  commons-cli-1.1.jar
  commons-collections-3.2.jar
  .

So you should only need to remove activemq-core-4.1.1.jar, activemq- 
ra-4.1.1.jar and any libraries they depend on, which are activeio- 
core-3.0.0-incubator.jar and backport-util-concurrent-2.1.jar.  As far  
as replacing them, you'll definitely need activemq-core-5.1.0.jar and  
activemq-ra-5.1.0.jar.


  
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/activemq/activemq-core/5.1.0/activemq-core-5.1.0.jar
  
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/activemq/activemq-ra/5.1.0/activemq-ra-5.1.0.jar

.. plus their non-optional depenencies.  The activemq-core-5.1.0.pom  
shows these required deps (versions are in activemq-parent-5.1.0.pom).


  
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/activemq/activeio-core/3.1.0/activeio-core-3.1.0.jar
  
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/camel/camel-core/1.3.0/camel-core-1.3.0.jar

The activeio-core pom lists backport-util-concurrent as a dependency,  
but I couldn't find any use of it in their source.  I'd try getting by  
without it.


Definitely let us know how it goes.

-David



Re: Active MQ 5.1 support

2008-09-15 Thread rde8026

I'm using the standard lib form a zip file...

thx,
RE

David Blevins wrote:
> 
> 
> On Sep 9, 2008, at 1:25 PM, rde8026 wrote:
> 
>>
>> Is it possible to use active mq 5.1 with the openejb container  
>> rather than
>> 4.1?
> 
> It should be possible, though I'm not sure if anyone has tried.
> 
>> If so what does it take to make this change.
> 
> Are you in maven or are you using the lib directory of a standalone  
> zip/tar?
> 
> -David
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Active-MQ-5.1-support-tp19400471p19502515.html
Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: Active MQ 5.1 support

2008-09-15 Thread David Blevins


On Sep 9, 2008, at 1:25 PM, rde8026 wrote:



Is it possible to use active mq 5.1 with the openejb container  
rather than

4.1?


It should be possible, though I'm not sure if anyone has tried.


If so what does it take to make this change.


Are you in maven or are you using the lib directory of a standalone  
zip/tar?


-David



Re: Bind Datasource to specific jndi name

2008-09-15 Thread David Blevins


On Sep 9, 2008, at 5:53 AM, Andreas Karalus wrote:



hello,

i've configured a datasource like this


   JdbcDriver  oracle.jdbc.driver.OracleDriver
   JdbcUrl  jdbc:oracle:thin:@localhost:1521:orcl
   UserNamescott
   Passwordtiger



is it possible to bind the datasource to a specific jndi name?  
especially, I

would like to bind the datasource to "java:/operativDS"


Everything in the config is bound to something that closely matches  
its path in the openejb.xml file.  So for example:



  

Is bound to:

  new InitialContext().lookup("java:openejb/Resource/operativDS");

If you wanted to make it available at a different name, you could  
easily add the link yourself with some code like this after OpenEJB  
has been embedded:


  InitialContext context = new InitialContext();
  context.bind("java:operativDS", new  
javax.naming.LinkRef("java:openejb/Resource/operativDS"));


-David



TransactionManager injection

2008-09-15 Thread Andreas Karalus

Hello,

Our production Code injects the TransactionManager like this:

@Resource(mappedName="java:/TransactionManager")
TransactionManager txManager;

This is the default binding in JBoss. Testing with openejb fails, below is
the relevant stacktrace ... 
My question is now, if there is any possiblity to configure openejb to bind
TransactionManger to "java:/TransactionManager"

Apache OpenEJB 3.0build: 20080408-04:13
http://openejb.apache.org/
INFO - openejb.home = D:\projekte\HEAD\ed02\sys\berechtigung\anwender-impl
INFO - openejb.base = D:\projekte\HEAD\ed02\sys\berechtigung\anwender-impl
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=java:/operativDS, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=java:/DefaultDS, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=Default JDK 1.3 ProxyFactory,
type=ProxyFactory, provider-id=Default JDK 1.3 ProxyFactory)

...
WARN - Jar not loaded.
D:\projekte\HEAD\ed02\sys\berechtigung\anwender-impl\target\classes.  No
provider available for resource-ref 'null' of type
'javax.transaction.TransactionManager' for 'AnwenderHibernateJpaDAO'.
org.apache.openejb.OpenEJBException: No provider available for resource-ref
'null' of type 'javax.transaction.TransactionManager' for
'AnwenderHibernateJpaDAO'.
at
org.apache.openejb.config.AutoConfig.autoCreateResource(AutoConfig.java:1292)
at 
org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1285)
at 
org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1236)
-- 
View this message in context: 
http://www.nabble.com/TransactionManager-injection-tp19492820p19492820.html
Sent from the OpenEJB User mailing list archive at Nabble.com.