[EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(
by mailmustu
Hi Andy,
I am still not sure if the way I package and deploy EJB 3 ear file is correct.
EJB 3 has done away with ejb-jar.xml, but there are other xml files like application.xml, jboss.xml, jboss-app.xml, jboss-web.xml....and so on.....
here is the exploded structure of my EAR file:
| tmp60740MyEjb3.ear-contents/
| ->META-INF/
| ->application.xml
| ->jboss-app.xml
| ->MANIFEST.MF
| ->MyEjb3-exp.war/
| ->META-INF/
| ->MANIFEST.MF
| ->WEB-INF/
| ->jboss-web.xml
| ->web.xml
| ->index.jsp
| ->MyEjb3.war
| ->MyEjb3.jar
|
| MyEjb3.jar when unzipped, further has:
| ->META-INF/
| ->MANIFEST.MF
| ->persistence.xml
| ->com/
| ->mustafa/
| ->ejb3/
| ->HelloWorldBean.class
| ->HelloWorldLocal.class
|
Please let me know if the location of XML files or anything else is wrong.
btw, I do not see any use of jboss.xml ?
Thanks,
Mustafa
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050428#4050428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050428
18Â years, 10Â months
[EJB 3.0] - Re: webservice doubt
by sashaxiv
sorry about my english. I could not find a solution. I need that the classes generated by axis have an appropiate name in order to avoid change a lot of code in the client aplication.
My server code is like this:
package com.satdatatelecom.satdataweb.model.session.session;
import java.rmi.RemoteException;
...................
....................
@WebService(endpointInterface="com.satdatatelecom.satdataweb.model.session.session.SesionEndPointInterface", targetNamespace = "http://localhost/jboss-net/services/Sesion", serviceName = "LoginService")
@Remote(SesionSession.class)
@RemoteBinding(jndiBinding = "/ejb3/EJB3SesionEndPointInterface")
@Stateless
public class SesionSessionBean implements SesionSession {
@PersistenceContext(unitName = GlobalNames.PERSISTENCE_UNIT)
private EntityManager entityManager;
@WebMethod
@WebResult
public LoginVO loginUsuario(String idEmpresa, String loginName, String password, String session) throws EmpresaNotFoundException, UsuarioNotFoundException, Passw................... {
try{
LoginUsuarioAction action = new LoginUsuarioAction(idEmpresa, loginName, password,
session, entityManager);
LogMessages.info("login", "El usuario "+loginName+" realiza login", true);
return action.execute();
}catch (EmpresaNotFoundException e){
throw e;
}catch (UsuarioNotFoundException e){
throw e;
}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050424#4050424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050424
18Â years, 10Â months
[JBoss Messaging] - Orderer redelivery of messages
by egomet
Hi guys!
We have an application in production with a requirement about the order of messages sent to queues: the queue must maintain the delevery order also in case of failure and redelivery. The version of JBoss that we are using (3.x) did not provide the "ordered redelivery" of messages: if the client sends the messages "1", "2" and "3" in this sequence, and the message "2" fails, we are not assured that the container tries to redeliver the message "2" the specified number of times (10 by default) and then picks the message "3" up. The behavior that we experimented is that
the redelivered message is put in the queue without maintaining the initial order, so it is possible that the receiver will pick up the message "3" before the redelivered message "2".
We have solved the problem by writing our own JMSContainerInvoker, configured as a "Singleton Message Driven Bean" and deployed in the JBoss server.
My question is: "does JBoss Messaging 1.2X provide the ordered redelivery of incoming messages?"
I made some test by using JBoss 4.0.5GA and JBoss Messaging 1.2.0.sp1, without the custom invoker, configuring the receiving MDB as a Singleton: it seems to work (i.e. to implement the ordered redelivery), but I'm still looking in the source code for confirmation.
Could you confirm the observed behavior (ordered redelivery implemented) or maybe provide a counter-example that shows a case in which redelivery does not maintaing the arrival order of messeges?
Thank you for the help.
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050421#4050421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050421
18Â years, 10Â months