You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by rde8026 <rd...@gmail.com> on 2008/08/06 21:47:53 UTC
Configure OpenEJB Container to use external activemq.xml file
I've been trying to get the openEJB container to allow me to use an external
activemq.xml file for a while now and have been unsuccessful. Below is my
resource config
<Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
# Broker configuration URI as defined by ActiveMQ
# see http://activemq.apache.org/broker-configuration-uri.html
#BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
BrokerXmlConfig xbean:activemq.xml
# Broker address
#ServerUrl vm://localhost?async=true
ServerUrl tcp://localhost:61616
# DataSource for persistence messages
DataSource MessageDataStore
</Resource>
With the activemq.xml file placed in the lib directory
I'm getting the following exception:
org.apache.openejb.OpenEJBException:
javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
embedded broker: openejb:xbean:(activemq.xml)?persistent=false, due to:
org.springframework.beans.factory.BeanDefinitionStoreException: Could not
resolve bean definition resource pattern [(activemq.xml)?persistent=false];
nested exception is java.io.FileNotFoundException: class path resource []
cannot be resolved to URL because it does not exist: Failed to startup an
embedded broker: openejb:xbean:(activemq.xml)?persistent=false, due to:
org.springframework.beans.factory.BeanDefinitionStoreException: Could not
resolve bean definition resource pattern [(activemq.xml)?persistent=false];
nested exception is java.io.FileNotFoundException: class path resource []
cannot be resolved to URL because it does not exist
I've not been able to find any info on this anywhere; I may just be looking
in the wrong places but if anyone has successfully gotten this to work any
info would be awesome. Thanks a ton in advance.
BTW - I put the spring-2.5.1.jar & xbean-spring-3.1.jar in my lib dir as
well. I can post my activemq.xml if that will help.
--
View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18858260.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by Dain Sundstrom <da...@iq80.com>.
On Aug 12, 2008, at 6:43 AM, rde8026 wrote:
> Hi Dain,
>
> Looks like you got it! Thanks so much for the effort. When should we
> expect this in a final release?
Yes. It is already checked into trunk.
-dain
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by rde8026 <rd...@gmail.com>.
Hi Dain,
Looks like you got it! Thanks so much for the effort. When should we
expect this in a final release?
Thx,
RE
Dain Sundstrom wrote:
>
> I think I have fixed this. We modify the brokerURL to handle the
> persistence setup, but we don't need to perform these modifications
> when using an external activemq.xml file. So, I simply wrapped this
> code with an if brokerUrl.startsWith("broker:"). The fix is checked
> into trunk, and I uploaded a build here:
>
> http://people.apache.org/~dain/openejb-3.1-r685019.zip
>
> Let me know if this works for you,
>
> -dain
>
> On Aug 11, 2008, at 6:41 AM, rde8026 wrote:
>
>>
>> Any update on this subject?
>> Thx
>>
>>
>>
>>
>> rde8026 wrote:
>>>
>>> I gave that a go and here is the error message:
>>>
>>> org.apache.openejb.OpenEJBException:
>>> javax.resource.spi.ResourceAdapterInternalException: Failed to
>>> startup an
>>> embedded broker:
>>> openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false
>>> ,
>>> due to:
>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Could not resolve bean definition resource pattern
>>> [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false];
>>> nested
>>> exception is java.io.FileNotFoundException: class path resource
>>> [(file:///D:opt/openejb-3.0/lib/] cannot be resolved to URL because
>>> it
>>> does not exist: Failed to startup an embedded broker:
>>> openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false
>>> ,
>>> due to:
>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Could not resolve bean definition resource pattern
>>> [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false];
>>> nested
>>> exception is java.io.FileNotFoundException: class path resource
>>> [(file:///D:opt/openejb-3.0/lib/]
>>>
>>> Seems this doesn't want to work! I've attached my activemq.xml
>>> file here.
>>> Thanks for your help so far - its much appreciated...
>>>
>>> http://www.nabble.com/file/p18884422/activemq.xml activemq.xml .
>>>
>>> Thx,
>>> RE
>>>
>>>
>>> David Blevins wrote:
>>>>
>>>>
>>>> On Aug 7, 2008, at 6:48 AM, rde8026 wrote:
>>>>
>>>>>
>>>>> Hi David,
>>>>>
>>>>> Thanks for the reply. I've tried using the fully qualified path
>>>>> and
>>>>> I get
>>>>> the same exception -
>>>>>
>>>>> Failed to startup an embedded broker:
>>>>> openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)?
>>>>> persistent=false, due
>>>>> to: org.springframework.beans.factory.BeanDefinitionStoreException:
>>>>> Could
>>>>> not resolve bean definition resource pattern
>>>>> [(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
>>>>> exception
>>>>> is java.io.FileNotFoundException: class path resource
>>>>> [(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it
>>>>> does
>>>>> not
>>>>> exist
>>>>>
>>>>> I'm curious do you know if anyone has successfully gotten this to
>>>>> work or is
>>>>> it a bug? Any ideas would be much appreciated.
>>>>
>>>> I think I've tried this before, but I could be imagining things.
>>>> Looking at the exception though, it seems that we might need to make
>>>> the path a valid URL. Try this one:
>>>>
>>>> file:///D:/opt/openejb-3.0/lib/activemq.xml
>>>>
>>>> If that doesn't work, post your activemq.xml (or some version of it)
>>>> and I'll give it a try.
>>>>
>>>> If that *does* work, then we can add examples as well as wrap this
>>>> activemq functionality with something that tries harder to make
>>>> things
>>>> work and gives a better error message when they can't.
>>>>
>>>> -David
>>>>
>>>>
>>>>> David Blevins wrote:
>>>>>>
>>>>>>
>>>>>> On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>>>>>>
>>>>>>>
>>>>>>> I've been trying to get the openEJB container to allow me to
>>>>>>> use an
>>>>>>> external
>>>>>>> activemq.xml file for a while now and have been unsuccessful.
>>>>>>> Below
>>>>>>> is my
>>>>>>> resource config
>>>>>>>
>>>>>>> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
>>>>>>> # Broker configuration URI as defined by ActiveMQ
>>>>>>> # see http://activemq.apache.org/broker-configuration-uri.html
>>>>>>>
>>>>>>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
>>>>>>> BrokerXmlConfig xbean:activemq.xml
>>>>>>>
>>>>>>> # Broker address
>>>>>>>
>>>>>>> #ServerUrl vm://localhost?async=true
>>>>>>> ServerUrl tcp://localhost:61616
>>>>>>>
>>>>>>> # DataSource for persistence messages
>>>>>>>
>>>>>>> DataSource MessageDataStore
>>>>>>> </Resource>
>>>>>>>
>>>>>>> With the activemq.xml file placed in the lib directory
>>>>>>
>>>>>> Hmmm... Try using an absolute path to the activemq.xml file and
>>>>>> see
>>>>>> if that doesn't make activemq happier.
>>>>>>
>>>>>> Not sure if that will work, but worth a try.
>>>>>>
>>>>>> -David
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html
>>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18926099.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
>
>
--
View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18944521.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by Dain Sundstrom <da...@iq80.com>.
I think I have fixed this. We modify the brokerURL to handle the
persistence setup, but we don't need to perform these modifications
when using an external activemq.xml file. So, I simply wrapped this
code with an if brokerUrl.startsWith("broker:"). The fix is checked
into trunk, and I uploaded a build here:
http://people.apache.org/~dain/openejb-3.1-r685019.zip
Let me know if this works for you,
-dain
On Aug 11, 2008, at 6:41 AM, rde8026 wrote:
>
> Any update on this subject?
> Thx
>
>
>
>
> rde8026 wrote:
>>
>> I gave that a go and here is the error message:
>>
>> org.apache.openejb.OpenEJBException:
>> javax.resource.spi.ResourceAdapterInternalException: Failed to
>> startup an
>> embedded broker:
>> openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false
>> ,
>> due to:
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Could not resolve bean definition resource pattern
>> [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false];
>> nested
>> exception is java.io.FileNotFoundException: class path resource
>> [(file:///D:opt/openejb-3.0/lib/] cannot be resolved to URL because
>> it
>> does not exist: Failed to startup an embedded broker:
>> openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false
>> ,
>> due to:
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Could not resolve bean definition resource pattern
>> [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false];
>> nested
>> exception is java.io.FileNotFoundException: class path resource
>> [(file:///D:opt/openejb-3.0/lib/]
>>
>> Seems this doesn't want to work! I've attached my activemq.xml
>> file here.
>> Thanks for your help so far - its much appreciated...
>>
>> http://www.nabble.com/file/p18884422/activemq.xml activemq.xml .
>>
>> Thx,
>> RE
>>
>>
>> David Blevins wrote:
>>>
>>>
>>> On Aug 7, 2008, at 6:48 AM, rde8026 wrote:
>>>
>>>>
>>>> Hi David,
>>>>
>>>> Thanks for the reply. I've tried using the fully qualified path
>>>> and
>>>> I get
>>>> the same exception -
>>>>
>>>> Failed to startup an embedded broker:
>>>> openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)?
>>>> persistent=false, due
>>>> to: org.springframework.beans.factory.BeanDefinitionStoreException:
>>>> Could
>>>> not resolve bean definition resource pattern
>>>> [(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
>>>> exception
>>>> is java.io.FileNotFoundException: class path resource
>>>> [(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it
>>>> does
>>>> not
>>>> exist
>>>>
>>>> I'm curious do you know if anyone has successfully gotten this to
>>>> work or is
>>>> it a bug? Any ideas would be much appreciated.
>>>
>>> I think I've tried this before, but I could be imagining things.
>>> Looking at the exception though, it seems that we might need to make
>>> the path a valid URL. Try this one:
>>>
>>> file:///D:/opt/openejb-3.0/lib/activemq.xml
>>>
>>> If that doesn't work, post your activemq.xml (or some version of it)
>>> and I'll give it a try.
>>>
>>> If that *does* work, then we can add examples as well as wrap this
>>> activemq functionality with something that tries harder to make
>>> things
>>> work and gives a better error message when they can't.
>>>
>>> -David
>>>
>>>
>>>> David Blevins wrote:
>>>>>
>>>>>
>>>>> On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>>>>>
>>>>>>
>>>>>> I've been trying to get the openEJB container to allow me to
>>>>>> use an
>>>>>> external
>>>>>> activemq.xml file for a while now and have been unsuccessful.
>>>>>> Below
>>>>>> is my
>>>>>> resource config
>>>>>>
>>>>>> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
>>>>>> # Broker configuration URI as defined by ActiveMQ
>>>>>> # see http://activemq.apache.org/broker-configuration-uri.html
>>>>>>
>>>>>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
>>>>>> BrokerXmlConfig xbean:activemq.xml
>>>>>>
>>>>>> # Broker address
>>>>>>
>>>>>> #ServerUrl vm://localhost?async=true
>>>>>> ServerUrl tcp://localhost:61616
>>>>>>
>>>>>> # DataSource for persistence messages
>>>>>>
>>>>>> DataSource MessageDataStore
>>>>>> </Resource>
>>>>>>
>>>>>> With the activemq.xml file placed in the lib directory
>>>>>
>>>>> Hmmm... Try using an absolute path to the activemq.xml file and
>>>>> see
>>>>> if that doesn't make activemq happier.
>>>>>
>>>>> Not sure if that will work, but worth a try.
>>>>>
>>>>> -David
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html
>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18926099.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by rde8026 <rd...@gmail.com>.
Any update on this subject?
Thx
rde8026 wrote:
>
> I gave that a go and here is the error message:
>
> org.apache.openejb.OpenEJBException:
> javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
> embedded broker:
> openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false,
> due to: org.springframework.beans.factory.BeanDefinitionStoreException:
> Could not resolve bean definition resource pattern
> [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
> exception is java.io.FileNotFoundException: class path resource
> [(file:///D:opt/openejb-3.0/lib/] cannot be resolved to URL because it
> does not exist: Failed to startup an embedded broker:
> openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false,
> due to: org.springframework.beans.factory.BeanDefinitionStoreException:
> Could not resolve bean definition resource pattern
> [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
> exception is java.io.FileNotFoundException: class path resource
> [(file:///D:opt/openejb-3.0/lib/]
>
> Seems this doesn't want to work! I've attached my activemq.xml file here.
> Thanks for your help so far - its much appreciated...
>
> http://www.nabble.com/file/p18884422/activemq.xml activemq.xml .
>
> Thx,
> RE
>
>
> David Blevins wrote:
>>
>>
>> On Aug 7, 2008, at 6:48 AM, rde8026 wrote:
>>
>>>
>>> Hi David,
>>>
>>> Thanks for the reply. I've tried using the fully qualified path and
>>> I get
>>> the same exception -
>>>
>>> Failed to startup an embedded broker:
>>> openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)?
>>> persistent=false, due
>>> to: org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Could
>>> not resolve bean definition resource pattern
>>> [(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
>>> exception
>>> is java.io.FileNotFoundException: class path resource
>>> [(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it does
>>> not
>>> exist
>>>
>>> I'm curious do you know if anyone has successfully gotten this to
>>> work or is
>>> it a bug? Any ideas would be much appreciated.
>>
>> I think I've tried this before, but I could be imagining things.
>> Looking at the exception though, it seems that we might need to make
>> the path a valid URL. Try this one:
>>
>> file:///D:/opt/openejb-3.0/lib/activemq.xml
>>
>> If that doesn't work, post your activemq.xml (or some version of it)
>> and I'll give it a try.
>>
>> If that *does* work, then we can add examples as well as wrap this
>> activemq functionality with something that tries harder to make things
>> work and gives a better error message when they can't.
>>
>> -David
>>
>>
>>> David Blevins wrote:
>>>>
>>>>
>>>> On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>>>>
>>>>>
>>>>> I've been trying to get the openEJB container to allow me to use an
>>>>> external
>>>>> activemq.xml file for a while now and have been unsuccessful. Below
>>>>> is my
>>>>> resource config
>>>>>
>>>>> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
>>>>> # Broker configuration URI as defined by ActiveMQ
>>>>> # see http://activemq.apache.org/broker-configuration-uri.html
>>>>>
>>>>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
>>>>> BrokerXmlConfig xbean:activemq.xml
>>>>>
>>>>> # Broker address
>>>>>
>>>>> #ServerUrl vm://localhost?async=true
>>>>> ServerUrl tcp://localhost:61616
>>>>>
>>>>> # DataSource for persistence messages
>>>>>
>>>>> DataSource MessageDataStore
>>>>> </Resource>
>>>>>
>>>>> With the activemq.xml file placed in the lib directory
>>>>
>>>> Hmmm... Try using an absolute path to the activemq.xml file and see
>>>> if that doesn't make activemq happier.
>>>>
>>>> Not sure if that will work, but worth a try.
>>>>
>>>> -David
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html
>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18926099.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by rde8026 <rd...@gmail.com>.
I gave that a go and here is the error message:
org.apache.openejb.OpenEJBException:
javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
embedded broker:
openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false,
due to: org.springframework.beans.factory.BeanDefinitionStoreException:
Could not resolve bean definition resource pattern
[(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
exception is java.io.FileNotFoundException: class path resource
[(file:///D:opt/openejb-3.0/lib/] cannot be resolved to URL because it does
not exist: Failed to startup an embedded broker:
openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false,
due to: org.springframework.beans.factory.BeanDefinitionStoreException:
Could not resolve bean definition resource pattern
[(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
exception is java.io.FileNotFoundException: class path resource
[(file:///D:opt/openejb-3.0/lib/]
Seems this doesn't want to work! I've attached my activemq.xml file here.
Thanks for your help so far - its much appreciated...
http://www.nabble.com/file/p18884422/activemq.xml activemq.xml .
Thx,
RE
David Blevins wrote:
>
>
> On Aug 7, 2008, at 6:48 AM, rde8026 wrote:
>
>>
>> Hi David,
>>
>> Thanks for the reply. I've tried using the fully qualified path and
>> I get
>> the same exception -
>>
>> Failed to startup an embedded broker:
>> openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)?
>> persistent=false, due
>> to: org.springframework.beans.factory.BeanDefinitionStoreException:
>> Could
>> not resolve bean definition resource pattern
>> [(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
>> exception
>> is java.io.FileNotFoundException: class path resource
>> [(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it does
>> not
>> exist
>>
>> I'm curious do you know if anyone has successfully gotten this to
>> work or is
>> it a bug? Any ideas would be much appreciated.
>
> I think I've tried this before, but I could be imagining things.
> Looking at the exception though, it seems that we might need to make
> the path a valid URL. Try this one:
>
> file:///D:/opt/openejb-3.0/lib/activemq.xml
>
> If that doesn't work, post your activemq.xml (or some version of it)
> and I'll give it a try.
>
> If that *does* work, then we can add examples as well as wrap this
> activemq functionality with something that tries harder to make things
> work and gives a better error message when they can't.
>
> -David
>
>
>> David Blevins wrote:
>>>
>>>
>>> On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>>>
>>>>
>>>> I've been trying to get the openEJB container to allow me to use an
>>>> external
>>>> activemq.xml file for a while now and have been unsuccessful. Below
>>>> is my
>>>> resource config
>>>>
>>>> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
>>>> # Broker configuration URI as defined by ActiveMQ
>>>> # see http://activemq.apache.org/broker-configuration-uri.html
>>>>
>>>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
>>>> BrokerXmlConfig xbean:activemq.xml
>>>>
>>>> # Broker address
>>>>
>>>> #ServerUrl vm://localhost?async=true
>>>> ServerUrl tcp://localhost:61616
>>>>
>>>> # DataSource for persistence messages
>>>>
>>>> DataSource MessageDataStore
>>>> </Resource>
>>>>
>>>> With the activemq.xml file placed in the lib directory
>>>
>>> Hmmm... Try using an absolute path to the activemq.xml file and see
>>> if that doesn't make activemq happier.
>>>
>>> Not sure if that will work, but worth a try.
>>>
>>> -David
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18884422.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by David Blevins <da...@visi.com>.
On Aug 7, 2008, at 6:48 AM, rde8026 wrote:
>
> Hi David,
>
> Thanks for the reply. I've tried using the fully qualified path and
> I get
> the same exception -
>
> Failed to startup an embedded broker:
> openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)?
> persistent=false, due
> to: org.springframework.beans.factory.BeanDefinitionStoreException:
> Could
> not resolve bean definition resource pattern
> [(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested
> exception
> is java.io.FileNotFoundException: class path resource
> [(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it does
> not
> exist
>
> I'm curious do you know if anyone has successfully gotten this to
> work or is
> it a bug? Any ideas would be much appreciated.
I think I've tried this before, but I could be imagining things.
Looking at the exception though, it seems that we might need to make
the path a valid URL. Try this one:
file:///D:/opt/openejb-3.0/lib/activemq.xml
If that doesn't work, post your activemq.xml (or some version of it)
and I'll give it a try.
If that *does* work, then we can add examples as well as wrap this
activemq functionality with something that tries harder to make things
work and gives a better error message when they can't.
-David
> David Blevins wrote:
>>
>>
>> On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>>
>>>
>>> I've been trying to get the openEJB container to allow me to use an
>>> external
>>> activemq.xml file for a while now and have been unsuccessful. Below
>>> is my
>>> resource config
>>>
>>> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
>>> # Broker configuration URI as defined by ActiveMQ
>>> # see http://activemq.apache.org/broker-configuration-uri.html
>>>
>>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
>>> BrokerXmlConfig xbean:activemq.xml
>>>
>>> # Broker address
>>>
>>> #ServerUrl vm://localhost?async=true
>>> ServerUrl tcp://localhost:61616
>>>
>>> # DataSource for persistence messages
>>>
>>> DataSource MessageDataStore
>>> </Resource>
>>>
>>> With the activemq.xml file placed in the lib directory
>>
>> Hmmm... Try using an absolute path to the activemq.xml file and see
>> if that doesn't make activemq happier.
>>
>> Not sure if that will work, but worth a try.
>>
>> -David
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by rde8026 <rd...@gmail.com>.
Hi David,
Thanks for the reply. I've tried using the fully qualified path and I get
the same exception -
Failed to startup an embedded broker:
openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false, due
to: org.springframework.beans.factory.BeanDefinitionStoreException: Could
not resolve bean definition resource pattern
[(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested exception
is java.io.FileNotFoundException: class path resource
[(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it does not
exist
I'm curious do you know if anyone has successfully gotten this to work or is
it a bug? Any ideas would be much appreciated.
Thx,
RE
David Blevins wrote:
>
>
> On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>
>>
>> I've been trying to get the openEJB container to allow me to use an
>> external
>> activemq.xml file for a while now and have been unsuccessful. Below
>> is my
>> resource config
>>
>> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
>> # Broker configuration URI as defined by ActiveMQ
>> # see http://activemq.apache.org/broker-configuration-uri.html
>>
>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
>> BrokerXmlConfig xbean:activemq.xml
>>
>> # Broker address
>>
>> #ServerUrl vm://localhost?async=true
>> ServerUrl tcp://localhost:61616
>>
>> # DataSource for persistence messages
>>
>> DataSource MessageDataStore
>> </Resource>
>>
>> With the activemq.xml file placed in the lib directory
>
> Hmmm... Try using an absolute path to the activemq.xml file and see
> if that doesn't make activemq happier.
>
> Not sure if that will work, but worth a try.
>
> -David
>
>
>
--
View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Configure OpenEJB Container to use external activemq.xml file
Posted by David Blevins <da...@visi.com>.
On Aug 6, 2008, at 12:47 PM, rde8026 wrote:
>
> I've been trying to get the openEJB container to allow me to use an
> external
> activemq.xml file for a while now and have been unsuccessful. Below
> is my
> resource config
>
> <Resource id="ActiveMQRA" type="ActiveMQResourceAdapter">
> # Broker configuration URI as defined by ActiveMQ
> # see http://activemq.apache.org/broker-configuration-uri.html
>
> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
> BrokerXmlConfig xbean:activemq.xml
>
> # Broker address
>
> #ServerUrl vm://localhost?async=true
> ServerUrl tcp://localhost:61616
>
> # DataSource for persistence messages
>
> DataSource MessageDataStore
> </Resource>
>
> With the activemq.xml file placed in the lib directory
Hmmm... Try using an absolute path to the activemq.xml file and see
if that doesn't make activemq happier.
Not sure if that will work, but worth a try.
-David