-
1. Re: JNDI Binding issue in latest AS 7 night build
jaysensharma Jun 14, 2012 9:45 AM (in response to wichkabashir)Hi Basheer,
Try to define the "type" attribute as well :
<subsystem xmlns="urn:jboss:domain:naming:1.2">
<bindings>
<simple name="java:jboss/exported/test" value="100" type="int"/>
<simple name="queue_mbQueue" value="real_queue" type="String"/>
</bindings>
</subsystem>
-
2. Re: JNDI Binding issue in latest AS 7 night build
wichkabashir Jun 14, 2012 11:52 AM (in response to jaysensharma)It doesn't work. I get the same error.
<subsystem xmlns="urn:jboss:domain:naming:1.2">
<bindings>
<simple name="queue_mbQueue" value="real_queue" type="String"/>
</bindings></subsystem>
11:51:48,049 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 60) JBAS015537: Activating WebServices Extension
11:51:48,061 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 50) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "naming"),
("binding" => "queue_mbQueue")
]) - failure description: "JBAS011864: Invaliding binding name queue_mbQueue, name must start with one of [java:global, java:jboss, java:/]" -
3. Re: JNDI Binding issue in latest AS 7 night build
ctomc Jun 14, 2012 12:26 PM (in response to wichkabashir)Just fix the jndi name as the message suggest
<simple name="java:jboss/queue_mbQueue" value="real_queue"/>
or what ever the proper jndi name is...
-
4. Re: JNDI Binding issue in latest AS 7 night build
mcclane Oct 31, 2014 3:12 PM (in response to ctomc)Hi,
I've got this problem.
We've got an EAR with a EJB (jar) and WEB (war) projects.
We'd like to migrate it from Websphere to JBOSS.
We've got a binding from name to jndi in a IBM file, and we are traying to find out how.
First we checked the jboss-web.xml, but thid will only work at web level, we need it al EJB level.
It seems that is possible to do it at standalone.xml descriptor level, but we'd like todo to it at ejb level.
So, after playing with jboss-ejb3.xml we can't find how to configurate it. We tried copy / paste from the jboss-web.xml reference binding, but with parser errors. We also tried to include the subsystem proposed condfiguration without success.
Can anybody help us with that? there's and example (WRONG) of we'd like to do.
<?xml version="1.1" encoding="UTF-8"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="urn:clustering:1.0"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1"
impl-version="2.0">
<subsystem xmlns="urn:jboss:domain:naming:1.2">
<bindings>
<lookup name="Name1" lookup="java:/jdbc/name1"/>
</bindings>
<remote-naming/>
</subsystem>
</jboss:ejb-jar>
Otherwise, the equivalent of the jboss-web.xml but in the jboss-ejb3-xm:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<resource-ref>
<res-ref-name>Name1</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/jdbc/name1</jndi-name>
</resource-ref>
</jboss-web>