Help coderanch get a
new server
by contributing to the fundraiser

maha laxmi

Ranch Hand
+ Follow
since Sep 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by maha laxmi

I have 15 textboxes in the form with the same name;how to retreive the values entered in those text boxes in JSF Managed bean;
17 years ago
JSF
i have 2 pane tabs are there in the form.if i was in first screen(tab1) and make some changes in that screen and clicks tab2 it will ask me confirmation either ok or cancel .

if i click ok it should call ManagedBean1.edit method
if i click cancel it should call ManagedBean2.summaryList method;


so based on clicking the button it should call different managed and their methods


function validate()
{
flag = confirm("Do you want to save ?");
}

<h:form id="form1" onsubmit="return validate()">
<h:commandLink action="#{ManagedBean2.summaryList}" value="summary"></h:commandLink>
</h:form>
17 years ago
JSF

Originally posted by Hanumanth Kanthi:
Actually there isn't any difference between Express and Base version other than licensing usage terms..... Otherwise code base is EXACTLY same with latest versions......

Anyways, what you can do is create one single profile and that is the minimum footprint that you can have to get going with your development effort.

Cheers,
H. Kanthi




how to create single profile with minimum footprint;

while installing full suite should i select this option?
please explain clearly..
17 years ago
i have installed WAS6.1 full suite in my system;if you install you will get all features and admin console;

but i want standalone websphere application server which has basic features who can deploy ear files and configure datasource and deploying ear manually;i think for development point of view WAS6.1 full suite is not required and also full suite is taking lot of space in my system.

if you see Oracle91AS;it has full suite instllation and also for development point of view standalone application server is there i.e OC4J.

Is standalone websphere application server exists???
17 years ago
"i thought for JMS all you needed to do was declare your Queue in the destinations xml file in the JMS folder, then deploy your MDB"

are you talking about this destinations-service.xml file.




anyway queue is coming correctly.while sending the messages do to the queue i am getting exception.




this is the log file i am getting;
17 years ago
followed this url and deployed new new messaging instance
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingBuildInstructions

i created mdb.ear and deployed in the mesaging instance.my requirement is i am trying to lookup remote queue;

i followed below url for scoped ear for Remote Messaging Instance.

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

mdb.ear was deployed with no errors in messaging instance .

in mesaging instance in directory jboss-messaging.sar i changed destinations-service.xml to create new queue(testQueue);
below in jms-ds.xml in messaging instance;
Code:





in messaging instance only i changed standardjboss.xml
****************************************************
Code:







in the corresponding mdb.ear i changed jboss.xml
********************************
Code:





client code is in default instance

Code:




I am getting JmsXA not bound exception(what is the right way of look up ?)

when i changed from JmsXA to java:/XAConnectionFactory i am getting queueFactory

but i am getting below exception.

Code:


see my messaging instance log file

Code:
17 years ago
i asked you should i maintain in session??
17 years ago
JSP
how to maintain checked and unchecked results during pagination
17 years ago
JSP
i want to implement paging;results will come from DB;IN EVERY PAGE i should display 10 records;each record has checkbox;in the first page i checked 5 records and in the next page i checked another 5 records and i navigate between first page and second page the checked and unchecked results should be populated.how to maintain checkbox checked and unchecked status in pagination.
[ December 08, 2006: Message edited by: Bear Bibeault ]
17 years ago
JSP
here is the example given in the below link where i got fibonacci.ws.FibonacciSoapBindingImpl in deploy.wsdd; you can test urself;

when you deploy your webservice at server side you need to have Fibonacci class not FibonacciSoapBindingImpl class;am i right??

http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2

i think once stubs are generated ,in deploy.wsdd we need to change manually className FibonacciSoapBindingImpl to Fibonacci class..i think i am going in the right direction
17 years ago
below is the webservice class deployed at server side .i am using axis for webservices.

i am using WSDL2Java for generating client stubs.other than client stubs it also gives deploy.wsdd.

using AdminClient command i am deploying webservice at server side...

AdminClient deploy.wsdd

when i open server-config.wsdd to see whether webservice deployed correctly or not,but the class name always comes only stub class name not webservice class name;

when i run the server at the server side it will throw me an exception EmployeeSOAPBindingImpl class not found .its true because these classes will be at client side.



Instead of this

<parameter name="className" value="com.employee.java.EmployeeServiceHelper"/>

I am getting this in server-config.wsdd file;

<parameter name="className" value="com.employee.java.EmployeeSOAPBindingImpl"/>







Web service class
******************


public class EmployeeServiceHelper
{
public EmployeeResponse[] getEmployee(EmployeeRequest employeeRequest)
{

EmployeeResponse[] employeeResponse = null;
RatingFault fault =null;
try
{

InitialContext taxEngineContext = new InitialContext();
EmployeeSessionHome home = (EmployeeSessionHome)taxEngineContext.lookup("EmployeeSessionBean");
EmployeeSession remote = (EmployeeSession)home.create();
employeeResponse = remote.getEmployee(employeeRequest);




}

}
catch(Exception e)
{
e.printStackTrace();
}
return employeeResponse;
}
}
17 years ago
this is wsdl created on my own;

