[JBoss AOP] - Re: Newbie needs help with configuration
by JReifsnyder
Thank you very much for your quick replies. I have kept the pointcut/joinpoint descriptions in jboss-aop.xml only and changed the word to "execution". I'm no longer getting any exceptions, but startup is hanging (or appears to be, I've given it several minutes to start when it normally takes about 1 min). I also cannot use ctrl-c to terminate the startup, since that seems to start shutdown but then just hangs as well.
I have only a single pointcut defined, but am applying it against a large jar file with many classes defined. Should I be trying to isolate the classes that I want instrumented into a separate jar file? We are hoping that we can use the instrumentation against out completed app without any rework...
Thanks again,
Jamie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050965#4050965
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050965
18Â years, 10Â months
[Beginners Corner] - Re: invoking an EJB over iiop
by HibsMax
Thanks for your reply, jaikiran!
The servlet is packaged in a WAR file and is deployed on server1.
The EJB is packaged in a JAR file and is deployed on server2.
The jndi-name in jboss.xml and ejb-jar.xml is set to interop.InteropHome. Here's jboss.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>interop.InteropBean</ejb-name>
| <invoker-bindings>
| <invoker>
| <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
| </invoker>
| <jndi-name>interop.InteropHome</jndi-name>
| </invoker-bindings>
| </session>
| </enterprise-beans>
| </jboss>
My ejb-jar.xml contains the exact same jndi-name.
Here's how I create the initial context:
Properties h = new Properties();
| String ctx = "";
| ctx = "org.jboss.iiop.naming.ORBInitialContextFactory";
| h.put( Context.INITIAL_CONTEXT_FACTORY, ctx );
| h.put( Context.PROVIDER_URL, url );
| InitialContext initCtx = new InitialContext(h);
| return initCtx;
The URL I am using is:
iiop://server2:3528
Finally, here's the EJB lookup:
Object foo = getInitialContext(url, user, password).lookup(ejbHomeName);
| Object bar = PortableRemoteObject.narrow( foo, InteropHome.class );
| home = (InteropHome) bar;
|
In my source code I use this for the EJB name: iiop://interop.InteropHome
user and password are null in this case. When I run this code and display the class name of the object in foo, I get : com.sun.jndi.cosnaming.CNCtx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050959#4050959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050959
18Â years, 10Â months