Martin, Very strange. Have you tried with DEBUG logging to see if that changes things or gives you any additional feedback?
If you're deploying in SMX4, you can probably just create an OSGi bundle and create the service through a Spring configuration file in META-INF/spring.You can get a reference to the NMR using Spring DM (<osgi:reference id="nmr" interface="org.apache.servicemix.nmr.api.NMR" /> and inject that into you connector bean to interact directly with the NMR, avoiding JBI packaging and classloading entirely. Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/2/2 Martin Kuhn <[email protected]>: > > > Gert Vanthienen wrote: >> >> I don't see any real reason why your approach would not work. Running >> this server connection inside a servicemix-bean POJO should work just >> fine, I think. Perhaps something is wrong in the initialization order >> of thing. You could fine-tune that by using the @PostConstruct and >> @PreDestroy annotations. When the container is hanging at startup, >> could you take a look at the threads through JMX or take a thread to >> figure out what it is waiting for? >> > > Gert, > > I put the initialization of the server in a @PostConstruct marked method. I > see in the log > file that the server process is initialized. > > Nevertheless, when I depoy the SA it doesn't work. When I do a new start of > the component via the osgi console (of course after stopping) the > communication between mainframe and SMX4 works. > > The server process uses threads to handle incoming calls from the mainframe. > Could this be the reason for problems? > > Also, it seems that other components (SA's) are influenced when the SA > containing the server process is deployed. > > e.g. first deploying the SA which contains the server process. > -> then deploying other components (SA's) -> the SA's are not callable -> I > see in the console that the have only a status "Installed" and I'm not able > to start the components > There are also no error entries in the log. > > Can you imagine another (simple) solution to start the server process inside > SMX4? > > TIA > Martin > -- > View this message in context: > http://www.nabble.com/Running-a-Server-inside-SMX4-%28mainframe-connection-server%29-tp21788302p21789695.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
