[JBossWS] - JBossAS 5.1.0.GA & 3.1.2.GA & META-INF
by Sefai
Hi all,
I have a working war for 4.2.x, containing both a ws client and a server using WSSecurity, when I deploy it on 5.1.0.GA, the serving side worked but client side did not.
After days of debugging I found out that when application tries to consume some other web-service, standard-jaxws-client-config.xml and jboss-wsse-client.xml which are both located under META-INF are not read, but the client config under server/.../deployers/jbossws.deployer/META-INF/standard-jaxws-client-config.xml is read. So the WSSecurity does not work.
I moved META-INF under WEB-INF/classes of the war, some wiki I dont remember now was saying resource files must be under WEB-INF/classes for AS 5.x series, this time client worked but applications own WebService did not, it couldn't find standard-jaxws-endpoint-config.xml. So I duplicated META-INF on both directories, now both of them works.
Also server can find the keystore and truststore under WEB-INF, but the client part can only find them when they are under WEB-INF/classes, so I duplicated them, too.
I dont know the details of classloading very much, but I suspect this issue is related to it.
Is this a bug, or known issue of 5.1 which can be avoied with some other setting?
Thanks in advance...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242166#4242166
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242166
17 years
[EJB 3.0] - Re: Dependency injection is not working
by daviddev
Hi,
thanks for answering.
I did try to use only the name of the property within the env-entry definition ass you mentioned but I still have the same problem. Even worth, the message driven bean are not properly initialised. I need to do a look up of the context to get the appropriate value of the application name.
in summary, if i do not include the package tath within the env-entry e.g.
| <env-entry-name>applicationName</env-entry-name>
|
I need to lookup the context to get the application name set in the ejb-jar.xml. here the code in my session of my bean
| //...
| try {
| Context ctx = new InitialContext();
| Context envContext = (Context) ctx.lookup( "java:comp/env" );
| String appName = (String) envContext.lookup( "applicationName" );
| this.applicationName = appName;
|
| } catch (NamingException e){
| log.debug( "application name not found" );
| }
|
if I include the full package path
| <env-entry-name>com.messaging.messagemanager.receiving.IncomingMessageHandler/applicationName</env-entry-name>
|
I do not need to do a look up within my message driven bean.
However within the other beans the injection does not work.
I am not sure to understand how the injection work
Thanks for you help
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242165#4242165
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242165
17 years
[JBoss Messaging] - Jboss Messaging examples in JBoss AS 5.1.0
by jweytjens
Hi all,
JBoss AS 5.1.0.GA comes with JBoss Messaging 1.4.3, the GA version of which is not available as a separate download (JBoss Messaging 1.4.4.GA is). The examples included in JBoss Messaging 1.4.4.GA are not part of the JBoss 5.1.0.GA distribution. I copied the examples from the JBoss Messaging download to the JBoss distribution and followed the instructions in the README.html file of JBoss Messaging to upgrade JBoss Messaging in JBoss 5.1.0.GA. Specifically:
jboss-messaging.jar
-> JBOSS_HOME/common/lib
connection-factories-service.xml
destinations-service.xml
hsqldb-persistence-service.xml
messaging-service.xml
remoting-bisocket-service.xml
-> server\default\deploy\messaging
The installation validation mentioned in section 4.3 of JBossMessagingUsersGuide.pdf did not work (ant in the queue dir). The paths in the build.xml are not correct and the jar files referenced are in different places in the JBoss AS distribution or do not exist there (e.g., jboss-j2ee.jar). After some editing I could make the validation test run succesfully though not without warnings: [java] 12:06:47,434 WARN @main [MicroSocketClientInvoker] numberOfRetries is no longer used.
Is there a set of JBoss Messaging examples that works out of the box with JBoss AS 5.1.0? That would be very convenient.
Jan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242161#4242161
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242161
17 years
[EJB 3.0] - Re: onetomany relationship question
by lpiccoli
thanks for the rapid response wolfgang.
i added the SQL tracing but there is *no* SQL when calling parent.getChilds().
So if i have understood the 'onetoMany' relationship, it doesnt populated the 'many' unless it has been explicitly set using the parent.setChilds().
This seems an almost pointless relationship.
In order to get the list of childs from existing data (ie.reference data), one must use a join query like
| em.query( 'from Child child where child.parent_id=:id')
|
I was hoping the above would be executed during the retrieval of the 'many'.
Q1. what exactly is the point of the 'onetoMany' if it is only useful if used when explicitly setting the collection on the 'one' side?
any help to clarify the above is most appreciated.
-lp
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242160#4242160
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242160
17 years
[EJB 3.0] - Re: Dependency injection is not working
by jaikiran
<env-entry-name>com.messaging.messagemanager.receiving.IncomingMessageHandler/applicationName</env-entry-name>
|
Change this to:
<env-entry-name>applicationName</env-entry-name>
The syntax that you used seems to be applicable when a injection-target is used instead of java annotations.
anonymous wrote :
| Any good references/internet link that could help me to understand the structure of an ear file or how to use ejb-jar.xml and persistence.xml in ear are also welcome.
Section 16.4.1 of the EJB3 spec has the details about the syntax and some examples.
Having said that, i am surprised that you are seeing a different behaviour for MDBs. Let us know how that change goes.
By the way, which version of JBoss AS do you use?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242153#4242153
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242153
17 years