geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anita Kulshreshtha <a_kuls...@yahoo.com>
Subject Re: activemq-broker
Date Tue, 10 Apr 2007 22:25:14 GMT
   Thanks David! I had overlooked getAttribute and setAttribute methods
in ResourceAdapterWrapperGBean. I used ActiveMQ RA and it worked like
charm!

Thanks
Anita

--- David Jencks <david_jencks@yahoo.com> wrote:

> All the config-properties specified in ra.xml for the resource  
> adapter class and the outbound ManagedConnectionFactory and IIRC the 
> 
> admin objects are turned into dynamic attributes for the wrapper  
> gbeans so they can be set through the gbean mechanism, exposed to  
> management, overridden in config.xml, etc.
> 
> So, this isn't an attribute of ResourceAdapterWrapperGBean itself,  
> but any activemq resource adapter wrapper gbean instance should  have
>  
> it.
> 
> thanks
> david jencks
> 
> On Apr 10, 2007, at 6:25 AM, Anita Kulshreshtha wrote:
> 
> >     Thanks David! I could not find a ServerUrl attribute in
> > ResourceAdapterWrapper gbean. Do we need to add one? If yes, how?
> >
> > Thanks
> > Anita
> >
> > --- David Jencks <david_jencks@yahoo.com> wrote:
> >
> >> This gets turned into a gbean attribute called ServerUrl on the
> >> ResourceAdapterWrapper gbean so it should be possible to override
> it
> >>
> >> that way in config.xml.
> >>
> >> thanks
> >> david jencks
> >>
> >> On Apr 9, 2007, at 7:48 PM, Anita Kulshreshtha wrote:
> >>
> >>> Kevan,
> >>>    The plan for activemq-ra config is using 61616:
> >>> <resourceadapter>
> >>>         <resourceadapter-instance>
> >>>             <resourceadapter-name>ActiveMQ
> >> RA</resourceadapter-name>
> >>>             <config-property-setting
> >>>
> name="ServerUrl">tcp://${PlanServerHostname}:${PlanActiveMQPort}</
> >>> config-property-setting>
> >>> ............................
> >>> </..>
> >>>
> >>>    Any idea how to make this configurable?
> >>>
> >>> Thanks
> >>> Anita
> >>>
> >>> --- Kevan Miller <kevan.miller@gmail.com> wrote:
> >>>
> >>>>
> >>>> On Mar 22, 2007, at 10:39 AM, Anita Kulshreshtha wrote:
> >>>>
> >>>>>    I get following exception while starting an instance of g
> >> using
> >>>>
> >>>>> port
> >>>>> 61626 instead of 61616. Where is 61616 coming from?
> >>>>
> >>>> Hi Anita,
> >>>> 61616 is the ActiveMQ's default port. So, we're establishing
> this
> >>>> internal connection to ActiveMQ without specifying a port number
> >> (and
> >>>>
> >>>> activemq is defaulting). Or, we're using the wrong port number.
> >>>>
> >>>> How are you configuring this?
> >>>>
> >>>> --kevan
> >>>>
> >>>>>
> >>>>> Thanks
> >>>>> Anita
> >>>>>
> >>>>> Starting Geronimo Application Server v2.0-SNAPSHOT
> >>>>> [*********>                  ] 34%  18s Starting
> >>>>> org.apache.geronim...10:27:08,953 ERROR [
> >>>>> MCFConnectionInterceptor] Error occurred creating
> >> ManagedConnection
> >>>>
> >>>>> for
> >>>>> org.apache.geronim
> >>>>> o.connector.outbound.ConnectionInfo@1a6ac3e
> >>>>> javax.resource.ResourceException: Could not create connection.
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.activemq.ra.ActiveMQManagedConnectionFactory.createManagedC
> >>>>
> >>>>> onnection
> >>>>> (ActiveMQManagedConnectionFactory.java:112)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getCon
> >>>>
> >>>>> nection(M
> >>>>> CFConnectionInterceptor.java:48)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.
> >>>>
> >>>>> getConnec
> >>>>> tion(XAResourceInsertionInterceptor.java:41)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor
> >>>>
> >>>>> .internal
> >>>>> GetConnection(SinglePoolConnectionInterceptor.java:66)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInt
> >>>>
> >>>>> erceptor.
> >>>>> getConnection(AbstractSinglePoolConnectionInterceptor.java:78)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor
> >>>>
> >>>>> .getConne
> >>>>> ction(TransactionEnlistingInterceptor.java:46)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.g
> >>>>
> >>>>> etConnect
> >>>>> ion(TransactionCachingInterceptor.java:95)
> >>>>>         at
> >>>>>
> >>>>
> >>
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection
> >>>>> (TCCLInterc
> >>>>> eptor.java:39)
> >>>>>         at
> >>>>>
> >>>>
> >>>
> >>
> >
>
org.apache.geronimo.connector.outbound.AbstractConnectionManager.getRe
> >>>>
> >>>>> coveryXAR
> >>>>> esource(AbstractConnectionManager.java:98)
> >>>>>         at
> >>>>>
> org.apache.geronimo.connector.outbound.AbstractConnectionManager$
> >>>>> $FastClassByCG
> >>>>> LIB$$80012030.invoke(<generated>)
> >>>>>         at
> >>>> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >>>>> .......................................................
> >>>>> ......................................................
> >>>>>
> >>>>>         at
> >>>>> org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:74)
> >>>>>         at
> >> org.apache.geronimo.system.main.Daemon.main(Daemon.java:
> >>>>
> >>>>> 342)
> >>>>> Caused by: javax.jms.JMSException: Could not connect to broker
> >> URL:
> >>>>> tcp://0.0.0.0:61616. R
> >>>>> eason: java.net.ConnectException: Connection refused: connect
> >>>>>         at
> >>>>> org.apache.activemq.util.JMSExceptionSupport.create
> >>>>> (JMSExceptionSupport.java:33
> 
=== message truncated ===



       
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

Mime
View raw message