P Chandrasekaran

Greenhorn
+ Follow
since May 11, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by P Chandrasekaran

I found it surprisingly ahrd to find aweb site to download the xsd's for SOAP 1.1 and 1.2.

Please post it here if you do know it.

Chandra
14 years ago
I am trying to reconstruct a streamed-in SOAP message with attachmnets using SAAJ implementation in JWSDP 1.6.

After adding the attachments I make a call to the saveChanges() method of SOAPMessage. Then I stream the SOAPMessage object using the writeTo() method
after which I try to reconstruct the SOAPMessage.

But I find that the MessageFactory needs a set of MIMEHeaders and the input stream to reconstruct the SOAPMessage. But I do not have the headers in the first place since I am trying to feed the byte stream from outside a transport protocol.

Then how can I employ SAAJ as a pure SOAP manipulation tool to generate and process SOAP messages to be used outside a webservice context?

Thanks
Chandra
15 years ago
No all session beans but only some.

And I found that in the -ejb-jar.xml files these are specified as stateful whereas I had been given to understand that there were no stateful EJBs.
When I checked the stacktrace I repeatedly saw a method call
"CreateStatefulSessionContainer()". That's what prompted me to check if some were stateful.
And I did indeed find some to be stateful.
So the problem is solved.
16 years ago
Hello!
I have the following -jboss.xml for all of my stateless session EJBs.
Trying to deploy on JBoss 4.0.1SP1 gives
"org.jboss.deployment.DeploymentException:
Missing or invalid Instance Cache (in jboss.xml or standardjboss.xml); - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: )"
...
error message.

But I find in the standardjboss.xml that the element has empty value:
<instance-cache></instance-cache>

What gives?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">

<jboss>
<enterprise-beans>
<session>
<ejb-name>AccountInquiryHome</ejb-name>
<jndi-name>AccountInquiryHome</jndi-name>
<configuration-name>AccountInquiryHomeConfig</configuration-name>
</session>
</enterprise-beans>
<container-configurations>
<container-configuration extends="Standard Stateless SessionBean">
<container-name>AccountInquiryHomeConfig</container-name>
<container-pool-conf>
<MaximumSize>100</MaximumSize>
<strictMaximumSize>true</strictMaximumSize>
<strictTimeout>60000</strictTimeout>
</container-pool-conf>
<container-cache-conf>
<cache-policy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy</cache-policy>
<cache-policy-conf>
<min-capacity>1</min-capacity>
<max-capacity>100</max-capacity>
<max-bean-age>10</max-bean-age>
</cache-policy-conf>
</container-cache-conf>
</container-configuration>
</container-configurations>
</jboss>



standardjboss.xml excerpt:

<container-configuration>
<container-name>Standard Stateless SessionBean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>
<container-interceptors>
<interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
<!-- CMT -->
<interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
<interceptor transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
<interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
<interceptor transaction="Container">org.jboss.webservice.server.ServiceEndpointInterceptor</interceptor>
<interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
<!-- BMT -->
<interceptor transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
<interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
<interceptor transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
<interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
<interceptor transaction="Bean">org.jboss.webservice.server.ServiceEndpointInterceptor</interceptor>
<interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
<instance-cache></instance-cache>
<persistence-manager></persistence-manager>
<container-pool-conf>
<MaximumSize>100</MaximumSize>
</container-pool-conf>
</container-configuration>
16 years ago
The link on the JBossWiki page

http://www.jboss.org/wiki/Wiki.jsp?page=FoeDeployerService

returns 404.

I am unable to find a page having download link for that deployer.

Could someone here post the URL please?


Thanks
Chandra
16 years ago
Hello.

I am porting a JSP 1.1. app from Weblogic 5.1 to JBoss 4.0.
And I find that the JSP engine throws error complaining
"attribute <such-and-such> invalid according to TLD" for
even attributes defined in the super class of the tag.

Why is it so?
Thanks
Chandra
16 years ago
JSP
Hello.

I have a JTS datasource defined in weblogic properties.
I need to move it to JBoss.
Am I supposed to use an XA datasource definition in the JBoss *-ds-.xml?

Please advise.


Thanks
Chandra
16 years ago
I keep getting the following error whenever I redeploy without restarting the server.
----
2005-05-17 13:21:58,022 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/D:/jboss-4.0.1sp1/server/default/deploy/JBossDukesBank.ear
org.jboss.deployment.DeploymentException: Error in accessing application metadata: ; - nested throwable: (javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='JBossDukesBank.ear' already registered.)
---------

What causes this?

Thanks
Chandra
16 years ago

Originally posted by Sanju Thomas:
Why you need multile ejb-jar.xml ?, you can use single ejb-jar.xml to deploy any number of ejbs. You need to give ejb-jar.xml and jboss.xml in single jar file. but you can have any number of ejbs in single jar file. so that you can use single ejb-jar.xml and single jboss.xml to deploy any number of ejbs.



:-)
Sanju
I do not think that is a manageable solution for the situation where I have to port an app from Weblogic 5.1 toJBoss 4.0 with 95 EJBs packaged currently in as many different jars.
I would like to maintain the strcuture as much as possible.

So I need to know whether JBoss AS has any problem with multiple ejb-jars.

Thanks
Chandra
16 years ago
Is the recommended deployment policy to have a single ejb.jar?
If I am deploying multiple ejb.jar's can I have a single jboss.xml for all of them outside a particular ejb.jar?
Or is there supposed to be a jboss.xml inside each ejb.jar?

Thanks
Chandra
16 years ago
What is the point of application-client in J2EE?
I am trying to understand the jboss/DukesBank tutorial and see that the app-client.jar is also bundled within the .ear file.

If the app-client is a stand alone Java program why is it bundled with the dukesbank.ear?
And I see that the ant script's target run-client anyway uses the app-client.jar in the tutorial's jar directory which is clearly outside the JBoss app server's directory.
So why is this whole bundling within the .ear outside which this client is supposed to run?

I commented out the <module> portion declaring the app-client.jar from the application.xml of the .ear.
Then I get an error when I run the app-client complaining:

"javax.naming.NameNotFoundException: bank-client not bound
...
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.sun.ebank.util.EJBGetter.getCustomerControllerHome(EJBGetter.java:69)
at com.sun.ebank.appclient.DataModel.<init>(DataModel.java:126)
at com.sun.ebank.appclient.EventHandle.<init>(EventHandle.java:51)
at com.sun.ebank.appclient.BankAdmin.main(BankAdmin.java:587)"

I am trying to understand what exactly goes on here that when trying to lookup CustomerControllerHome results in "bank-client not bound" error.

Thanks a lot
Chandra.
16 years ago

Originally posted by prashanth c n:
There is a way for creating Connection pool by specifying the connection manager JBossManagedConnectionPool in jboss-service.xml, but how do we map this pool to the datasource mentioned in the <database>-ds.xml

thanks.
Prashanth

[ May 12, 2005: Message edited by: prashanth c n ]



But am I corrrect in stating that a DataSource is by default a connection pool?

Chandra
16 years ago
I would like to know how to specify for datasources the equivalent of "capacityIncrement" found in Weblogic servers.

Chandra
16 years ago