in the webservice class i have method takes 2 string arguments it returns LoginResponse object;

in the LoginResponse object along with id,userName,userId i want stationList which retuns array of stations;

how to define array of stations in LoginResponse complex type;

LoginResponsegetLogin(String userid,String password)
{

}

<xsd:element name="userID">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Password">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="LoginResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="id" nillable="true" type="xsd:long"/>
<xsd:element name="userName" nillable="true" type="xsd:string"/>
<xsd:element name="userId" nillable="true" type="xsd:string"/>
<xsd:element name="stationList" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
17 years ago
here i pasted webservice,client classes and sample of wsdl file;

Is it right to catch EmpFaultException in client code;Is any other way to do it;

if empMaster is null i want to throw the message to the user.



webservice
**********

public interface Employee extends java.rmi.Remote {
public boolean withdraw(java.lang.String account, int amount)
throws java.rmi.RemoteException,
example.EmpFaultException;
}

client
********
EmpResponseType[] empMaster;

try
{
empMaster = stub.withdraw(requestType);
}catch(EmpFaultException e)
{
out.println("Could not find Employee");

}

sample of wsdl
****************

<wsdl:types>
<xsd:schema targetNamespace="http://emp.com/services/Emp">
<xsd:element name="EmpFault">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="info" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>


<wsdl:message name="EmpFaultMessage">
<wsdl art element="impl:EmpFault" name="fault"/>
</wsdl:message>

<wsdl ortType name="EmpPortType">
<wsdl peration name="getEmp">
<wsdl:input message="impl:getEmpRequest" name="getEmpRequest"/>
<wsdl utput message="impl:getEmpResponse" name="getEmpResponse"/>
<wsdl:fault message="impl:EmpFaultMessage" name="EmpFaultException"/>
</wsdl peration>
</wsdl ortType>


checked exception::::
********************
public class EmpFaultException
extends java.lang.Exception
implements java.io.Serializable {
private java.lang.String info;

public EmpFaultException() {
}

public EmpFaultException(
java.lang.String info) {
this.info = info;
}

public java.lang.String getInfo() {
return info;
}

public void setInfo(java.lang.String info) {
this.info = info;
}
}
17 years ago
i am calling webservice from the client like this;


i want to throw the message to the client it does n't return any records from webservice method ;

EmployeeSOAPBindingStub stub = new EmployeeSOAPBindingStub(endpoint, null);


EmployeeResponse[] emp= stub.getEmp(request);
17 years ago
i have this wsdl with document style;i created stubs using WSDL2Java;when i run the client i am getting this exception

org.xml.sax.SAXException: Deserializing parameter 'empRequest': could not find deserializer for type {urn:Emp}EmpRequest


<?xml version="1.0" encoding="UTF8" ?>
<wsdl efinitions targetNamespace="urn:Emp" xmlns:apachesoap="http://xml.apache.org/xmlsoap" xmlns:impl="urn:Emp" xmlns:intf="urn:Emp" xmlns:tns1="http://java.emp.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

>
<wsdl:types>
<schema targetNamespace="urn:Emp" xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="EmpRequest">
<sequence>
<element name="empno" nillable="true" type="xsd:string" />
<element name="empname" nillable="true" type="xsd:string" />
</sequence>
</complexType>
<complexType name="EmpResponse">
<sequence>
<element name="salary" nillable="true" type="xsd:string" />
<element name="desc" nillable="true" type="xsd:string" />
</sequence>
</complexType>
<complexType name="ArrayOfEmpResponse">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:EmpResponse" />
</sequence>
</complexType>
<element name="getEmpReturn">
<complexType>
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:EmpResponse" />
</sequence>
</complexType>
</element>
</schema>
<schema elementFormDefault="qualified" targetNamespace="http://java.emp.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="urn:Emp" />
<element name="empRequest" type="impl:EmpRequest" />
</schema>
</wsdl:types>
<wsdl:message name="getEmpResponse">
<wsdl art element="impl:getEmpReturn" name="getEmpReturn" />
</wsdl:message>
<wsdl:message name="getEmpRequest">
<wsdl art element="empRequest" name="empRequest" />
</wsdl:message>
<wsdl ortType name="EmpRequest">
<wsdl peration name="getEmp" parameterOrder="empRequest">
<wsdl:input message="impl:getEmpRequest" name="getEmpRequest" />
<wsdl utput message="impl:getEmpResponse" name="getEmpResponse" />
</wsdl peration>
</wsdl ortType>
<wsdl:binding name="EmpSoapBinding" type="impl:EmpRequest">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl peration name="getEmp">
<wsdlsoap peration soapAction="" />
<wsdl:input name="getEmpRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl utput name="getEmpResponse">
<wsdlsoap:body use="literal" />
</wsdl utput>
</wsdl peration>
</wsdl:binding>
<wsdl:service name="EmpService">
<wsdl ort binding="impl:EmpSoapBinding" name="Emp">
<wsdlsoap:address location="http://localhost:8080/axis/services/EmpService" />
</wsdl ort>
</wsdl:service>
</wsdl efinitions>
17 years ago