[Design of EJB 3.0] - EJBContainer Validation on Deployment/Start
by ALRubinger
The current Proxy/ProxyFactory implementation tightly couples the Proxy generation code with a series of static utilities also used in validation of a deployment ie:
* Same interface cannot be both business local and business remote (EJBTHREE-1025)
* RemoteHome must have "create" methods of return type assignable to javax.ejb.EJBObject
...etc.
I won't be including logic of this type within the "proxy" component, so I'll instead propose:
* Create a new component "validation"
* This component will contain a series of aspects, each tailored to one validation use case referencing back either to spec or JIRA
* Interception to occur at (Session|MDB|Service)Container.start()
Over time we may additionally move other validation checks out of Container code (EJB3 Core) and into the new component, but for now all I need is a good place to put the stuff coupled with Proxy generation.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150031#4150031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150031
17 years, 11 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: A few problems running the examples on different machine
by ataylor
if i change it the same way i get
queueExample:
| [java] javax.naming.CommunicationException: Could not obtain connection to any of these urls: thetaylors:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server thetaylors:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server thetaylors:1099 [Root exception is java.net.UnknownHostException: thetaylors: thetaylors]]]
| [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1601)
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
| [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
| [java] at org.jboss.jms.example.QueueExample.main(QueueExample.java:47)
| [java] Caused by: javax.naming.CommunicationException: Failed to connect to server thetaylors:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server thetaylors:1099 [Root exception is java.net.UnknownHostException: thetaylors: thetaylors]]
| [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276)
| [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1572)
| [java] ... 4 more
| [java] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server thetaylors:1099 [Root exception is java.net.UnknownHostException: thetaylors: thetaylors]
| [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250)
| [java] ... 5 more
| [java] Caused by: java.net.UnknownHostException: thetaylors: thetaylors
| [java] at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
| [java] at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
| [java] at java.net.InetAddress.getAllByName(InetAddress.java:1061)
| [java] at java.net.InetAddress.getByName(InetAddress.java:958)
| [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
| [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:246)
| [java] ... 5 more
|
|
so it looks like its picking it up for me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149985#4149985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149985
17 years, 11 months