[Beginner's Corner] - Web service client in EJB 3.x - best practice
by Pasquale Imbemba
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"Web service client in EJB 3.x - best practice"
To view the discussion, visit: http://community.jboss.org/message/622055#622055
--------------------------------------------------------------
Hi,
up to now I've been using Axis 1.4 to generate classes from the WSDL file with eclipse, not using EJBs at all.
I'm about to write a little proof of concept with EJBs 3.1 and would like to know about which is the best practice in generating a web service client using using EJB 3.1 together with JBoss AS 6.
I was told I shouldn't really use Axis 1.4 since that could give me problems. My idea is to use Apache CXF runtime, because I read that this is part of JBoss 6 specification.
Is it necessary to download the runtime and point eclipse to it or can I point and use a library file provided with my JBoss 6 installation (I usually define a user library in eclipse called JBoss, which contains all lib files).
Thank you in advance.
~pasquale
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622055#622055]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[Datasource Configuration] - Getting error in connecting with Oracle database
by Prasanna Sinha
Prasanna Sinha [http://community.jboss.org/people/pksinha] created the discussion
"Getting error in connecting with Oracle database"
To view the discussion, visit: http://community.jboss.org/message/623741#623741
--------------------------------------------------------------
Hi All
I am working on ATG project and I need to connect with oracle database which is in remote server. I am able to ping and able to connect using sqldeveloper, but while running run.bat I am getting following error:
I am using Jdk1.6 and jboss-eap 4.3.
ORA-12519, TNS:no appropriate service handler found
)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:190)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:584)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:531)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:662)
The content of ds file that I am using is as follows:
<datasources>
<no-tx-datasource>
<jndi-name>atgcore_ds</jndi-name>
<connection-url>jdbc:oracle:thin:@10.6.16.127:1521:CWKDBS</connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<user-name>chadwicks_core_sap</user-name>
<password>admin</password>
<min-pool-size>30</min-pool-size>
<max-pool-size>250</max-pool-size>
</no-tx-datasource>
<no-tx-datasource>
<jndi-name>atgcataloga_ds</jndi-name>
<connection-url>jdbc:oracle:thin:@10.6.16.127:1521:CWKDBS</connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<user-name>chadwicks_cata_sap</user-name>
<password>admin</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
</no-tx-datasource>
<no-tx-datasource>
<jndi-name>atgcatalogb_ds</jndi-name>
<connection-url>jdbc:oracle:thin:@10.6.16.127:1521:CWKDBS</connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<user-name>chadwicks_catb_sap</user-name>
<password>admin</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
</no-tx-datasource>
</datasources>
Please help me to resolve this issue.
Thanks
Prasanna
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623741#623741]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[EJB3] - EJB inside WAR deployment order
by Tomas Bartalos
Tomas Bartalos [http://community.jboss.org/people/barti] created the discussion
"EJB inside WAR deployment order"
To view the discussion, visit: http://community.jboss.org/message/623781#623781
--------------------------------------------------------------
Hi,
Is there a way how to influence the deployment order of EJB packed inside WAR (according to EJB 3.1 spec).
Background: We have a servlet filter, where we need to access EJB bean.
The problem is, that the filter is Guice driven, so we can't use @EJB annotation in the code, however we have to make a custom ejb lookup.
Problem: When we deploy the web app, we get an error saying, that the EJB is not bound, because the web app and the filter is initialized before the EJB.
Workaround: If I create a plain old servlet filter with @EJB annotation to an existing EJB, the deployment order is correct (1. EJB, 2. Web app).
However this forces me to create useless filter, with @EJB reference to some existing bean.
Is there a "proper" way how to influence the order ?
thanks for your answers,
Tomas
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623781#623781]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months